Base class for builder objects that operate on profiles. Tracks which fields were set and holds their data. More...
#include <ProfileBuilder.h>
Public Member Functions | |
| Derived & | createInfo (const ActorCreateInfo *createInfo) |
Set the ActorCreateInfo field in the profile. | |
| Derived & | flag (const Profile::Flag flag) |
Set the Flag field in the profile. | |
| Derived & | drawPriority (const s16 drawPriority) |
Set the drawPriority field in the profile. | |
| Derived & | executePriority (const s16 executePriority) |
Set the executePriority field in the profile. | |
| template<ComptimeFixedString... Args> requires (sizeof...(Args) > 0) | |
| Derived & | resources (ProfileInfo::ResType type) |
Set the resources field in the profile. | |
Protected Attributes | |
| const ActorCreateInfo * | mCreateInfo = nullptr |
The createInfo data for the profile we are building. | |
| Profile::Flag | mFlag = Profile::cFlag_None |
The flag data for the profile we are building. | |
| s16 | mDrawPriority = ProfileInfo::cProfileID_Max |
The drawPriority data for the profile we are building. | |
| s16 | mExecutePriority = ProfileInfo::cProfileID_Max |
The createInfo data for the profile we are building. This is a custom field added by RedCore. | |
| u8 | mResourceCount = 0 |
The entry for ProfileInfo::cResNum for the profile we are building. This is stored separately for custom profiles. | |
| sead::SafeString * | mResources = nullptr |
The entry for ProfileInfo::cResList for the profile we are building. This is stored separately for custom profiles. | |
| ProfileInfo::ResType | mResourceType = ProfileInfo::cResType_Course |
The entry for ProfileInfo::cResType for the profile we are building. This is stored separately for custom profiles. | |
| bool | mCreateInfoModified = false |
Whether mCreateInfo was modified. Used for validation and partial application in red::ProfileEditBuilder. | |
| bool | mFlagModified = false |
Whether mFlag was modified. Used for validation and partial application in red::ProfileEditBuilder. | |
| bool | mDrawPriorityModified = false |
Whether mDrawPriority was modified. Used for validation and partial application in red::ProfileEditBuilder. | |
| bool | mExecutePriorityModified = false |
Whether mExecutePriority was modified. Used for validation and partial application in red::ProfileEditBuilder. | |
| bool | mResourcesModified = false |
Whether mResources was modified. Used for validation and partial application in red::ProfileEditBuilder. | |
Base class for builder objects that operate on profiles. Tracks which fields were set and holds their data.
| Derived | The type of builder which inherits this one. Used for casting for the builder pattern. |
|
inlinenodiscard |
Set the ActorCreateInfo field in the profile.
|
inlinenodiscard |
Set the Flag field in the profile.
|
inlinenodiscard |
Set the drawPriority field in the profile.
|
inlinenodiscard |
Set the executePriority field in the profile.
|
inlinenodiscard |
Set the resources field in the profile.
| Args | Comma-separated list of string literals representing which resources to load. |
| type | At what stage of the game to load these resources. |
|
protected |
The createInfo data for the profile we are building.
|
protected |
The flag data for the profile we are building.
|
protected |
The drawPriority data for the profile we are building.
|
protected |
The createInfo data for the profile we are building. This is a custom field added by RedCore.
|
protected |
The entry for ProfileInfo::cResNum for the profile we are building. This is stored separately for custom profiles.
|
protected |
The entry for ProfileInfo::cResList for the profile we are building. This is stored separately for custom profiles.
|
protected |
The entry for ProfileInfo::cResType for the profile we are building. This is stored separately for custom profiles.
|
protected |
Whether mCreateInfo was modified. Used for validation and partial application in red::ProfileEditBuilder.
|
protected |
Whether mFlag was modified. Used for validation and partial application in red::ProfileEditBuilder.
|
protected |
Whether mDrawPriority was modified. Used for validation and partial application in red::ProfileEditBuilder.
|
protected |
Whether mExecutePriority was modified. Used for validation and partial application in red::ProfileEditBuilder.
|
protected |
Whether mResources was modified. Used for validation and partial application in red::ProfileEditBuilder.