RedCore
Loading...
Searching...
No Matches
ProfileCreateBuilder.h
Go to the documentation of this file.
1#pragma once
2
3#include <concepts>
4#include <actor/ProfileInfo.h>
5#include <actor/Actor.h>
6#include <red/registry/builder/ProfileBuilder.h>
7#include <red/profile/ProfileEx.h>
8
9namespace red {
10
11/**
12 * Builder for creating new custom profiles to be registered by string-identifier.
13 * @tparam T Target actor class that this profile represents and will instantiate.
14 * @details Only intended to be constructed via a per-mod @c red::Registrar object which passes the namespace.
15 */
16template <class T> requires std::derived_from<T, ActorBase>
18public:
19 /**
20 * Begins creating a new custom profile.
21 * @param identifier The namespaced identifier of this profile.
22 */
27
28 /**
29 * Completes the builder by registering the new profile.
30 * @return The newly constructed profile object.
31 */
40
41private:
42 const sead::SafeString* mIdentifier; ///< The namespaced identifier of the new profile to register.
43};
44
45}
Definition ActorDonutBlock.h:5