ITag.md

July 25, 2024 · View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS

ITag Interface

Used to create entity Tag's by declaring a struct without fields or properties extending ITag.
Note: An ITag should be used to tag a group of multiple entities.
See Example.

public interface ITag

Derived
Disabled

Remarks

In case you want to find a unique entity add the component UniqueEntity to an entity
and use GetUniqueEntity(string) to query for this entity.

Optionally attribute the implementing struct with TagNameAttribute
to assign a custom tag name used for JSON serialization.