Lua
C++
Edit

Actor

In the entity component system, the actor is our main object type. The actor poseesses an entity as and additional modular "blocks" of behavior called components. An actor has only one entity but can have multiple components.

Property Type Description
entity const shared_ptr<Entity>& entity this actor controls
AddComponent Method adds a new component to the actor
Copy Method makes a copy of the actor
GetComponent Method gets the component of the specified type, if it exists
CreateActor Function creates a new actor
GetEntityActor Function retrieves an entity's actor

Additional methods may be generated by the preprocessor. These attributes will be created based on the component classes that are present in your project source code files.

Copyright © 2024 Ultra Software.
All rights reserved.