Trait GameObject
Source pub trait GameObject:
GameObjectBoxClone
+ Scriptable
+ Drawable
+ Parent
+ Child
+ Any
+ 'static
+ Send
+ Sync {
// Required methods
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;
}
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.