Server.Items.Sextant.ComputeMapDetails C# (CSharp) Méthode

ComputeMapDetails() public static méthode

public static ComputeMapDetails ( Map map, int x, int y, int &xCenter, int &yCenter, int &xWidth, int &yHeight ) : bool
map Map
x int
y int
xCenter int
yCenter int
xWidth int
yHeight int
Résultat bool
		public static bool ComputeMapDetails( Map map, int x, int y, out int xCenter, out int yCenter, out int xWidth, out int yHeight )
		{
			xWidth = 5120; yHeight = 4096;

			if ( map == Map.Felucca )
			{
				if ( x >= 0 && y >= 0 && x < 5120 && y < 4096 )
				{
					xCenter = 1323; yCenter = 1624;
				}
				else if ( x >= 5120 && y >= 2304 && x < 6144 && y < 4096 )
				{
					xCenter = 5936; yCenter = 3112;
				}
				else
				{
					xCenter = 0; yCenter = 0;
					return false;
				}
			}
			else if ( x >= 0 && y >= 0 && x < map.Width && y < map.Height )
			{
				xCenter = 1323; yCenter = 1624;
			}
			else
			{
				xCenter = 0; yCenter = 0;
				return false;
			}

			return true;
		}