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

◆ OnExecuteServer()

override void ActionPlugIn::OnExecuteServer ( ActionData action_data)
inlineprivate

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

42 {
43 ItemBase targetIB = ItemBase.Cast(action_data.m_Target.GetObject());
44
45 if (targetIB.HasEnergyManager())
46 {
47 ItemBase attachedDevice = GetAttachedDevice(targetIB);
48 if (attachedDevice)
49 targetIB = attachedDevice;
50
51 action_data.m_MainItem.GetCompEM().PlugThisInto(targetIB);
52
53 if (!g_Game.IsDedicatedServer())
54 {
55 if (!action_data.m_Player.IsPlacingLocal())
56 {
57 action_data.m_Player.PlacingStartLocal(action_data.m_MainItem);
58 Process(action_data);
59 }
60 }
61 else
62 {
63 if (!action_data.m_Player.IsPlacingServer())
64 {
65 action_data.m_Player.PlacingStartServer(action_data.m_MainItem);
66 Process(action_data);
67 }
68 }
69 }
70 }
DayZGame g_Game
Определения DayZGame.c:3868
void Process()
Определения EffectManager.c:743
class GP5GasMask extends MaskBase ItemBase
ItemBase GetAttachedDevice(ItemBase parent)
Определения ActionPlugIn.c:87

Перекрестные ссылки ActionData, g_Game, GetAttachedDevice() и Process().