16 override bool HasTarget()
21 override void CreateConditionComponents()
29 ActionDebugData action_data =
new ActionDebugData;
35 ActionDebugData action_data_d;
36 Class.CastTo( action_data_d, CreateActionData());
37 action_data_d.m_Action =
this;
38 action_data_d.m_Player = player;
40 if (!
GetGame().IsDedicatedServer() )
43 action_data_d.m_Entity = ndata.param1;
44 action_data_d.m_DebugActionID = ndata.param2;
47 ActionReciveData action_recive_data = player.GetActionManager().GetReciveData();
48 if ( action_recive_data )
50 HandleReciveData(action_recive_data,action_data_d);
52 action_data = action_data_d;
59 ActionDebugData action_data_d;
60 Class.CastTo( action_data_d, action_data );
62 ctx.Write(action_data_d.m_Entity);
63 ctx.Write(action_data_d.m_DebugActionID);
66 override bool ReadFromContext(
ParamsReadContext ctx, out ActionReciveData action_recive_data )
68 if(!action_recive_data)
80 if(!ctx.Read(debugActionID))
83 action_recive_data_d.m_Entity = ent;
84 action_recive_data_d.m_DebugActionID = debugActionID;
88 override void HandleReciveData(ActionReciveData action_recive_data,
ActionData action_data)
91 ActionDebugData action_data_d = ActionDebugData.Cast(action_data);
93 action_data_d.m_Entity = action_recive_data_d.m_Entity;
94 action_data_d.m_DebugActionID = action_recive_data_d.m_DebugActionID;
99 ActionDebugData action_data_d;
100 Class.CastTo( action_data_d, action_data );
101 if (action_data_d.m_Entity && !action_data_d.m_Entity.IsSetForDeletion())
102 action_data_d.m_Entity.OnAction(action_data_d.m_DebugActionID,action_data_d.m_Player,NULL);
105 override bool UseAcknowledgment()