![]() |
ManiaMap.Unity
Procedural generation of metroidvania style maps for Unity.
|
A TemplateGroup entry. More...
Public Member Functions | |
| TemplateGroupsEntry | GetMMTemplateGroupsEntry (Dictionary< RoomTemplateResource, RoomTemplate > templateCache) |
| Returns a new generation template group entry. More... | |
| void | OnValidate () |
| TemplateGroupEntry (RoomTemplateResource template) | |
| Initializes a new entry with no quantity constraints. More... | |
| TemplateGroupEntry (RoomTemplateResource template, int minQuantity, int maxQuantity) | |
| Initializes a new entry with quantity constraints. More... | |
Properties | |
| int | MaxQuantity [getset] |
| The maximum number of times this entry is used in a layout. More... | |
| int | MinQuantity [getset] |
| The minimum number of times this entry is used in a layout. More... | |
| RoomTemplateResource | Template [getset] |
| The room template. More... | |
Private Attributes | |
| int | _maxQuantity = int.MaxValue |
| int | _minQuantity |
| RoomTemplateResource | _template |
A TemplateGroup entry.
Definition at line 11 of file TemplateGroupEntry.cs.
| TemplateGroupEntry | ( | RoomTemplateResource | template | ) |
Initializes a new entry with no quantity constraints.
| template | The room template. |
Definition at line 52 of file TemplateGroupEntry.cs.
| TemplateGroupEntry | ( | RoomTemplateResource | template, |
| int | minQuantity, | ||
| int | maxQuantity | ||
| ) |
Initializes a new entry with quantity constraints.
| template | The room template. |
| minQuantity | The minimum use quantity |
| maxQuantity | The maximum use quantity. |
Definition at line 63 of file TemplateGroupEntry.cs.
| TemplateGroupsEntry GetMMTemplateGroupsEntry | ( | Dictionary< RoomTemplateResource, RoomTemplate > | templateCache | ) |
Returns a new generation template group entry.
Definition at line 73 of file TemplateGroupEntry.cs.
| void OnValidate | ( | ) |
Definition at line 42 of file TemplateGroupEntry.cs.
|
private |
Definition at line 32 of file TemplateGroupEntry.cs.
|
private |
Definition at line 21 of file TemplateGroupEntry.cs.
|
private |
Definition at line 14 of file TemplateGroupEntry.cs.
|
getset |
The maximum number of times this entry is used in a layout.
Definition at line 36 of file TemplateGroupEntry.cs.
|
getset |
The minimum number of times this entry is used in a layout.
Definition at line 25 of file TemplateGroupEntry.cs.
|
getset |
The room template.
Definition at line 18 of file TemplateGroupEntry.cs.