annotation

Context

Used to define the context(s) of the component

You can add a single context:

@[Context(Game)]
class MyComponent < Entitas::Component
end

Or multiple:

@[Context(Game)]
@[Context(UI)]
class MyComponent < Entitas::Component
end