DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetDebugActions()

override void ManBase::GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
inlineprotected

См. определение в файле PlayerBase.c строка 8398

8399 {
8400 int i;
8401
8402 PluginTransmissionAgents pluginTransmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents));
8403
8404#ifdef ROBOCLIENT
8405 if (pluginTransmissionAgents && !(m_Bot || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_REMOTE))
8406#else
8407 if (pluginTransmissionAgents && !(GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_REMOTE))
8408#endif
8409 {
8410 map<int, string> agentList = pluginTransmissionAgents.GetSimpleAgentList();
8411
8412 if (agentList)
8413 {
8414 foreach (int tid, string tname : agentList)
8415 {
8416 string injectName = "Inject " + tname;
8417 string removeName = "Remove " + tname;
8418
8419 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DEBUG_AGENTS_RANGE_INJECT_START + tid, injectName, Colors.WHITE));
8420 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DEBUG_AGENTS_RANGE_REMOVE_START + tid, removeName, Colors.WHITE));
8421 }
8422 }
8423
8424 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
8425 }
8426
8427#ifdef ROBOCLIENT
8428 if (m_Bot || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_REMOTE)
8429 {
8430 typename e = EActions;
8431
8432 int cnt = e.GetVariableCount();
8433 int val;
8434
8435 for (i = 0; i < cnt; i++)
8436 {
8437 if (!e.GetVariableValue(null, i, val))
8438 continue;
8439
8440 if (val <= EActions.PLAYER_BOT_INTERNAL_START)
8441 continue;
8442
8443 if (val == EActions.PLAYER_BOT_START)
8444 {
8445 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
8446 continue;
8447 }
8448
8449 if (val >= EActions.PLAYER_BOT_END)
8450 break;
8451
8452 string name = e.GetVariableName(i);
8453
8454 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, val, name, FadeColors.LIGHT_GREY));
8455 }
8456
8457 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
8458 }
8459#endif
8460
8461 super.GetDebugActions(outputList);
8462
8463 if (Gizmo_IsSupported())
8464 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GIZMO_OBJECT, "Gizmo Object", FadeColors.LIGHT_GREY));
8465 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GIZMO_PHYSICS, "Gizmo Physics (SP Only)", FadeColors.LIGHT_GREY)); // intentionally allowed for testing physics desync
8466 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_SINGLEPLAYER) // Prevent deleting ourselves
8467 {
8468 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DELETE, "Delete", FadeColors.RED));
8469 }
8470 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
8471 }
Param4< int, int, string, int > TSelectableActionInfoWithColor
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
EActions
Определения EActions.c:2
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:326
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1084
proto native DayZPlayerInstanceType GetInstanceType()
@ Colors
Определения EnWorld.c:88
const int SAT_DEBUG_ACTION
Определения 3_Game/DayZ/constants.c:486

Перекрестные ссылки GetInstanceType(), GetPlugin(), name, SAT_DEBUG_ACTION и Colors::WHITE.