Exemplo n.º 1
0
 private Image _getResourceHexImage(ResourceHexType type)
 {
     switch (type)
     {
         case ResourceHexType.Forest:
             return _forestTexture;
     }
     throw new Exception("ResourceHex texture not supplied.");
 }
Exemplo n.º 2
0
 public ResourceHex(ResourceHexType type, int resourceQuantity, IntVector2 hexQuoords, World world)
     : base(hexQuoords, world)
 {
     Type = type;
     amountRemaining = amountRemaining;
 }