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"]; } } }
/// <summary> /// Called each time building is upgraded /// </summary> /// <returns>Resources provided on upgrade</returns> public ResourceBox OnUpgrade() { return(ResourceBox.EMPTY()); }
/// <summary> /// Called when the building is built /// </summary> /// <returns>Resources provided once the building is completed</returns> public ResourceBox OnBuild() { return(ResourceBox.EMPTY()); }