DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionCarHornLong
+ Граф наследования:ActionCarHornLong:

Закрытые члены

void ActionCarHornLong ()
 
override bool HasTarget ()
 
override bool HasProgress ()
 
override bool CanBeUsedInVehicle ()
 
override GetInputType ()
 
override bool UseMainItem ()
 
override void CreateConditionComponents ()
 
override ActionData CreateActionData ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnUpdate (ActionData action_data)
 special case - manually ends the action on exec event
 
override void OnEndInput (ActionData action_data)
 
override void OnStart (ActionData action_data)
 
override void OnStartServer (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 
override void WriteToContext (ParamsWriteContext ctx, ActionData action_data)
 
override bool ReadFromContext (ParamsReadContext ctx, out ActionReciveData action_recive_data)
 
override void HandleReciveData (ActionReciveData action_recive_data, ActionData action_data)
 
- Закрытые члены унаследованные от ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Подробное описание

Конструктор(ы)

◆ ActionCarHornLong()

void ActionCarHornLong ( )
inlineprivate
211 {
212 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_TOOTHORN;
213 m_StanceMask = DayZPlayerConstants.STANCEMASK_ALL;
214 }
int m_StanceMask
Definition ActionBase.c:62
int m_CommandUID
Definition AnimatedActionBase.c:143
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CommandUID и ActionBase::m_StanceMask.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
254 {
256 }
Definition ActionCarHorn.c:2
static bool ActionCondition(PlayerBase player)
Definition ActionCarHorn.c:3
Definition EntityAI.c:95

Перекрестные ссылки ActionCarHornBase::ActionCondition().

◆ CanBeUsedInVehicle()

override bool CanBeUsedInVehicle ( )
inlineprivate
227 {
228 return true;
229 }

◆ CreateActionData()

override ActionData CreateActionData ( )
inlineprivate
248 {
249 ActionData action_data = new CarHornActionData();
250 return action_data;
251 }
Definition ActionCarHorn.c:58

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
242 {
243 m_ConditionItem = new CCINone();
245 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINone.c:2
Definition CCTNone.c:2

Перекрестные ссылки ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

◆ GetInputType()

override GetInputType ( )
inlineprivate
232 {
234 }
ToggleLightsActionInput CarHornLongActionInput

Перекрестные ссылки CarHornLongActionInput.

◆ HandleReciveData()

override void HandleReciveData ( ActionReciveData action_recive_data,
ActionData action_data )
inlineprivate

◆ HasProgress()

override bool HasProgress ( )
inlineprivate
222 {
223 return false;
224 }

◆ HasTarget()

override bool HasTarget ( )
inlineprivate
217 {
218 return false;
219 }

◆ OnEndInput()

override void OnEndInput ( ActionData action_data)
inlineprivate
272 {
273 super.OnEndInput(action_data);
274
277 }
static void SetCarHornState(CarHornActionData pActionData, int pState)
Definition ActionCarHorn.c:28

Перекрестные ссылки ActionCarHornBase::SetCarHornState().

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)
inlineprivate

◆ OnStart()

override void OnStart ( ActionData action_data)
inlineprivate
280 {
281 super.OnStart(action_data);
282
284 carHornData.m_ActionNeedEnd = true;
285 carHornData.m_Car = CarScript.Cast(action_data.m_Player.GetCommand_Vehicle().GetTransport());
286 }
Definition CivilianSedan.c:2

◆ OnStartServer()

override void OnStartServer ( ActionData action_data)
inlineprivate
289 {
290 super.OnStartServer(action_data);
291
293 carHornData.m_ActionNeedEnd = true;
295 }

Перекрестные ссылки ActionCarHornBase::SetCarHornState().

◆ OnUpdate()

override void OnUpdate ( ActionData action_data)
inlineprivate

special case - manually ends the action on exec event

260 {
261 super.OnUpdate(action_data);
262
264 if (carHornData.m_ReciveEndInput && carHornData.m_ActionNeedEnd)
265 {
266 carHornData.m_Callback.SetCommand(DayZPlayerConstants.CMD_ACTIONINT_END);
267 carHornData.m_ActionNeedEnd = false;
268 }
269 }

◆ ReadFromContext()

override bool ReadFromContext ( ParamsReadContext ctx,
out ActionReciveData action_recive_data )
inlineprivate
316 {
318 {
320 }
321
322 super.ReadFromContext(ctx, action_recive_data);
323
324 bool needUpdate;
325 if (!ctx.Read(needUpdate))
326 return false;
327
329 if (!ctx.Read(carScript))
330 return false;
331
333 carHornReceivedData.m_ActionNeedEnd = needUpdate;
335
336 return true;
337 }

◆ UseMainItem()

override bool UseMainItem ( )
inlineprivate
237 {
238 return false;
239 }

◆ WriteToContext()

override void WriteToContext ( ParamsWriteContext ctx,
ActionData action_data )
inlineprivate
306 {
307 super.WriteToContext(ctx, action_data);
308
310
311 ctx.Write(carHornData.m_ActionNeedEnd);
312 ctx.Write(carHornData.m_Car);
313 }

Объявления и описания членов класса находятся в файле: