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

◆ OnStateChange()

override void ActionReadPaperCB::OnStateChange ( int pOldState,
int pCurrentState )
inlineprivate

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

14 {
15 if (pCurrentState == STATE_NONE && (!GetGame().IsDedicatedServer()))
16 {
17 if (GetGame().GetUIManager() && GetGame().GetUIManager().IsMenuOpen(MENU_NOTE))
19 }
20 else if (pCurrentState == STATE_LOOP_LOOP && pOldState != STATE_LOOP_LOOP && (!GetGame().IsMultiplayer() || GetGame().IsServer()))
21 {
22 ItemBase paper_item = ItemBase.Cast(m_ActionData.m_MainItem);
23 Param1<string> text = new Param1<string>(paper_item.GetWrittenNoteData().GetNoteText());
24 paper_item.RPCSingleParam(ERPCs.RPC_READ_NOTE, text, true,m_ActionData.m_Player.GetIdentity());
25 }
26 }
ERPCs
Определения ERPCs.c:2
class GP5GasMask extends MaskBase ItemBase
ActionData m_ActionData
Определения AnimatedActionBase.c:3
proto native UIManager GetUIManager()
override WrittenNoteData GetWrittenNoteData()
Определения Paper.c:30
UIScriptedMenu FindMenu(int id)
Returns menu with specific ID if it is open (see MenuID)
Определения UIManager.c:160
string GetNoteText()
Определения WrittenNoteData.c:73
proto native CGame GetGame()
const int MENU_NOTE
Определения constants.c:190
static const int STATE_NONE
undef state - not running anymore
Определения human.c:349
static const int STATE_LOOP_LOOP
Определения human.c:353

Перекрестные ссылки UIManager::FindMenu(), GetGame(), WrittenNoteData::GetNoteText(), CGame::GetUIManager(), ItemBase::GetWrittenNoteData(), ActionBaseCB::m_ActionData, MENU_NOTE, STATE_LOOP_LOOP и STATE_NONE.