Struct mold2d::actor_manager::ActorManager [] [src]

pub struct ActorManager<Type, Message> {
    pub actors: HashMap<i32, Box<Actor<Type, Message>>>,
    // some fields omitted
}

Manages all the actors for the game by hashing actors by id

Fields

Methods

impl<Type, Message> ActorManager<Type, Message>
[src]

Add a new actor into the manager

Remove an actor from the actors

Temporarily remove an actor to appease borrow checker

Get a mutable reference to an actor given the id

Reinsert a temporarily removed actor