C# 클래스 Megatile, tf_client

상속: System.Object
파일 보기 프로젝트 열기: wids-eria/tf_client

공개 메소드들

메소드 설명
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