![]() |
ManiaMap.Unity
Procedural generation of metroidvania style maps for Unity.
|
A class for creating groups of CollectableResource. More...
Public Member Functions | |
| bool | AddCollectable (CollectableResource collectable) |
| Adds the collectable to the group if it is valid and doesn't already exist. Returns true if it is added. More... | |
| bool | ContainsCollectable (CollectableResource collectable) |
| Returns true if the group contains the collectable. More... | |
| List< int > | GetCollectableIds () |
| Returns a list of collectable ID's in the quantity specified by the entries. More... | |
Properties | |
| List< CollectableGroupEntry > | Collectables [getset] |
| A list of collectables. More... | |
| string | Name [getset] |
| The group name. More... | |
Private Attributes | |
| List< CollectableGroupEntry > | _collectables = new List<CollectableGroupEntry>() |
| string | _name = "<None>" |
A class for creating groups of CollectableResource.
The following are some design patterns to consider when implementing collectables so that they may be referenced by this class:
Definition at line 20 of file CollectableGroup.cs.
| bool AddCollectable | ( | CollectableResource | collectable | ) |
Adds the collectable to the group if it is valid and doesn't already exist. Returns true if it is added.
| collectable | The collectable. |
Definition at line 59 of file CollectableGroup.cs.
| bool ContainsCollectable | ( | CollectableResource | collectable | ) |
Returns true if the group contains the collectable.
| collectable | The collectable. |
Definition at line 74 of file CollectableGroup.cs.
| List< int > GetCollectableIds | ( | ) |
Returns a list of collectable ID's in the quantity specified by the entries.
Definition at line 39 of file CollectableGroup.cs.
|
private |
Definition at line 30 of file CollectableGroup.cs.
|
private |
Definition at line 23 of file CollectableGroup.cs.
|
getset |
A list of collectables.
Definition at line 34 of file CollectableGroup.cs.
|
getset |
The group name.
Definition at line 27 of file CollectableGroup.cs.