Skip to content

Features

Tate McCormick edited this page Oct 3, 2021 · 7 revisions

Systems are organized inside of features. They allow you to group your systems together to help your codebase scale as more functionality is added. This is their only functional purpose.

Example:

public class TestFeature : Feature
{
    public TestFeature()
    {
        Systems = new LazyECS.Systems()
            .Add(new TestInitializeSystem())
            .Add(new TestUpdateSystem())
            .Add(new TestTeardownSystem())
            .Add(new TestCleanupSystem());
    }
}
Clone this wiki locally