The Flock  0.00.001
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractMain Class Reference

Abstract main, which contains most used functionalities in startup. More...

Inheritance diagram for AbstractMain:
AbstractMonoBehaviour IDebuggable ITransform

Public Member Functions

override void Awake ()
 Awake is called when the script instance is being loaded. More...
 
override void Start ()
 Start is called just before any of the Update methods is called the first time. More...
 
- Public Member Functions inherited from AbstractMonoBehaviour
virtual void Update ()
 Update is called every frame. More...
 
virtual void LateUpdate ()
 LateUpdate is called every frame after all Update functions have been called. More...
 
virtual void FixedUpdate ()
 This function is called every fixed framerate frame. More...
 
virtual void OnGUI ()
 OnScreen GUI. More...
 
virtual void OnDrawGizmos ()
 OnDraw Gizmos. More...
 
virtual void OnDrawGizmosSelected ()
 OnDraw Gizmos selected. More...
 
virtual void OnEnable ()
 This function is called when the object becomes enabled and active. More...
 
virtual void OnDisable ()
 This function is called when the behaviour becomes disabled or inactive. More...
 
virtual void OnBecameVisible ()
 OnBecameVisible is called when the renderer became visible by any camera. More...
 
virtual void OnBecameInvisible ()
 OnBecameInvisible is called when the renderer is no longer visible by any camera. More...
 
virtual void OnDestroy ()
 This function is called before the gameobject is been destroyed. More...
 
GetInterfaceComponent< I > ()
 Gets the interface component. More...
 
void logDebug (string message)
 
void logWarning (string message)
 
void logError (string message)
 

Protected Member Functions

virtual void onHandleLogin (Client client)
 On login with the webservice. More...
 
virtual void onHandleLoginError (PlayerIOError error)
 Handles the login error with the webservice. More...
 
virtual void onRoomJoined (Connection connection)
 On joined room with the server. More...
 
virtual void onRoomJoinedError (PlayerIOError error)
 Handle the joined room error with the server. More...
 

Protected Attributes

Connection _connection
 
Client _client
 
List< Message > _messages = new List<Message>()
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractMonoBehaviour
static List< I > FindObjectsOfInterface< I > ()
 Finds the objects of interface. More...
 
- Properties inherited from AbstractMonoBehaviour
bool debug [get, set]
 
Transform transform [get, set]
 
virtual float x [get, set]
 
virtual float y [get, set]
 
virtual float z [get, set]
 
virtual float rotationX [get, set]
 
virtual float rotationY [get, set]
 
virtual float rotationZ [get, set]
 

Detailed Description

Abstract main, which contains most used functionalities in startup.

Member Function Documentation

override void AbstractMain.Awake ( )
virtual

Awake is called when the script instance is being loaded.

Reimplemented from AbstractMonoBehaviour.

virtual void AbstractMain.onHandleLogin ( Client  client)
protectedvirtual

On login with the webservice.

Parameters
clientClient.
virtual void AbstractMain.onHandleLoginError ( PlayerIOError  error)
protectedvirtual

Handles the login error with the webservice.

Parameters
errorError.
virtual void AbstractMain.onRoomJoined ( Connection  connection)
protectedvirtual

On joined room with the server.

Parameters
connectionConnection.
virtual void AbstractMain.onRoomJoinedError ( PlayerIOError  error)
protectedvirtual

Handle the joined room error with the server.

Parameters
errorError.
override void AbstractMain.Start ( )
virtual

Start is called just before any of the Update methods is called the first time.

Reimplemented from AbstractMonoBehaviour.

Member Data Documentation

Client AbstractMain._client
protected
Connection AbstractMain._connection
protected
List<Message> AbstractMain._messages = new List<Message>()
protected

The documentation for this class was generated from the following file: