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

См. исходные тексты.

Структуры данных

class  ActionUnfoldMapCB
 

Функции

ActionUnfoldMapCB ActionBaseCB ActionUnfoldMap ()
 
void ActionUnfoldMapCB ()
 
void ~ActionUnfoldMapCB ()
 
override void SetActionData (ActionData action_data)
 
bool CancelCondition ()
 
override void OnStateChange (int pOldState, int pCurrentState)
 
override void OnAnimationEvent (int pEventID)
 
override void OnFinish (bool pCanceled)
 
void PerformMapChange ()
 
bool StateCheck ()
 
override bool IsInstant ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override int GetActionCategory ()
 
override void OnStartClient (ActionData action_data)
 
override void OnStartServer (ActionData action_data)
 
override void OnEndRequest (ActionData action_data)
 
override void Interrupt (ActionData action_data)
 
void OpenMap (ActionData action_data)
 

Переменные

bool m_MapFolding
 
bool m_HasReceivedEvent
 
bool m_CancelCondition
 
int m_InitMovementState
 
int m_FinalMovementState
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
196 {
197 if (player.m_hac || player.IsMapOpen())
198 {
199 return false;
200 }
201 return true;
202 }
Definition EntityAI.c:95

◆ ActionUnfoldMap()

◆ ActionUnfoldMapCB()

void ActionUnfoldMapCB ( )
185 {
186 m_ConditionItem = new CCINonRuined();
Definition CCINonRuined.c:2

◆ CancelCondition()

bool CancelCondition ( )

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
185 {
186 m_ConditionItem = new CCINonRuined();
187 m_ConditionTarget = new CCTNone();
188 }
Definition CCTNone.c:2

◆ GetActionCategory()

override int GetActionCategory ( )
205 {
206 return AC_SINGLE_USE;
207 }
const int AC_SINGLE_USE
Definition _constants.c:2

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

◆ HasTarget()

override bool HasTarget ( )
191 {
192 return false;
193 }

◆ Interrupt()

override void Interrupt ( ActionData action_data)
230 {
231 if (action_data.m_Player.m_hac)
232 {
233 action_data.m_Player.m_hac.m_MapFolding = true;
234 action_data.m_Player.m_hac.PerformMapChange();
235 action_data.m_Player.m_hac.Cancel();
236 }
237 else //should never get here, End called from the callback
238 {
240 }
241 }
void End()
called on surrender end request end

◆ IsInstant()

override bool IsInstant ( )
180 {
181 return false;
182 }

◆ OnAnimationEvent()

override void OnAnimationEvent ( int pEventID)
238 {
240 }
241 }
242
243 void OpenMap(ActionData action_data)
244 {
245 if (!action_data.m_Player.IsPlayerInStance(DayZPlayerConstants.STANCEMASK_PRONE))
246 {
247 action_data.m_Player.m_hac = ActionUnfoldMapCB.Cast(action_data.m_Player.AddCommandModifier_Action(DayZPlayerConstants.CMD_ACTIONMOD_VIEWMAP,ActionUnfoldMapCB));
248 }
249 else
250 {
251 action_data.m_Player.m_hac = ActionUnfoldMapCB.Cast(action_data.m_Player.StartCommand_Action(DayZPlayerConstants.CMD_ACTIONFB_VIEWMAP,ActionUnfoldMapCB,DayZPlayerConstants.STANCEMASK_PRONE));
252 }
253
254 // sets player for associated callback to use
255 if (action_data.m_Player.m_hac)
256 {
257 action_data.m_Player.m_hac.SetActionData(action_data);
void OpenMap(ActionData action_data)
Definition ActionUnfoldMap.c:243
Definition ActionUnfoldMap.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

◆ OnEndRequest()

override void OnEndRequest ( ActionData action_data)
224 {
225 action_data.m_Callback.InternalCommand(DayZPlayerConstants.CMD_ACTIONINT_END);
226 action_data.m_State = UA_FINISHED;
227 }
const int UA_FINISHED
Definition constants.c:443

◆ OnFinish()

override void OnFinish ( bool pCanceled)

◆ OnStartClient()

override void OnStartClient ( ActionData action_data)
210 {
212 }

Перекрестные ссылки OpenMap().

◆ OnStartServer()

override void OnStartServer ( ActionData action_data)
215 {
216 super.OnStartServer(action_data);
217
219 ItemMap chernomap = ItemMap.Cast(action_data.m_MainItem);
220 chernomap.SyncMapMarkers();
221 }
Definition ChernarusMap_Open.c:2

Перекрестные ссылки OpenMap().

◆ OnStateChange()

override void OnStateChange ( int pOldState,
int pCurrentState )
224 {
225 action_data.m_Callback.InternalCommand(DayZPlayerConstants.CMD_ACTIONINT_END);
226 action_data.m_State = UA_FINISHED;
227 }
228
229 override void Interrupt(ActionData action_data)
230 {
231 if (action_data.m_Player.m_hac)
232 {
233 action_data.m_Player.m_hac.m_MapFolding = true;
void Interrupt()

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

◆ OpenMap()

void OpenMap ( ActionData action_data)
244 {
245 if (!action_data.m_Player.IsPlayerInStance(DayZPlayerConstants.STANCEMASK_PRONE))
246 {
247 action_data.m_Player.m_hac = ActionUnfoldMapCB.Cast(action_data.m_Player.AddCommandModifier_Action(DayZPlayerConstants.CMD_ACTIONMOD_VIEWMAP,ActionUnfoldMapCB));
248 }
249 else
250 {
251 action_data.m_Player.m_hac = ActionUnfoldMapCB.Cast(action_data.m_Player.StartCommand_Action(DayZPlayerConstants.CMD_ACTIONFB_VIEWMAP,ActionUnfoldMapCB,DayZPlayerConstants.STANCEMASK_PRONE));
252 }
253
254 // sets player for associated callback to use
255 if (action_data.m_Player.m_hac)
256 {
257 action_data.m_Player.m_hac.SetActionData(action_data);
258 action_data.m_Callback = action_data.m_Player.m_hac;
259 }
260 }

Используется в OnStartClient() и OnStartServer().

◆ PerformMapChange()

void PerformMapChange ( )
289{
290 bool m_MapFolding;
295
296 void ActionUnfoldMapCB()
297 {
301 }
302
303 void ~ActionUnfoldMapCB()
304 {
305 if (GetGame() && GetGame().GetMission())
306 {
308 {
309 GetGame().GetMission().RemoveActiveInputExcludes({"map"}, false);
310 }
311 else
312 {
313 GetGame().GetMission().RemoveActiveInputExcludes({"loopedactions"}, false);
314 }
315 GetGame().GetMission().RemoveActiveInputRestriction(EInputRestrictors.MAP);
316 }
317
318 if (!m_ActionData || !m_ActionData.m_Player)
319 return;
320
321 ItemMap chernomap = ItemMap.Cast(m_ActionData.m_Player.GetItemInHands());
322 if (chernomap && m_ActionData.m_Player.IsMapOpen())
323 {
324 chernomap.SetMapStateOpen(false, m_ActionData.m_Player);
325 }
326 }
327
328 override void SetActionData(ActionData action_data)
329 {
330 m_ActionData = action_data;
331 m_InitMovementState = m_ActionData.m_Player.m_MovementState.m_iStanceIdx;
332 }
333
334 bool CancelCondition()
335 {
336 return m_CancelCondition;
337 }
338
339 override void OnStateChange(int pOldState, int pCurrentState)
340 {
341 if (!m_ActionData || !m_ActionData.m_Player)
342 return;
343
345 {
346 m_CancelCondition = true;
347 }
348 }
349
350 override void OnAnimationEvent(int pEventID)
351 {
352 if (!m_ActionData || !m_ActionData.m_Player)
353 return;
354
355 switch (pEventID)
356 {
357 case UA_ANIM_EVENT:
358 m_HasReceivedEvent = true;
359 m_FinalMovementState = m_ActionData.m_Player.m_MovementState.m_iStanceIdx;
360
361 if (StateCheck())
362 {
364 m_CancelCondition = false;
365 }
366 else
367 {
368 m_CancelCondition = true;
369 }
370 break;
371 }
372 }
373
374 override void OnFinish(bool pCanceled)
375 {
376 if (m_ActionData && m_ActionData.m_Player)
377 {
378 if (m_ActionData && m_ActionData.m_ActionComponent)
379 m_ActionData.m_State = m_ActionData.m_ActionComponent.Interrupt(m_ActionData);
380
381 if ((!GetGame().IsDedicatedServer()) && GetGame().GetUIManager() && GetGame().GetUIManager().IsMenuOpen(MENU_MAP))
382 {
383 GetGame().GetUIManager().FindMenu(MENU_MAP).Close();
384 }
385
386 ActionUnfoldMap action = ActionUnfoldMap.Cast(m_ActionData.m_Action);
389
390 m_ActionData.m_Player.SetMapClosingSyncSet(false); //reset
391
392 ItemMap chernomap = ItemMap.Cast(m_ActionData.m_Player.GetItemInHands());
393 if (chernomap && m_ActionData.m_Player.IsMapOpen())
394 {
395 chernomap.SetMapStateOpen(false, m_ActionData.m_Player);
396 }
397
398 if (action)
399 action.End(m_ActionData);
400 }
401 }
402
403 void PerformMapChange()
404 {
405 if (m_ActionData.m_Player.IsSwimming() || m_ActionData.m_Player.IsClimbing() || m_ActionData.m_Player.IsFalling() || m_ActionData.m_Player.IsClimbingLadder() || m_ActionData.m_Player.IsUnconscious() || m_ActionData.m_Player.IsRestrained())
406 return;
407
408 ItemMap chernomap = ItemMap.Cast(m_ActionData.m_Player.GetItemInHands());
409 if (chernomap)
410 {
411 if (!m_ActionData.m_Player.IsMapOpen() && !m_MapFolding)
412 {
413 if (m_CancelCondition) //do not open when cancelling in progress
414 return;
415
416 chernomap.SetMapStateOpen(true, m_ActionData.m_Player);
417
418 if (!GetGame().IsMultiplayer() || GetGame().IsServer())
419 {
420 //chernomap.SyncMapMarkers();
421 }
422
423 if (!GetGame().IsDedicatedServer())
424 {
425 UIManager m_UIManager;
427 m_UIManager = GetGame().GetUIManager();
428 m_UIManager.CloseAll();
430 {
431 mapMenu = m_UIManager.EnterScriptedMenu(MENU_MAP, null);
432 mapMenu.InitMapItem(chernomap);
433 mapMenu.LoadMapMarkers();
434 GetGame().GetMission().AddActiveInputExcludes({"map"});
435 }
436 else
437 {
438 GetGame().GetMission().AddActiveInputExcludes({"loopedactions"});
439 }
440
441 GetGame().GetMission().AddActiveInputRestriction(EInputRestrictors.MAP);
442 }
443 }
444 else if (m_ActionData.m_Player.IsMapOpen())
445 {
446 chernomap.SetMapStateOpen(false, m_ActionData.m_Player);
447 m_MapFolding = true;
448 m_ActionData.m_Player.SetMapOpen(false);
449 }
450 }
451 }
452
453 bool StateCheck()
454 {
456 }
457}
458
460{
461 void ActionUnfoldMap()
462 {
463 m_Text = "#unfold_map";
464 }
465
466 override bool IsInstant()
467 {
468 return false;
469 }
470
471 override void CreateConditionComponents()
472 {
473 m_ConditionItem = new CCINonRuined();
474 m_ConditionTarget = new CCTNone();
475 }
476
477 override bool HasTarget()
478 {
479 return false;
480 }
481
482 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
483 {
484 if (player.m_hac || player.IsMapOpen())
485 {
486 return false;
487 }
488 return true;
489 }
490
491 override int GetActionCategory()
492 {
493 return AC_SINGLE_USE;
494 }
495
496 override void OnStartClient(ActionData action_data)
497 {
499 }
500
501 override void OnStartServer(ActionData action_data)
502 {
503 super.OnStartServer(action_data);
504
506 ItemMap chernomap = ItemMap.Cast(action_data.m_MainItem);
507 chernomap.SyncMapMarkers();
508 }
509
510 override void OnEndRequest(ActionData action_data)
511 {
512 action_data.m_Callback.InternalCommand(DayZPlayerConstants.CMD_ACTIONINT_END);
513 action_data.m_State = UA_FINISHED;
514 }
515
516 override void Interrupt(ActionData action_data)
517 {
518 if (action_data.m_Player.m_hac)
519 {
520 action_data.m_Player.m_hac.m_MapFolding = true;
521 action_data.m_Player.m_hac.PerformMapChange();
522 action_data.m_Player.m_hac.Cancel();
523 }
524 else //should never get here, End called from the callback
525 {
527 }
528 }
529
530 void OpenMap(ActionData action_data)
531 {
532 if (!action_data.m_Player.IsPlayerInStance(DayZPlayerConstants.STANCEMASK_PRONE))
533 {
534 action_data.m_Player.m_hac = ActionUnfoldMapCB.Cast(action_data.m_Player.AddCommandModifier_Action(DayZPlayerConstants.CMD_ACTIONMOD_VIEWMAP,ActionUnfoldMapCB));
535 }
536 else
537 {
538 action_data.m_Player.m_hac = ActionUnfoldMapCB.Cast(action_data.m_Player.StartCommand_Action(DayZPlayerConstants.CMD_ACTIONFB_VIEWMAP,ActionUnfoldMapCB,DayZPlayerConstants.STANCEMASK_PRONE));
539 }
540
541 // sets player for associated callback to use
542 if (action_data.m_Player.m_hac)
543 {
544 action_data.m_Player.m_hac.SetActionData(action_data);
545 action_data.m_Callback = action_data.m_Player.m_hac;
546 }
547 }
548}
bool m_MapFolding
Definition ActionUnfoldMap.c:175
override void OnAnimationEvent(int pEventID)
Definition ActionUnfoldMap.c:235
override void SetActionData(ActionData action_data)
Definition ActionUnfoldMap.c:213
ActionUnfoldMapCB ActionBaseCB ActionUnfoldMap()
Definition ActionUnfoldMap.c:174
void ~ActionUnfoldMapCB()
Definition ActionUnfoldMap.c:188
bool m_HasReceivedEvent
Definition ActionUnfoldMap.c:176
bool StateCheck()
Definition ActionUnfoldMap.c:338
void PerformMapChange()
Definition ActionUnfoldMap.c:288
bool CancelCondition()
Definition ActionUnfoldMap.c:219
override void OnStateChange(int pOldState, int pCurrentState)
Definition ActionUnfoldMap.c:224
override void OnFinish(bool pCanceled)
Definition ActionUnfoldMap.c:259
int m_InitMovementState
Definition ActionUnfoldMap.c:178
void ActionUnfoldMapCB()
Definition ActionUnfoldMap.c:181
bool m_CancelCondition
Definition ActionUnfoldMap.c:177
int m_FinalMovementState
Definition ActionUnfoldMap.c:179
class DayZCreatureAnimInterface RegisterAnimationEvent(string event_name, string function_name)
Definition AnimatedActionBase.c:2
Definition ActionBase.c:53
bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition ActionBase.c:403
void CreateConditionComponents()
Definition ActionBase.c:230
bool HasTarget()
Definition ActionBase.c:244
int GetActionCategory()
Definition ActionBase.c:278
void OnStartClient(ActionData action_data)
Definition ActionBase.c:1159
void OnStartServer(ActionData action_data)
Definition ActionBase.c:1162
void OnEndRequest(ActionData action_data)
Definition ActionBase.c:682
bool IsInstant()
Definition ActionBase.c:262
Definition CfgGameplayHandler.c:2
static bool GetUse3DMap()
Definition CfgGameplayHandler.c:377
Definition InventoryItem.c:731
Definition PlayerBaseClient.c:2
Definition UIManager.c:2
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
bool CloseAll()
Close all opened menus.
Definition UIManager.c:78
Definition DayZGame.c:64
proto native CGame GetGame()
const int MENU_MAP
Definition constants.c:189
const int UA_ANIM_EVENT
Definition constants.c:450
static const int STATE_LOOP_IN
looped state
Definition human.c:352
proto native void EnableCancelCondition(bool pEnable)
proto native void EnableStateChangeCallback()
enables state change callback OnStateChange
static const int STATE_LOOP_LOOP
Definition human.c:353

◆ SetActionData()

override void SetActionData ( ActionData action_data)
215 {
216 super.OnStartServer(action_data);
217

◆ StateCheck()

bool StateCheck ( )
339{
340 bool m_MapFolding;
345
346 void ActionUnfoldMapCB()
347 {
351 }
352
353 void ~ActionUnfoldMapCB()
354 {
355 if (GetGame() && GetGame().GetMission())
356 {
358 {
359 GetGame().GetMission().RemoveActiveInputExcludes({"map"}, false);
360 }
361 else
362 {
363 GetGame().GetMission().RemoveActiveInputExcludes({"loopedactions"}, false);
364 }
365 GetGame().GetMission().RemoveActiveInputRestriction(EInputRestrictors.MAP);
366 }
367
368 if (!m_ActionData || !m_ActionData.m_Player)
369 return;
370
371 ItemMap chernomap = ItemMap.Cast(m_ActionData.m_Player.GetItemInHands());
372 if (chernomap && m_ActionData.m_Player.IsMapOpen())
373 {
374 chernomap.SetMapStateOpen(false, m_ActionData.m_Player);
375 }
376 }
377
378 override void SetActionData(ActionData action_data)
379 {
380 m_ActionData = action_data;
381 m_InitMovementState = m_ActionData.m_Player.m_MovementState.m_iStanceIdx;
382 }
383
384 bool CancelCondition()
385 {
386 return m_CancelCondition;
387 }
388
389 override void OnStateChange(int pOldState, int pCurrentState)
390 {
391 if (!m_ActionData || !m_ActionData.m_Player)
392 return;
393
395 {
396 m_CancelCondition = true;
397 }
398 }
399
400 override void OnAnimationEvent(int pEventID)
401 {
402 if (!m_ActionData || !m_ActionData.m_Player)
403 return;
404
405 switch (pEventID)
406 {
407 case UA_ANIM_EVENT:
408 m_HasReceivedEvent = true;
409 m_FinalMovementState = m_ActionData.m_Player.m_MovementState.m_iStanceIdx;
410
411 if (StateCheck())
412 {
414 m_CancelCondition = false;
415 }
416 else
417 {
418 m_CancelCondition = true;
419 }
420 break;
421 }
422 }
423
424 override void OnFinish(bool pCanceled)
425 {
426 if (m_ActionData && m_ActionData.m_Player)
427 {
428 if (m_ActionData && m_ActionData.m_ActionComponent)
429 m_ActionData.m_State = m_ActionData.m_ActionComponent.Interrupt(m_ActionData);
430
431 if ((!GetGame().IsDedicatedServer()) && GetGame().GetUIManager() && GetGame().GetUIManager().IsMenuOpen(MENU_MAP))
432 {
433 GetGame().GetUIManager().FindMenu(MENU_MAP).Close();
434 }
435
436 ActionUnfoldMap action = ActionUnfoldMap.Cast(m_ActionData.m_Action);
439
440 m_ActionData.m_Player.SetMapClosingSyncSet(false); //reset
441
442 ItemMap chernomap = ItemMap.Cast(m_ActionData.m_Player.GetItemInHands());
443 if (chernomap && m_ActionData.m_Player.IsMapOpen())
444 {
445 chernomap.SetMapStateOpen(false, m_ActionData.m_Player);
446 }
447
448 if (action)
449 action.End(m_ActionData);
450 }
451 }
452
453 void PerformMapChange()
454 {
455 if (m_ActionData.m_Player.IsSwimming() || m_ActionData.m_Player.IsClimbing() || m_ActionData.m_Player.IsFalling() || m_ActionData.m_Player.IsClimbingLadder() || m_ActionData.m_Player.IsUnconscious() || m_ActionData.m_Player.IsRestrained())
456 return;
457
458 ItemMap chernomap = ItemMap.Cast(m_ActionData.m_Player.GetItemInHands());
459 if (chernomap)
460 {
461 if (!m_ActionData.m_Player.IsMapOpen() && !m_MapFolding)
462 {
463 if (m_CancelCondition) //do not open when cancelling in progress
464 return;
465
466 chernomap.SetMapStateOpen(true, m_ActionData.m_Player);
467
468 if (!GetGame().IsMultiplayer() || GetGame().IsServer())
469 {
470 //chernomap.SyncMapMarkers();
471 }
472
473 if (!GetGame().IsDedicatedServer())
474 {
475 UIManager m_UIManager;
477 m_UIManager = GetGame().GetUIManager();
478 m_UIManager.CloseAll();
480 {
481 mapMenu = m_UIManager.EnterScriptedMenu(MENU_MAP, null);
482 mapMenu.InitMapItem(chernomap);
483 mapMenu.LoadMapMarkers();
484 GetGame().GetMission().AddActiveInputExcludes({"map"});
485 }
486 else
487 {
488 GetGame().GetMission().AddActiveInputExcludes({"loopedactions"});
489 }
490
491 GetGame().GetMission().AddActiveInputRestriction(EInputRestrictors.MAP);
492 }
493 }
494 else if (m_ActionData.m_Player.IsMapOpen())
495 {
496 chernomap.SetMapStateOpen(false, m_ActionData.m_Player);
497 m_MapFolding = true;
498 m_ActionData.m_Player.SetMapOpen(false);
499 }
500 }
501 }
502
503 bool StateCheck()
504 {
506 }
507}
508
510{
511 void ActionUnfoldMap()
512 {
513 m_Text = "#unfold_map";
514 }
515
516 override bool IsInstant()
517 {
518 return false;
519 }
520
521 override void CreateConditionComponents()
522 {
523 m_ConditionItem = new CCINonRuined();
524 m_ConditionTarget = new CCTNone();
525 }
526
527 override bool HasTarget()
528 {
529 return false;
530 }
531
532 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
533 {
534 if (player.m_hac || player.IsMapOpen())
535 {
536 return false;
537 }
538 return true;
539 }
540
541 override int GetActionCategory()
542 {
543 return AC_SINGLE_USE;
544 }
545
546 override void OnStartClient(ActionData action_data)
547 {
549 }
550
551 override void OnStartServer(ActionData action_data)
552 {
553 super.OnStartServer(action_data);
554
556 ItemMap chernomap = ItemMap.Cast(action_data.m_MainItem);
557 chernomap.SyncMapMarkers();
558 }
559
560 override void OnEndRequest(ActionData action_data)
561 {
562 action_data.m_Callback.InternalCommand(DayZPlayerConstants.CMD_ACTIONINT_END);
563 action_data.m_State = UA_FINISHED;
564 }
565
566 override void Interrupt(ActionData action_data)
567 {
568 if (action_data.m_Player.m_hac)
569 {
570 action_data.m_Player.m_hac.m_MapFolding = true;
571 action_data.m_Player.m_hac.PerformMapChange();
572 action_data.m_Player.m_hac.Cancel();
573 }
574 else //should never get here, End called from the callback
575 {
577 }
578 }
579
580 void OpenMap(ActionData action_data)
581 {
582 if (!action_data.m_Player.IsPlayerInStance(DayZPlayerConstants.STANCEMASK_PRONE))
583 {
584 action_data.m_Player.m_hac = ActionUnfoldMapCB.Cast(action_data.m_Player.AddCommandModifier_Action(DayZPlayerConstants.CMD_ACTIONMOD_VIEWMAP,ActionUnfoldMapCB));
585 }
586 else
587 {
588 action_data.m_Player.m_hac = ActionUnfoldMapCB.Cast(action_data.m_Player.StartCommand_Action(DayZPlayerConstants.CMD_ACTIONFB_VIEWMAP,ActionUnfoldMapCB,DayZPlayerConstants.STANCEMASK_PRONE));
589 }
590
591 // sets player for associated callback to use
592 if (action_data.m_Player.m_hac)
593 {
594 action_data.m_Player.m_hac.SetActionData(action_data);
595 action_data.m_Callback = action_data.m_Player.m_hac;
596 }
597 }
598}

◆ ~ActionUnfoldMapCB()

191 {
192 return false;
193 }
194
195 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
196 {
197 if (player.m_hac || player.IsMapOpen())
198 {
199 return false;
200 }
201 return true;
202 }
203
204 override int GetActionCategory()
205 {
206 return AC_SINGLE_USE;
207 }
208
209 override void OnStartClient(ActionData action_data)
210 {
override int GetActionCategory()
Definition ActionUnfoldMap.c:204
override void OnStartClient(ActionData action_data)
Definition ActionUnfoldMap.c:209
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition ActionUnfoldMap.c:195

Переменные

◆ m_CancelCondition

bool m_CancelCondition

◆ m_FinalMovementState

int m_FinalMovementState

◆ m_HasReceivedEvent

bool m_HasReceivedEvent

◆ m_InitMovementState

int m_InitMovementState

◆ m_MapFolding

bool m_MapFolding