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