Booklordofthedings edited this page 2024-11-22 11:27:25 +01:00
Download or clone the library and add it to your workspace You might want to clone it into your beeflibs folder for easier access,
or you can add it from remote to make use of the package management features of BeefIDE
Add Theater-ECS as a dependency to your project
using Theater_ECS
Create an ECS object In order to comply with Beefs memory management model you need to delete each object you pass into ECS yourself,
or you can use the DeleteECSAndItems! mixin to cleanup all content in the ecs with that.
Create a class that inherits from System and pass it into ecs.System.RegisterSystem
Create a custom archetype You want to call AddComponentToEntity in the Instantiate function to create a entity of an archetype