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
entityTEntityThe entity to add the component to.
componentIComponent<TEntity>The component to add to the entity.
Type Parameters
TEntityThe type of the entity.