Trait rin::ecs::Component[][src]

pub trait Component: 'static {
    type Storage;
    type MutStorageCacheGuard: CacheConstructor;
    pub fn type_name() -> &'static str;
pub fn is_reference() -> bool; pub fn id() -> TypeId { ... }
pub fn references_other(
    ) -> Option<Box<dyn Fn(&Storages, &Entity) + 'static, Global>> { ... } }

Main Component trait.

Usually implemented using a derive attribute as in:

#[derive(Component, Debug)]
struct Position{}

Allows to add a type as an entity’s component.

Associated Types

type Storage[src]

type MutStorageCacheGuard: CacheConstructor[src]

Loading content...

Required methods

pub fn type_name() -> &'static str[src]

pub fn is_reference() -> bool[src]

Loading content...

Provided methods

pub fn id() -> TypeId[src]

pub fn references_other(
) -> Option<Box<dyn Fn(&Storages, &Entity) + 'static, Global>>
[src]

Loading content...

Implementors

impl Component for Rotation[src]

impl Component for PathLookUpDistance[src]

impl Component for Ty[src]

impl Component for Type[src]

impl Component for ArmatureCache[src]

impl Component for ArmatureDualQuats[src]

impl Component for ArmatureDualQuatsBuffer[src]

impl Component for ArmatureMatrices[src]

impl Component for ArmatureMatricesBuffer[src]

impl Component for BoneBase[src]

impl Component for BoneName[src]

impl Component for BoneWeightsAndIndicesBuffer[src]

impl Component for FootBones[src]

impl Component for GeometryWeights[src]

impl Component for RootMotionBone[src]

impl Component for Skeleton[src]

impl Component for SkeletonName[src]

impl Component for SkeletonRef[src]

type Storage = KeyedDenseVec<usize, SkeletonRef>

type MutStorageCacheGuard = CacheGuard

impl Component for Action[src]

impl Component for ActionClock[src]

impl Component for SceneIndex[src]

impl Component for Selectable[src]

impl Component for ShapeKey[src]

impl Component for Node[src]

impl Component for MaterialMultiRef[src]

impl Component for MaterialRef[src]

impl Component for ShadowMaterialRef[src]

impl Component for CubemapRef[src]

impl Component for CubemapSampler[src]

impl Component for SamplerRef[src]

impl Component for TextureRef[src]

impl Component for TextureSampler[src]

impl Component for CurrentPosition[src]

impl Component for Delta[src]

impl Component for rin::scene::animation::path_follower::Parameters[src]

impl Component for ReynoldsPathInfo[src]

impl Component for Velocity[src]

impl Component for Path[src]

impl Component for Speed[src]

impl Component for Name[src]

impl Component for SourcePath[src]

impl Component for Visible[src]

impl Component for DebugGeometryRef[src]

impl Component for GeometryRef[src]

impl Component for Submesh[src]

impl Component for VertexGroups[src]

impl Component for Cascades[src]

impl Component for rin::scene::light::shadow::Map[src]

impl Component for StaticCascades[src]

impl Component for rin::scene::light::shadow::StaticMap[src]

impl Component for AmbientLight[src]

impl Component for AreaLight[src]

impl Component for Attenuation[src]

impl Component for DirectionalLight[src]

impl Component for DirectionalLightMatrices[src]

impl Component for ImageBasedLight[src]

impl Component for Light[src]

impl Component for PointLight[src]

impl Component for SpotLight[src]

impl Component for SpotLightMatrices[src]

impl Component for DebugGeometry[src]

impl Component for CollisionHandle[src]

impl Component for Offset[src]

impl Component for Shape[src]

impl Component for ProgramRef[src]

impl Component for rin::scene::renderer::components::RenderPlane[src]

impl Component for DebugNormals[src]

impl Component for GeomToGpuGeomRef[src]

impl Component for GpuDebugGeometryRef[src]

impl Component for GpuGeometryRef[src]

impl Component for IndicesBuffer[src]

impl Component for ShadowGeometry[src]

impl Component for SubmeshBuffers[src]

impl Component for VertexBuffer[src]

impl Component for LightAsCameraUBO[src]

impl Component for rin::scene::renderer::shadow::Map[src]

impl Component for rin::scene::renderer::shadow::StaticMap[src]

impl Component for Skybox[src]

impl Component for Bone[src]

type Storage = Forest<Bone>

type MutStorageCacheGuard = ()

impl Component for PreviousTransformation[src]

impl Component for rin::scene::transformation::RenderPlane[src]

impl Component for SkinningUpToDate[src]

impl Component for rin::scene::water::Parameters[src]

impl Component for ParametersSend[src]

impl<T> Component for AnimatedGeometry<T> where
    T: 'static, 
[src]

impl<T> Component for Geometry<T> where
    T: 'static + Clone
[src]

Loading content...