Skip to content

Tag Components

Tags are a components that don't store any data. They are often used to mark entities that have a common trait or behavior.

public struct Pretty;
public struct Smart;
public struct Cool;

var you = world.Spawn()

var fennecsUsers = world.Query()

Assert.Contains(you, fennecsUsers);

They need practically no memory and are great to use in Match Expressions, e.g. Query.Has<MyTag>() (they're not so great as Stream Types, but they're not harmful either - they just take a slot you might want to use for actual data).

fennecs is released under the MIT License. Neofox is released under the CC BY-NC-SA 4.0 License.