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

◆ GetDebugActions()

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

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

7792 {
7793 int i;
7794
7795 PluginTransmissionAgents pluginTransmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents));
7796
7797#ifdef DIAG_DEVELOPER
7798 if (pluginTransmissionAgents && !(m_Bot || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_REMOTE))
7799#else
7800 if (pluginTransmissionAgents && !(GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_REMOTE))
7801#endif
7802 {
7803 map<int, string> agentList = pluginTransmissionAgents.GetSimpleAgentList();
7804
7805 if (agentList)
7806 {
7807 foreach (int tid, string tname : agentList)
7808 {
7809 string injectName = "Inject " + tname;
7810 string removeName = "Remove " + tname;
7811
7812 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DEBUG_AGENTS_RANGE_INJECT_START + tid, injectName, Colors.WHITE));
7813 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DEBUG_AGENTS_RANGE_REMOVE_START + tid, removeName, Colors.WHITE));
7814 }
7815 }
7816
7817 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
7818 }
7819
7820#ifdef DIAG_DEVELOPER
7821 if (m_Bot || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_REMOTE)
7822 {
7823 typename e = EActions;
7824
7825 int cnt = e.GetVariableCount();
7826 int val;
7827
7828 for (i = 0; i < cnt; i++)
7829 {
7830 if (!e.GetVariableValue(null, i, val))
7831 continue;
7832
7833 if (val <= EActions.PLAYER_BOT_INTERNAL_START)
7834 continue;
7835
7836 if (val == EActions.PLAYER_BOT_START)
7837 {
7838 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
7839 continue;
7840 }
7841
7842 if (val >= EActions.PLAYER_BOT_END)
7843 break;
7844
7845 string name = e.GetVariableName(i);
7846
7847 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, val, name, FadeColors.LIGHT_GREY));
7848 }
7849
7850 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
7851 }
7852#endif
7853
7854 super.GetDebugActions(outputList);
7855
7856 if (Gizmo_IsSupported())
7857 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GIZMO_OBJECT, "Gizmo Object", FadeColors.LIGHT_GREY));
7858 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.GIZMO_PHYSICS, "Gizmo Physics (SP Only)", FadeColors.LIGHT_GREY)); // intentionally allowed for testing physics desync
7859 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_SINGLEPLAYER) // Prevent deleting ourselves
7860 {
7861 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DELETE, "Delete", FadeColors.RED));
7862 }
7863 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
7864 }
Param4< int, int, string, int > TSelectableActionInfoWithColor
Определения 3_Game/Entities/EntityAI.c:97
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
map
Определения ControlsXboxNew.c:4
EActions
Определения EActions.c:2
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1068
proto native DayZPlayerInstanceType GetInstanceType()
@ Colors
Определения EnWorld.c:88
const int SAT_DEBUG_ACTION
Определения 3_Game/constants.c:454

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