ORK Framework  2.24.0
API Documentation
ORKFramework.ControlHandler Class Reference

Public Member Functions

void FireSceneChangeInfo (bool inOldScene, bool beforeFade, SceneLoadType loadType)
 
void Clear ()
 
void AddPlayerControl (Behaviour behaviour)
 
void RemovePlayerControl (Behaviour behaviour)
 
void EnablePlayerControls (bool enable)
 
void ResetControlledPlayer ()
 
void AddCameraControl (Behaviour behaviour)
 
void RemoveCameraControl (Behaviour behaviour)
 
void EnableCameraControls (bool enable)
 
bool SetCameraControlTarget (GameObject target, CameraControlTargetTransition transition)
 
void ResetCameraControlTarget (CameraControlTargetTransition transition)
 
bool IsCameraTargetTransition ()
 
void RestoreControl ()
 
void SetBlockControl (int add, bool notify)
 
void SetBlockPlayer (int add, bool notify)
 
void SetBlockCamera (int add, bool notify)
 
void SetChangingScene (int add)
 
void SetEventBlock (int add)
 
void SetMenuBlock (int add)
 
void SetShopBlock (int add)
 
void SetBlockMoveAI (int add)
 
void SetBlockControlMaps (int add)
 
void SetInBattle (int add)
 
void ClearInBattle ()
 
void SwitchMember (int change, Combatant player, bool onlyBattle, bool notDead)
 
bool CheckInteractions (GameObject player)
 
bool InteractionsAvailable (InteractionType type, string customType)
 
void UpdateMousePosition ()
 
void Tick ()
 

Static Public Member Functions

static ControlHandler Instance ()
 

Properties

ControlBlockChanged BlockPlayerChanged
 
ControlBlockChanged BlockCameraChanged
 
NotifyBool SceneChange
 
PlayerObjectChanged PlayerChanged
 
SceneChangeInfoNotify SceneChangeInfo
 
GameObject ControlledPlayer [get, set]
 
GameObject CameraControlTarget [get]
 
bool CanInteract [get]
 
bool Blocked [get]
 
bool CameraBlocked [get]
 
bool MenuBlocked [get]
 
bool ChangingScene [get]
 
bool InEvent [get]
 
bool InMenu [get]
 
bool InShop [get]
 
bool MoveAIBlocked [get]
 
bool ControlMapsBlocked [get]
 
bool InBattle [get]
 
InteractionController InteractionController [get, set]
 
TouchControl Touch [get]
 
Vector2 MousePosition [get]
 
bool MouseMoved [get]
 
CursorSettings Cursor [get]