Component Management - NocturnalWisp/Tynted-Engine GitHub Wiki
Getting Started
Components are a big part of the engine, and therefore have multiple use cases and implementations. If you would like to learn how to create a new component, look here. Throughout this doc I would like to talk about how to add, remove, and utilize components you have created.
Adding and Removing
Both of these add and remove components that have been registered to the ECSManager. Note. This does not remove a component from an entity, it removes the component from being used in a system, or being put on any entities.
//Adding a component you have created.
ECSManager.AddComponent<ComponentType>();
//Removing a component you have created. Not really ever needed.
ECSManager.RemoveComponent<ComponentType>();
Utilizing
Components are utilized on entities and systems. You can take a look at the API for usage information. ECSManager. System Attributes. Also Check out the tutorials for more information on actually applying these principles. System. Entities and Registering Components.