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

◆ GetDebugActions()

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

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

8045 {
8046 int i;
8047
8048 PluginTransmissionAgents pluginTransmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents));
8049
8050#ifdef DIAG_DEVELOPER
8051 if (pluginTransmissionAgents && !(m_Bot || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_REMOTE))
8052#else
8053 if (pluginTransmissionAgents && !(GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_REMOTE))
8054#endif
8055 {
8056 map<int, string> agentList = pluginTransmissionAgents.GetSimpleAgentList();
8057
8058 if (agentList)
8059 {
8060 foreach (int tid, string tname : agentList)
8061 {
8062 string injectName = "Inject " + tname;
8063 string removeName = "Remove " + tname;
8064
8065 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DEBUG_AGENTS_RANGE_INJECT_START + tid, injectName, Colors.WHITE));
8066 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DEBUG_AGENTS_RANGE_REMOVE_START + tid, removeName, Colors.WHITE));
8067 }
8068 }
8069
8070 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
8071 }
8072
8073#ifdef DIAG_DEVELOPER
8074 if (m_Bot || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_REMOTE)
8075 {
8076 typename e = EActions;
8077
8078 int cnt = e.GetVariableCount();
8079 int val;
8080
8081 for (i = 0; i < cnt; i++)
8082 {
8083 if (!e.GetVariableValue(null, i, val))
8084 continue;
8085
8086 if (val <= EActions.PLAYER_BOT_INTERNAL_START)
8087 continue;
8088
8089 if (val == EActions.PLAYER_BOT_START)
8090 {
8091 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
8092 continue;
8093 }
8094
8095 if (val >= EActions.PLAYER_BOT_END)
8096 break;
8097
8098 string name = e.GetVariableName(i);
8099
8100 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, val, name, FadeColors.LIGHT_GREY));
8101 }
8102
8103 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
8104 }
8105#endif
8106
8107 super.GetDebugActions(outputList);
8108
8109 if (Gizmo_IsSupported())
8110 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GIZMO_OBJECT, "Gizmo Object", FadeColors.LIGHT_GREY));
8111 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GIZMO_PHYSICS, "Gizmo Physics (SP Only)", FadeColors.LIGHT_GREY)); // intentionally allowed for testing physics desync
8112 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_SINGLEPLAYER) // Prevent deleting ourselves
8113 {
8114 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DELETE, "Delete", FadeColors.RED));
8115 }
8116 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
8117 }
Param4< int, int, string, int > TSelectableActionInfoWithColor
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
EActions
Определения EActions.c:2
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:325
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1071
proto native DayZPlayerInstanceType GetInstanceType()
@ Colors
Определения EnWorld.c:88
const int SAT_DEBUG_ACTION
Определения 3_Game/DayZ/constants.c:457

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