Метод | Описание | |
---|---|---|
ConvertPointToExactMegatileCoordinate ( Vector3 p ) : Vector3 |
Converts the supplied position to an exact megatile coordinate (e.g., in the tile's lower left corner). Note that this point is in the client's space, and may still need to be converted to a server coordinate if it is used to post data. |
|
ConvertPointToMegatileCenter ( Vector3 point ) : Vector3 |
Converts the point to megatile center.
|
|
Megatile ( ) : UnityEngine |
Initializes a new instance of the Megatile class.
|
|
Megatile ( int x, int z ) : UnityEngine |
Initializes a new instance of the Megatile class. TODO: This needs to be destroyed |
|
SetMegatileSize ( int val ) : void |
Sets the size of the megatile.
|
|
ToClientZ ( int y ) : int |
Convert y coordinate to a z coordinate for the client, which starts from lower left
|
|
ToServerY ( int z ) : int |
Convert z coordinate to a y coordinate for the server, which starts from upper left
|
public static ConvertPointToExactMegatileCoordinate ( Vector3 p ) : Vector3 | ||
p | Vector3 | /// A point in world space. /// |
Результат | Vector3 |
public static ConvertPointToMegatileCenter ( Vector3 point ) : Vector3 | ||
point | Vector3 | /// A point in world space. /// |
Результат | Vector3 |
public Megatile ( int x, int z ) : UnityEngine | ||
x | int | /// X. /// |
z | int | /// Z. /// |
Результат | UnityEngine |
public static SetMegatileSize ( int val ) : void | ||
val | int | /// Value. /// |
Результат | void |
public static ToClientZ ( int y ) : int | ||
y | int |
/// A |
Результат | int |
public static ToServerY ( int z ) : int | ||
z | int |
/// A |
Результат | int |