[−][src]Trait kay::Actor
Must be implemented by every struct to be used as actor instance state
Associated Types
Loading content...Required methods
fn id(&self) -> Self::ID
Get the ID referring to this actor instace
unsafe fn set_id(&mut self, id: RawID)
Set the ID of this actor instance - only to be used by the system itself
Provided methods
fn id_as<TargetID: TraitIDFrom<Self>>(&self) -> TargetID
Convert the ID of this instance into an actor trait ID. Only works if the actor implements the corresponding actor trait