Photon Bolt Engine API
Networking Middleware
Public Member Functions | Properties | List of all members
Bolt.IState Interface Reference

Base interface for all states More...

Inheritance diagram for Bolt.IState:

Public Member Functions

void SetAnimator (UE.Animator animator)
 Set the animator object this state should use for reading/writing mecanim parameters More...
 
void AddAnimator (UE.Animator animator)
 
void AddCallback (string path, PropertyCallback callback)
 Allows you to hook up a callback to a specific property More...
 
void AddCallback (string path, PropertyCallbackSimple callback)
 Allows you to hook up a callback to a specific property More...
 
void RemoveCallback (string path, PropertyCallback callback)
 Removes a callback from a property More...
 
void RemoveCallback (string path, PropertyCallbackSimple callback)
 Removes a callback from a property More...
 
void RemoveAllCallbacks ()
 Clears all callbacks currently set. This is useful when pooling entities and you wish to clear out the current callbacks before returning the entity to the pool. More...
 
void SetDynamic (string property, object value)
 Set a property dynamically by string name More...
 
object GetDynamic (string property)
 Gets a property dynamically by string name More...
 
bool TrySetDynamic (string property, object value)
 
bool TryGetDynamic (string property, out object value)
 
void SetTransforms (NetworkTransform transform, UnityEngine.Transform simulate)
 
void SetTransforms (NetworkTransform transform, UnityEngine.Transform simulate, UnityEngine.Transform render)
 
void ForceTransform (NetworkTransform transform, UnityEngine.Vector3 position)
 
void ForceTransform (NetworkTransform transform, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation)
 
void SetAnimator (UE.Animator animator)
 Set the animator object this state should use for reading/writing mecanim parameters More...
 
void AddCallback (string path, PropertyCallback callback)
 Allows you to hook up a callback to a specific property More...
 
void AddCallback (string path, PropertyCallbackSimple callback)
 Allows you to hook up a callback to a specific property More...
 
void RemoveCallback (string path, PropertyCallback callback)
 Removes a callback from a property More...
 
void RemoveCallback (string path, PropertyCallbackSimple callback)
 Removes a callback from a property More...
 
void SetDynamic (string property, object value)
 Set a property dynamically by string name More...
 

Properties

UE.Animator Animator [get]
 The Animator component associated with this entity state More...
 
IEnumerable< UE.Animator > AllAnimators [get]
 A collection of all Animator components associated with this entity state More...
 

Detailed Description

Base interface for all states

Member Function Documentation

void Bolt.IState.AddAnimator ( UE.Animator  animator)
void Bolt.IState.AddCallback ( string  path,
PropertyCallback  callback 
)

Allows you to hook up a callback to a specific property

Parameters
pathThe path of the property
callbackThe callback delegate
void Bolt.IState.AddCallback ( string  path,
PropertyCallbackSimple  callback 
)

Allows you to hook up a callback to a specific property

Parameters
pathThe path of the property
callbackThe callback delegate
void Bolt.IState.AddCallback ( string  path,
PropertyCallback  callback 
)

Allows you to hook up a callback to a specific property

Parameters
pathThe path of the property
callbackThe callback delegate
void Bolt.IState.AddCallback ( string  path,
PropertyCallbackSimple  callback 
)

Allows you to hook up a callback to a specific property

Parameters
pathThe path of the property
callbackThe callback delegate
void Bolt.IState.ForceTransform ( NetworkTransform  transform,
UnityEngine.Vector3  position 
)
void Bolt.IState.ForceTransform ( NetworkTransform  transform,
UnityEngine.Vector3  position,
UnityEngine.Quaternion  rotation 
)
object Bolt.IState.GetDynamic ( string  property)

Gets a property dynamically by string name

Parameters
propertyThe property name to get
Returns
void Bolt.IState.RemoveAllCallbacks ( )

Clears all callbacks currently set. This is useful when pooling entities and you wish to clear out the current callbacks before returning the entity to the pool.

void Bolt.IState.RemoveCallback ( string  path,
PropertyCallback  callback 
)

Removes a callback from a property

Parameters
pathThe path of the property
callbackThe callback delegate to remove
void Bolt.IState.RemoveCallback ( string  path,
PropertyCallbackSimple  callback 
)

Removes a callback from a property

Parameters
pathThe path of the property
callbackThe callback delegate to remove
void Bolt.IState.RemoveCallback ( string  path,
PropertyCallback  callback 
)

Removes a callback from a property

Parameters
pathThe path of the property
callbackThe callback delegate to remove
void Bolt.IState.RemoveCallback ( string  path,
PropertyCallbackSimple  callback 
)

Removes a callback from a property

Parameters
pathThe path of the property
callbackThe callback delegate to remove
void Bolt.IState.SetAnimator ( UE.Animator  animator)

Set the animator object this state should use for reading/writing mecanim parameters

Parameters
animatorThe animator object to use
void Bolt.IState.SetAnimator ( UE.Animator  animator)

Set the animator object this state should use for reading/writing mecanim parameters

Parameters
animatorThe animator object to use
void Bolt.IState.SetDynamic ( string  property,
object  value 
)

Set a property dynamically by string name

Parameters
property
value
void Bolt.IState.SetDynamic ( string  property,
object  value 
)

Set a property dynamically by string name

Parameters
propertyThe property name to set
valueThe property value to set
void Bolt.IState.SetTransforms ( NetworkTransform  transform,
UnityEngine.Transform  simulate 
)
void Bolt.IState.SetTransforms ( NetworkTransform  transform,
UnityEngine.Transform  simulate,
UnityEngine.Transform  render 
)
bool Bolt.IState.TryGetDynamic ( string  property,
out object  value 
)
bool Bolt.IState.TrySetDynamic ( string  property,
object  value 
)

Property Documentation

IEnumerable<UE.Animator> Bolt.IState.AllAnimators
get

A collection of all Animator components associated with this entity state

UE Animator Bolt.IState.Animator
get

The Animator component associated with this entity state