Makinom  2.21.0
API Documentation
GamingIsLove.Makinom.PlayerHandler Class Reference
Inheritance diagram for GamingIsLove.Makinom.PlayerHandler:
GamingIsLove.Makinom.ISaveData

Public Member Functions

virtual void Clear ()
 
virtual void FireChanged ()
 
virtual void FindInteractionControllers ()
 
virtual bool IsPlayer (GameObject gameObject)
 
virtual void AddOtherPlayer (GameObject gameObject)
 
virtual void RemoveOtherPlayer (GameObject gameObject)
 
virtual void SetPlayer (GameObject newPlayer, bool destroyOld, bool usePosition, bool useRotation, bool useScale)
 
virtual void Spawn (int spawnID, Vector3 offset)
 
virtual void Spawn (Vector3 position, bool setRotation, Vector3 rotation, bool setScale, Vector3 scale)
 
virtual DataObject SaveGame ()
 Used to save the data - you need to add the data to a GamingIsLove.Makinom.DataObject. More...
 
virtual void LoadGame (DataObject data)
 Used to load the data - you need to get the data from the GamingIsLove.Makinom.DataObject. More...
 

Protected Member Functions

virtual GameObject CreatePrefabInstance ()
 
virtual GameObject CreatePrefabInstance (SpawnPoint spawnPoint, Vector3 offset)
 
virtual void Destroy ()
 
virtual void CheckSpawnedPrefab ()
 
virtual GameObject GetPrefab ()
 

Protected Attributes

int prefabIndex = -1
 
GameObject prefabInstance
 
List< GameObject > otherPlayers = new List<GameObject>()
 
Notify changedHandler
 

Properties

Notify Changed
 
virtual GameObject GameObject [get]
 
virtual object FormulaObject [get]
 

Member Function Documentation

◆ LoadGame()

virtual void GamingIsLove.Makinom.PlayerHandler.LoadGame ( DataObject  data)
virtual

Used to load the data - you need to get the data from the GamingIsLove.Makinom.DataObject.

Parameters
dataA GamingIsLove.Makinom.DataObject containing the data.

Implements GamingIsLove.Makinom.ISaveData.

◆ SaveGame()

virtual DataObject GamingIsLove.Makinom.PlayerHandler.SaveGame ( )
virtual

Used to save the data - you need to add the data to a GamingIsLove.Makinom.DataObject.

Returns
A GamingIsLove.Makinom.DataObject containing the data.

Implements GamingIsLove.Makinom.ISaveData.