Table of Contents

Class Actor

Namespace
Ceres.Gameplay
Assembly
Ceres.Gameplay.dll

Actor is a MonoBehaviour to place GameObject in Gameplay level.

public class Actor : FlowGraphObject, IFlowGraphRuntime, IFlowProgramRuntime, IFlowGraphContainer, ICeresGraphContainer
Inheritance
Actor
Implements
Derived
Inherited Members

Constructors

Actor()

public Actor()

Fields

advancedSettings

public Actor.FlowGraphSettings advancedSettings

Field Value

Actor.FlowGraphSettings

Methods

Awake()

[ImplementableEvent]
protected virtual void Awake()

FixedUpdate()

[ImplementableEvent]
protected virtual void FixedUpdate()

GetActorComponent(SerializedType<ActorComponent>)

[ExecutableFunction]
public ActorComponent GetActorComponent(SerializedType<ActorComponent> type)

Parameters

type SerializedType<ActorComponent>

Returns

ActorComponent

GetActorComponent<TComponent>()

public TComponent GetActorComponent<TComponent>() where TComponent : ActorComponent

Returns

TComponent

Type Parameters

TComponent

GetActorComponents<TComponent>(List<TComponent>)

public void GetActorComponents<TComponent>(List<TComponent> components) where TComponent : ActorComponent

Parameters

components List<TComponent>

Type Parameters

TComponent

GetActorHandle()

Get actor's id according to actor's world

[ExecutableFunction]
public ActorHandle GetActorHandle()

Returns

ActorHandle

GetController()

[ExecutableFunction]
public PlayerController GetController()

Returns

PlayerController

GetFlowGraph()

Get a FlowGraph instance from this container

public override FlowGraph GetFlowGraph()

Returns

FlowGraph

Remarks

Instance is isolated from persistent data

GetTController<TController>()

public TController GetTController<TController>() where TController : PlayerController

Returns

TController

Type Parameters

TController

GetWorld()

Get actor's world

[ExecutableFunction]
public GameWorld GetWorld()

Returns

GameWorld

Invoke_GetActorComponent(Actor, SerializedType<ActorComponent>)

[ExecutableFunction]
public static ActorComponent Invoke_GetActorComponent(Actor value, SerializedType<ActorComponent> value)

Parameters

value Actor
value SerializedType<ActorComponent>

Returns

ActorComponent

Invoke_GetActorHandle(Actor)

[ExecutableFunction]
public static ActorHandle Invoke_GetActorHandle(Actor value)

Parameters

value Actor

Returns

ActorHandle

Invoke_GetController(Actor)

[ExecutableFunction]
public static PlayerController Invoke_GetController(Actor value)

Parameters

value Actor

Returns

PlayerController

Invoke_GetWorld(Actor)

[ExecutableFunction]
public static GameWorld Invoke_GetWorld(Actor value)

Parameters

value Actor

Returns

GameWorld

LateUpdate()

[ImplementableEvent]
protected virtual void LateUpdate()

OnDestroy()

[ImplementableEvent]
protected virtual void OnDestroy()

OnDisable()

[ImplementableEvent]
protected virtual void OnDisable()

OnEnable()

[ImplementableEvent]
protected virtual void OnEnable()

RegisterActor(Actor)

Register an actor to world

protected static void RegisterActor(Actor actor)

Parameters

actor Actor

Start()

[ImplementableEvent]
protected virtual void Start()

UnregisterActor(Actor)

Unregister an actor from world

protected static void UnregisterActor(Actor actor)

Parameters

actor Actor

Update()

[ImplementableEvent]
protected virtual void Update()