Tile.UpdateBiomeBitmask C# (CSharp) Method

UpdateBiomeBitmask() public method

public UpdateBiomeBitmask ( ) : void
return void
	public void UpdateBiomeBitmask()
	{
		int count = 0;
		
		if (Collidable && Top != null && Top.BiomeType == BiomeType)
			count += 1;
		if (Collidable && Bottom != null && Bottom.BiomeType == BiomeType)
			count += 4;
		if (Collidable && Left != null && Left.BiomeType == BiomeType)
			count += 8;
		if (Collidable && Right != null && Right.BiomeType == BiomeType)
			count += 2;
		
		BiomeBitmask = count;
	}