EncapsulateMegatiles() public method

Encapsulates extents of all contained megatiles.
public EncapsulateMegatiles ( ) : void
return void
示例#1
0
	/// <summary>
	/// Adds the megatile region to parameters.
	/// </summary>
	/// <param name='region'>
	/// Region.
	/// </param>
	/// <param name='parameters'>
	/// Parameters.
	/// </param>
	public static void AddMegatileRegionToParameters(Region region, Dictionary<string, string> parameters)
	{
		// these have to fall on exact values
		region.EncapsulateMegatiles();
		parameters.Add("x_min", region.left.ToString());
		parameters.Add("x_max", region.right.ToString());
		parameters.Add("y_min", Megatile.ToServerY(region.top).ToString());
		parameters.Add("y_max", Megatile.ToServerY(region.bottom).ToString());
	}