| Bucket Class |
[This is preliminary documentation and is subject to change.]
Namespace: EJW.TextBasedAdventure
The Bucket type exposes the following members.
| Name | Description | |
|---|---|---|
| Count |
Gets the number of items stored in the Bucket.
| |
| Item |
Gets or Sets the Bucket item at the specified key.
| |
| Keys |
A list of all the Keys in this Bucket.
| |
| Values |
A list of all the Values in this Bucket.
|
| Name | Description | |
|---|---|---|
| Add |
Adds the specified item to the Bucket.
| |
| ContainsKey |
Determines whether the Bucket contains the specified key.
| |
| Get |
Retrieves the specified item from the Bucket.
| |
| Remove |
Removes the value with the specified key from the Bucket.
|
Game.Bucket["player_health"] = 100; ... Game.Bucket["player_health"] -= 1; ... if (Game.Bucket["player_health"] <= 0) { ... }