Your circle is the bounded place the entity is summoned into. It declares the
medium you think in, the gates you can call, and the wards that constrain
your loop; Cantrip.new/1 validates that exactly one medium is declared.
Runtime boundary for a cantrip entity.
A circle declares the medium the entity thinks in, the gates it can call, and
the wards that constrain the loop. Cantrip.new/1 validates that callers
declare exactly one medium using :type, :medium, or :circle_type.
Summary
Functions
Validate medium declaration. Returns :ok or {:error, reason}. Called during Cantrip construction.
Types
Functions
Validate medium declaration. Returns :ok or {:error, reason}. Called during Cantrip construction.
Omitting a medium declaration is an error. Conflicting medium declarations are also an error.