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

DEPRECATED. Подробнее...

+ Граф наследования:ActionWritePaper:

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

void ActionWritePaper ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnStartClient (ActionData action_data)
 
override void OnStartServer (ActionData action_data)
 
override void OnUpdate (ActionData action_data)
 
override void OnEndRequest (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)
 

Закрытые данные

const float TARGET_DISTANCE = 2
 

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

DEPRECATED.

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

◆ ActionWritePaper()

void ActionWritePaper ( )
inlineprivate
43 {
45 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_VIEWNOTE;
46 m_FullBody = true;
47 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_PRONE;
48 m_Text = "#write_note";
49 }
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
int m_StanceMask
Definition ActionBase.c:62
Definition ActionWritePaper.c:2
int m_CommandUID
Definition AnimatedActionBase.c:143
m_CallbackClass
Definition AnimatedActionBase.c:145
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
58 {
59 if ((item && item.ConfigIsExisting("writingColor") && target.GetObject() && Paper.Cast(target.GetObject())) || (target.GetObject() && target.GetObject().ConfigIsExisting("writingColor") && item && Paper.Cast(item)))
60 {
61 return true;
62 }
63 return false;
64 }
Definition EntityAI.c:95

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
52 {
54 m_ConditionTarget = new CCTNone;//CCTNonRuined(TARGET_DISTANCE);
55 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTNone.c:2

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

◆ OnEndRequest()

override void OnEndRequest ( ActionData action_data)
inlineprivate
106 {
107 if (action_data.m_Callback)
108 {
109 action_data.m_Callback.InternalCommand(DayZPlayerConstants.CMD_ACTIONINT_INTERRUPT);
110 }
111 }

◆ OnStartClient()

override void OnStartClient ( ActionData action_data)
inlineprivate
67 {
68 if (action_data.m_Target.GetObject().ConfigIsExisting("writingColor"))
69 {
70 action_data.m_MainItem.GetWrittenNoteData().InitNoteInfo(ItemBase.Cast(action_data.m_Target.GetObject()),action_data.m_MainItem);
71 }
72 else
73 {
74 ItemBase.Cast(action_data.m_Target.GetObject()).GetWrittenNoteData().InitNoteInfo(action_data.m_MainItem,ItemBase.Cast(action_data.m_Target.GetObject()));
75 }
76 }
Definition InventoryItem.c:731
override WrittenNoteData GetWrittenNoteData()
Definition Paper.c:30

Перекрестные ссылки ItemBase::GetWrittenNoteData().

◆ OnStartServer()

override void OnStartServer ( ActionData action_data)
inlineprivate
79 {
80 super.OnStartServer(action_data);
81
82 if (action_data.m_Target.GetObject().ConfigIsExisting("writingColor"))
83 {
84 action_data.m_MainItem.GetWrittenNoteData().InitNoteInfo(ItemBase.Cast(action_data.m_Target.GetObject()),action_data.m_MainItem);
85 }
86 else
87 {
88 ItemBase.Cast(action_data.m_Target.GetObject()).GetWrittenNoteData().InitNoteInfo(action_data.m_MainItem,ItemBase.Cast(action_data.m_Target.GetObject()));
89 }
90 }

Перекрестные ссылки ItemBase::GetWrittenNoteData().

◆ OnUpdate()

override void OnUpdate ( ActionData action_data)
inlineprivate
93 {
94 super.OnUpdate(action_data);
95
96 if(!GetGame().IsDedicatedServer())
97 {
98 if (action_data.m_State == UA_FINISHED && GetGame().GetUIManager() && !GetGame().GetUIManager().IsMenuOpen(MENU_NOTE))
99 {
100 ActionManagerClient.Cast(action_data.m_Player.GetActionManager()).RequestEndAction();
101 }
102 }
103 }
Definition ActionManagerClient.c:5
override void RequestEndAction()
Definition ActionManagerClient.c:264
proto native CGame GetGame()
const int MENU_NOTE
Definition constants.c:188
const int UA_FINISHED
Definition constants.c:443

Перекрестные ссылки GetGame(), MENU_NOTE, ActionManagerClient::RequestEndAction() и UA_FINISHED.

Поля

◆ TARGET_DISTANCE

const float TARGET_DISTANCE = 2
private

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