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

◆ GetDebugActions()

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

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

7774 {
7775 int i;
7776
7777 PluginTransmissionAgents pluginTransmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents));
7778
7779 if (pluginTransmissionAgents)
7780 {
7781 map<int, string> agentList = pluginTransmissionAgents.GetSimpleAgentList();
7782
7783 if (agentList)
7784 {
7785 foreach (int tid, string tname : agentList)
7786 {
7787 string injectName = "Inject " + tname;
7788 string removeName = "Remove " + tname;
7789
7790 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DEBUG_AGENTS_RANGE_INJECT_START + tid, injectName, Colors.WHITE));
7791 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.DEBUG_AGENTS_RANGE_REMOVE_START + tid, removeName, Colors.WHITE));
7792 }
7793 }
7794 }
7795
7796#ifdef DIAG_DEVELOPER
7797 if (m_Bot || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_AI_REMOTE)
7798 {
7799 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
7800
7801 typename e = EActions;
7802
7803 int cnt = e.GetVariableCount();
7804 int val;
7805
7806 for (i = 0; i < cnt; i++)
7807 {
7808 if (!e.GetVariableValue(null, i, val))
7809 continue;
7810
7811 if (val <= EActions.PLAYER_BOT_INTERNAL_START)
7812 continue;
7813
7814 if (val == EActions.PLAYER_BOT_START)
7815 {
7816 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.RED));
7817 continue;
7818 }
7819
7820 if (val >= EActions.PLAYER_BOT_END)
7821 break;
7822
7823 string name = e.GetVariableName(i);
7824
7825 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, val, name, FadeColors.LIGHT_GREY));
7826 }
7827 }
7828#endif
7829 }
Param4< int, int, string, int > TSelectableActionInfoWithColor
Определения 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
Определения constants.c:452

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