Builder for partially modifying fields on a vanilla profile by its numeric ID. More...
#include <ProfileEditBuilder.h>
Inherits red::ProfileBuilder< ProfileEditBuilder >.
Public Member Functions | |
| ProfileEditBuilder (s32 id) | |
| Begins editing a vanilla profile. | |
| Profile * | build () |
| Completes the builder by applying the changes to the vanilla profile. | |
| Public Member Functions inherited from red::ProfileBuilder< ProfileEditBuilder > | |
| ProfileEditBuilder & | createInfo (const ActorCreateInfo *createInfo) |
Set the ActorCreateInfo field in the profile. | |
| ProfileEditBuilder & | flag (const Profile::Flag flag) |
Set the Flag field in the profile. | |
| ProfileEditBuilder & | drawPriority (const s16 drawPriority) |
Set the drawPriority field in the profile. | |
| ProfileEditBuilder & | executePriority (const s16 executePriority) |
Set the executePriority field in the profile. | |
| ProfileEditBuilder & | resources (ProfileInfo::ResType type) |
Set the resources field in the profile. | |
Additional Inherited Members | |
| Protected Attributes inherited from red::ProfileBuilder< ProfileEditBuilder > | |
| const ActorCreateInfo * | mCreateInfo |
The createInfo data for the profile we are building. | |
| Profile::Flag | mFlag |
The flag data for the profile we are building. | |
| s16 | mDrawPriority |
The drawPriority data for the profile we are building. | |
| s16 | mExecutePriority |
The createInfo data for the profile we are building. This is a custom field added by RedCore. | |
| u8 | mResourceCount |
The entry for ProfileInfo::cResNum for the profile we are building. This is stored separately for custom profiles. | |
| sead::SafeString * | mResources |
The entry for ProfileInfo::cResList for the profile we are building. This is stored separately for custom profiles. | |
| ProfileInfo::ResType | mResourceType |
The entry for ProfileInfo::cResType for the profile we are building. This is stored separately for custom profiles. | |
| bool | mCreateInfoModified |
Whether mCreateInfo was modified. Used for validation and partial application in red::ProfileEditBuilder. | |
| bool | mFlagModified |
Whether mFlag was modified. Used for validation and partial application in red::ProfileEditBuilder. | |
| bool | mDrawPriorityModified |
Whether mDrawPriority was modified. Used for validation and partial application in red::ProfileEditBuilder. | |
| bool | mExecutePriorityModified |
Whether mExecutePriority was modified. Used for validation and partial application in red::ProfileEditBuilder. | |
| bool | mResourcesModified |
Whether mResources was modified. Used for validation and partial application in red::ProfileEditBuilder. | |
Builder for partially modifying fields on a vanilla profile by its numeric ID.
Intended to be constructed via a per-mod red::Registrar object.
|
inlineexplicit |
Begins editing a vanilla profile.
| id | The target profile ID to modify. |
|
inline |
Completes the builder by applying the changes to the vanilla profile.