Per-mod registrar object from which all registrations must be made. More...
#include <Registrar.h>
Public Member Functions | |
| Registrar (const char *nameSpace) | |
| template<class T> requires std::derived_from<T, ActorBase> | |
| ProfileCreateBuilder< T > | newProfile (const char *name) const |
| Register a new profile by string-name. | |
| template<class T> requires std::derived_from<T, ActorBase> | |
| ProfileReplaceBuilder< T > | replaceProfile (s32 id) const |
| Replace a vanilla profile by its numeric ID. | |
| ProfileEditBuilder | editProfile (s32 id) const |
| Partially modify fields on a vanilla profile by its numeric ID. | |
Per-mod registrar object from which all registrations must be made.
Every mod should construct and maintain its own global red::Registrar with a unique namespace.
|
inlineexplicit |
Construct a registrar using a namespace.
| nameSpace | The unique namespace for the mod. |
|
inline |
Register a new profile by string-name.
| T | Target actor class that this profile represents and will instantiate. |
| name | The identifier of this profile, to which the namespace will automatically be prefixed. |
|
inline |
Replace a vanilla profile by its numeric ID.
| T | Actor class that this profile will now instantiate. |
| id | The target profile ID to replace. |
|
inline |
Partially modify fields on a vanilla profile by its numeric ID.
| id | The target profile ID to modify. |