Class PlayerActionManager
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class PlayerActionManager
- Inheritance
-
objectPlayerActionManager
- Extension Methods
Constructors
PlayerActionManager(Player, IEventSender, ILogger, IInteractionMode)
public PlayerActionManager(Player player, IEventSender passiveEventBus, ILogger logger, IInteractionMode interactionMode)
Parameters
playerPlayerpassiveEventBusIEventSenderloggerILoggerinteractionModeIInteractionMode
Properties
HasActionsOnRedoStack
public bool HasActionsOnRedoStack { get; }
Property Value
- bool
HasActionsOnUndoStack
public bool HasActionsOnUndoStack { get; }
Property Value
- bool
OnUndoRedoStackChanged
public IEvent OnUndoRedoStackChanged { get; }
Property Value
Methods
CanRedo()
public bool CanRedo()
Returns
- bool
CanUndo()
public bool CanUndo()
Returns
- bool
ClampStacks()
protected void ClampStacks()
ClearUndoStack()
public void ClearUndoStack()
Dispose()
public void Dispose()
ExecuteActionImmediate(IPlayerAction)
public void ExecuteActionImmediate(IPlayerAction action)
Parameters
actionIPlayerAction
ExecuteActionImmediately_INTERNAL(IPlayerAction, out IPlayerAction)
public bool ExecuteActionImmediately_INTERNAL(IPlayerAction action, out IPlayerAction playerAction)
Parameters
actionIPlayerActionplayerActionIPlayerAction
Returns
- bool
ExecuteScheduledActions()
public void ExecuteScheduledActions()
IsActionScheduled(IPlayerAction)
public bool IsActionScheduled(IPlayerAction action)
Parameters
actionIPlayerAction
Returns
- bool
RegisterCommands(IDebugConsole)
public void RegisterCommands(IDebugConsole console)
Parameters
consoleIDebugConsole
ScheduleRedo()
public void ScheduleRedo()
ScheduleUndo()
public void ScheduleUndo()
TryExecuteActionImmediate(IPlayerAction)
public bool TryExecuteActionImmediate(IPlayerAction action)
Parameters
actionIPlayerAction
Returns
- bool
TryScheduleAction(IPlayerAction)
public bool TryScheduleAction(IPlayerAction action)
Parameters
actionIPlayerAction
Returns
- bool