Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.36 KB

File metadata and controls

27 lines (20 loc) · 1.36 KB

System

{% hint style="info" %} This refers to a technical concept, not as a generic "container system" or a "interactions system" {% endhint %}

A system is a class that manages something, it should work on its own, the only exception is when it needs information about other system, but it is preferable that you do that by using events or event buses or network messages.

A system can be networked or not, for that you can inherit your class from System or NetworkSystem.

Here's a snipped of now you can declare a system that creates explosion somewhere.

public sealed class ExplosionSystem : NetworkSystem 
{
    public void CreateExplosionAt(Vector3 position, float size) 
    {
        // boom.
    }
}

It is also important that you know all the systems work with the SystemLocator class

{% hint style="warning" %} Always add the postfix "System" in the name of the class for your systems. {% endhint %}