pub trait GameObject: GameObjectBoxClone + Scriptable + Drawable + Parent + Child + Any + 'static + Send + Sync {
    fn as_any(&self) -> &dyn Any;
fn cast_camera_arc_rwlock(
        &self,
        this: Arc<RwLock<dyn GameObject>>
    ) -> Result<Arc<RwLock<dyn Camera>>, ()>;
fn cast_light_arc_rwlock(
        &self,
        this: Arc<RwLock<dyn GameObject>>
    ) -> Result<Arc<RwLock<dyn Light>>, ()>;
fn get_id(&self) -> ID;
fn get_subspace(&self) -> Space;
fn get_inversed_subspace(&self) -> Space; }

Required methods

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Implementors