Class Component
- Namespace
- MonkeyLoader.Components
- Assembly
- MonkeyLoader.dll
Contains helper methods to work with entities and their components.
These are mostly extension methods that proxy calls to Components
public static class Component
- Inheritance
-
Component
- Inherited Members
Methods
Add<TEntity>(TEntity, IComponent<TEntity>)
Adds the given component to this entity.
public static void Add<TEntity>(this TEntity entity, IComponent<TEntity> component) where TEntity : class, IEntity<TEntity>
Parameters
entity
TEntityThe entity to add the component to.
component
IComponent<TEntity>The component to add to the entity.
Type Parameters
TEntity
The type of the entity.