annotation Component::Unique

Overview

Used to declare a component unique to a context

@[Component::Unique]
@[Context(Game)]
class UniqueComp < Entitas::Component
  prop :size, Int32
  prop :default, String, default: "foo"
end

Defined in:

entitas/annotations.cr