C# Класс Megatile, tf_client

Наследование: System.Object
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

ConvertPointToExactMegatileCoordinate() публичный статический Метод

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.
public static ConvertPointToExactMegatileCoordinate ( Vector3 p ) : Vector3
p Vector3 /// A point in world space. ///
Результат Vector3

ConvertPointToMegatileCenter() публичный статический Метод

Converts the point to megatile center.
public static ConvertPointToMegatileCenter ( Vector3 point ) : Vector3
point Vector3 /// A point in world space. ///
Результат Vector3

Megatile() публичный Метод

Initializes a new instance of the Megatile class.
public Megatile ( ) : UnityEngine
Результат UnityEngine

Megatile() публичный Метод

Initializes a new instance of the Megatile class.
TODO: This needs to be destroyed
public Megatile ( int x, int z ) : UnityEngine
x int /// X. ///
z int /// Z. ///
Результат UnityEngine

SetMegatileSize() публичный статический Метод

Sets the size of the megatile.
public static SetMegatileSize ( int val ) : void
val int /// Value. ///
Результат void

ToClientZ() публичный статический Метод

Convert y coordinate to a z coordinate for the client, which starts from lower left
public static ToClientZ ( int y ) : int
y int /// A ///
Результат int

ToServerY() публичный статический Метод

Convert z coordinate to a y coordinate for the server, which starts from upper left
public static ToServerY ( int z ) : int
z int /// A ///
Результат int