Class EnumConsumers
- Namespace
- Concord
- Assembly
- Concord.Orchestration.dll
Registers the adapter methods that expose extended enum members to the rest of a game. Concord patches each registered method so it reports the added members alongside the compiled ones.
public static class EnumConsumers
- Inheritance
-
EnumConsumers
- Inherited Members
Remarks
Flag math needs no registration. |, & and HasFlag(Enum) run on the
underlying integer, so a registered bit already works.
Methods
For(Type)
Starts registering the consumer methods for one enum.
public static ConsumerBuilder For(Type enumType)
Parameters
enumTypeTypeThe enum whose consumers follow.
Returns
- ConsumerBuilder
A builder that accepts one consumer method at a time.