A container for storing a serialized room template.
More...
|
AssetReferenceGameObject | GetAssetReference () |
| Returns the asset reference based on the assigned prefab GUID. More...
|
|
RoomTemplate | GetMMRoomTemplate () |
| Creates a new Mania Map room template from the serialized text and returns it. More...
|
|
void | Initialize (RoomTemplate template, string prefabGuid, string prefabPath) |
| Sets the properties for the room template. More...
|
|
|
bool | EditId [getset] |
| If true, the ID can be edited in the inspector. More...
|
|
int | Id [getset] |
| The template unique ID. More...
|
|
string | Name [getset] |
| The template name. More...
|
|
string | PrefabGuid [getprivate set] |
| The prefab GUID. More...
|
|
string | PrefabPath [getprivate set] |
| The path of the prefab from the project root when the template was last updated. More...
|
|
string | SerializedText [getprivate set] |
| The serialized text for the template. More...
|
|
A container for storing a serialized room template.
Definition at line 12 of file RoomTemplateResource.cs.
◆ GetAssetReference()
AssetReferenceGameObject GetAssetReference |
( |
| ) |
|
◆ GetMMRoomTemplate()
RoomTemplate GetMMRoomTemplate |
( |
| ) |
|
Creates a new Mania Map room template from the serialized text and returns it.
- Exceptions
-
RoomTemplateNotInitializedException | Raised if the serialized text has not been assigned. |
Definition at line 79 of file RoomTemplateResource.cs.
◆ Initialize()
void Initialize |
( |
RoomTemplate |
template, |
|
|
string |
prefabGuid, |
|
|
string |
prefabPath |
|
) |
| |
Sets the properties for the room template.
- Parameters
-
template | The Mania Map room template. |
prefabGuid | The prefab GUID. |
prefabPath | The prefab path. |
Definition at line 68 of file RoomTemplateResource.cs.
◆ OnValidate()
◆ _editId
◆ _id
◆ _name
◆ _prefabGuid
◆ _prefabPath
◆ _serializedText
◆ EditId
◆ Id
◆ Name
◆ PrefabGuid
◆ PrefabPath
The path of the prefab from the project root when the template was last updated.
Definition at line 47 of file RoomTemplateResource.cs.
◆ SerializedText
The documentation for this class was generated from the following file: