Extending
Adding a new behavior
Path A — Attribute (recommended)
Write a static method annotated with [Effect]/[Condition]/[Trigger], and AutoRegister()
collects it automatically from all assemblies. There is no wiring code.
The signatures are fixed.
Path B — Manual registration
Use this when you need DI, runtime state, or closures.
Adding a new domain
A new domain needs only 1 data class. There is no system code.
damage/add_modifier, etc., reuse what skills already registered, as is → 0 lines of code.
Data classes and CSV mappers can be generated with the Type Designer.
Cross-domain
When an effect needs to reference another domain's data, use manual registration + closure capture
instead of auto-registration to capture the relevant DataBase<T>. No type keys (typeof) are used.
Recommendation: auto-register only pure behaviors that know nothing about domains; manually register only effects that need domain coupling.
AOT (IL2CPP) caveat
AutoRegister() is reflection-based, so methods may be stripped in IL2CPP builds.
Preserve the assembly containing your behavior methods with link.xml.
If you want to avoid reflection, you may use only Path B (manual registration).