ORK Framework  2.22.0
API Documentation
ORKFramework.PlayerHandler Class Reference
Inheritance diagram for ORKFramework.PlayerHandler:
ORKFramework.ISaveData

Public Member Functions

void Init ()
 
void CheckMaxBattleGroups ()
 
void SetActiveGroup (int id)
 
void AddGroup (int id)
 
void RemoveGroup (int id)
 
Group GetGroup (int id)
 
int GetGroupID (Group group)
 
void ReplaceGroup (int id, Group newGroup)
 
bool GroupExists (int id)
 
bool IsActiveGroup (int id)
 
Combatant GetMemberFromInactiveGroup (int id)
 
GameObject GetPlayer ()
 
bool IsPlayer (Combatant c)
 
void SetPlayer (Combatant newPlayer, bool moveOldBack)
 
void SpawnPlayer (int spawnID)
 
void SpawnPlayer (Vector3 position, bool setRotation, float yRotation, bool setScale, Vector3 scale)
 
void DestroyPlayer ()
 
void AfterBattleSpawn ()
 
DataObject SaveGame ()
 Used to save the data - you need to add the data to a ORKFramework.DataObject. More...
 
void LoadGame (DataObject data)
 Used to load the data - you need to get the data from the ORKFramework.DataObject. More...
 

Static Public Member Functions

static PlayerHandler Instance ()
 

Properties

PlayerChanged Changed
 
Group ActiveGroup [get]
 

Member Function Documentation

void ORKFramework.PlayerHandler.LoadGame ( DataObject  data)

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

Parameters
dataA ORKFramework.DataObject containing the data.

Implements ORKFramework.ISaveData.

DataObject ORKFramework.PlayerHandler.SaveGame ( )

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

Returns
A ORKFramework.DataObject containing the data.

Implements ORKFramework.ISaveData.