Пример #1
0
		public override void OnTurn ()
		{
			Output = ResourceBox.EMPTY();

			if (Input.Type == _eventResources["input"].Type)
			{
				/// If the building gets insufficient input resources
				/// then the output is left empty
				if (Input.Spend(_eventResources["input"].Quantity))
				{
					Output = _eventResources["output"];
				}
			}
		}
Пример #2
0
 /// <summary>
 /// Called each time building is upgraded
 /// </summary>
 /// <returns>Resources provided on upgrade</returns>
 public ResourceBox OnUpgrade()
 {
     return(ResourceBox.EMPTY());
 }
Пример #3
0
 /// <summary>
 /// Called when the building is built
 /// </summary>
 /// <returns>Resources provided once the building is completed</returns>
 public ResourceBox OnBuild()
 {
     return(ResourceBox.EMPTY());
 }