ResourceTileSelection.Count C# (CSharp) Method

Count() public method

Gets the count.
This is explicitly a method rather than a property, so it is not serialized when written to JSON
public Count ( ) : int
return int
	public int Count()
	{
		return resource_tile_ids.Count;
	}
	/// <summary>

Usage Example

	protected override bool DoResourceCalculations (ResourceTileSelection selection)
	{
		bool success = base.DoResourceCalculations (selection);
		if (success) {
			GameManager.economyController.IncreasePendingBalance(Player.CharacterClass.Conservationist, cost*selection.Count());
		}
		return success;
	}
All Usage Examples Of ResourceTileSelection::Count