Makinom  2.21.0
API Documentation
GamingIsLove.Makinom.InteractionHandler Class Reference

Public Member Functions

virtual void Clear ()
 
virtual void ClearInteractionControllers (bool clearRegisteredObjects)
 
virtual void CheckInteractionControllerUpdate ()
 
virtual void AddInteractionControllersFrom (GameObject gameObject)
 
virtual void RemoveInteractionControllersFrom (GameObject gameObject)
 
virtual void Interact (ref bool interacted)
 
virtual void CheckInteractionInput (GameObject player, ref bool interacted)
 
virtual bool Interact (GameObject player)
 
virtual bool Available (MachineTypeAsset machineType)
 
virtual IInteractionBehaviour GetFirstAvailable (MachineTypeAsset machineType)
 
virtual void Add (IInteractionBehaviour interaction)
 
virtual void Remove (IInteractionBehaviour interaction)
 
virtual List< IInteractionBehaviourGetAll ()
 
virtual void Get (MachineTypeAsset machineType, ref List< IInteractionBehaviour > list)
 
virtual void AddSelection (SelectableObject selectable)
 
virtual void RemoveSelection (SelectableObject selectable)
 
virtual SelectableObject GetNearestSelectable (GameObject user, IRange range)
 
virtual SelectableObject GetLeftSelectable (GameObject user, GameObject current, IRange range)
 
virtual SelectableObject GetRightSelectable (GameObject user, GameObject current, IRange range)
 
virtual void Tick (Camera camera)
 
virtual bool UseCursorInteractions (GameObject player)
 

Static Public Member Functions

static bool InteractionAvailable (MachineTypeAsset machineType, GameObject user, List< IInteractionBehaviour > list, IRange range)
 
static IInteractionBehaviour GetFirstAvailable (MachineTypeAsset machineType, GameObject user, List< IInteractionBehaviour > list, IRange range)
 
static List< IInteractionBehaviourGetFromObject (GameObject gameObject)
 

Protected Member Functions

virtual void DoAddInteractionControllersFrom (GameObject gameObject)
 
virtual bool InteractIC (GameObject player)
 
virtual bool InteractSO (GameObject player)
 
virtual bool AvailableInteractionController (MachineTypeAsset machineType)
 
virtual bool AvailableSelectedObject (MachineTypeAsset machineType)
 
virtual IInteractionBehaviour GetFirstAvailableInteractionController (MachineTypeAsset machineType)
 
virtual IInteractionBehaviour GetFirstAvailableSelectedObject (MachineTypeAsset machineType)
 

Protected Attributes

InteractionSetting settings
 
List< InteractionControllerinteractionController = new List<InteractionController>()
 
List< InteractionControllersearchICList = new List<InteractionController>()
 
List< GameObject > registeredICObjects = new List<GameObject>()
 
Dictionary< MachineTypeAsset, List< IInteractionBehaviour > > interactions
 
List< IInteractionBehaviourtypelessInteractions = new List<IInteractionBehaviour>()
 
List< IInteractionBehaviourcursorInteractions = new List<IInteractionBehaviour>()
 
Transform lastHit
 
List< SelectableObjectselectableObjects = new List<SelectableObject>()
 
SelectableObject selected
 
List< IInteractionBehaviourselectedInteractions = new List<IInteractionBehaviour>()
 
GameObject cursorInstance
 
Notify selectedChangedHandler
 
NotifyInteraction interactionAddedHandler
 
NotifyInteraction interactionRemovedHandler
 

Properties

Notify SelectedChanged
 
NotifyInteraction InteractionAdded
 
NotifyInteraction InteractionRemoved
 
virtual InteractionSetting Settings [get]
 
virtual List< InteractionControllerInteractionControllers [get]
 
virtual SelectableObject Selected [get, set]
 
virtual List< IInteractionBehaviourCursorInteractions [get]
 

Member Data Documentation

◆ interactions

Dictionary<MachineTypeAsset, List<IInteractionBehaviour> > GamingIsLove.Makinom.InteractionHandler.interactions
protected
Initial value:
=
new Dictionary<MachineTypeAsset, List<IInteractionBehaviour>>()