GameResources
GameResources class
Object structure
Section titled “Object structure”data GameResources
// actually Number but use Int insteadcash: Int = 0wood: Int = 0metal: Int = 0cloth: Int = 0water: Int = 0food: Int = 0ammunition: Int = 0
Constants
Section titled “Constants”enum GameResourcesConstants
CASH: String = "cash"WOOD: String = "wood"METAL: String = "metal"CLOTH: String = "cloth"WATER: String = "water"FOOD: String = "food"AMMUNITION: String = "ammunition"