C# 클래스 ResourceTile, tf_client

상속: MapObject
파일 보기 프로젝트 열기: wids-eria/tf_client 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
idMegatile int
idOwner int
oneHalfTreeSizeClassCount int

공개 메소드들

메소드 설명
Contains ( Vector3 p ) : bool

Determine whether the microtile contains the specified point

GetCenterPoint ( ) : Vector3

Get the center point in world space

GetSimpleCenterPoint ( ) : Vector3

Gets the simple center point.

Ignores height

GetTreeCountsByGraphicType ( ) : int[]

Gets the number of trees represented by each type of TreeGraphic.

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

ToString ( ) : string

Returns a System.String that represents the current ResourceTile.

비공개 메소드들

메소드 설명
SetTreeDistributionFrequency ( int index, int frequency ) : void

Sets the tree distribution frequency at index.

메소드 상세

Contains() 공개 메소드

Determine whether the microtile contains the specified point
public Contains ( Vector3 p ) : bool
p Vector3 /// A ///
리턴 bool

GetCenterPoint() 공개 메소드

Get the center point in world space
public GetCenterPoint ( ) : Vector3
리턴 Vector3

GetSimpleCenterPoint() 공개 메소드

Gets the simple center point.
Ignores height
public GetSimpleCenterPoint ( ) : Vector3
리턴 Vector3

GetTreeCountsByGraphicType() 공개 메소드

Gets the number of trees represented by each type of TreeGraphic.
public GetTreeCountsByGraphicType ( ) : int[]
리턴 int[]

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

ToString() 공개 메소드

Returns a System.String that represents the current ResourceTile.
public ToString ( ) : string
리턴 string

프로퍼티 상세

idMegatile 공개적으로 프로퍼티

public int idMegatile
리턴 int

idOwner 공개적으로 프로퍼티

public int idOwner
리턴 int

oneHalfTreeSizeClassCount 공개적으로 정적으로 프로퍼티

One half the tree size class count.
This is used to avoid having to divide by two.
public static int oneHalfTreeSizeClassCount
리턴 int