C# 클래스 Region, tf_client

A struct to describe a region in the world grid
파일 보기 프로젝트 열기: wids-eria/tf_client 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
bottom int
left int
right int
status TerrainManager.Status
top int

공개 메소드들

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

Tests whether the point is in the region

Encapsulate ( int x, int z ) : void

Grow the region to include the specified point

EncapsulateMegatiles ( ) : void

Encapsulates extents of all contained megatiles.

GetCenter ( Vector3 &pos ) : void
GetCenter ( float &x, float &z ) : void

Get the center of the region

GetCenter ( int &x, int &z ) : void

Get the center of the region

GetOverlap ( Region, otherRegion ) : Region,
Intersects ( Region, otherRegion ) : bool
Region ( ) : UnityEngine
Region ( ResourceTile, tiles ) : UnityEngine

Create a region that includes all of the specified tiles

Region ( ResourceTileLite, tiles ) : UnityEngine
Region ( int left, int right, int top, int bottom ) : UnityEngine

Construct using specified bounds

ToString ( ) : string

String reprensetation of the region

ToTerrainRegion ( Region, &reg ) : void

Convert to a region clamped in the space of the terrain

메소드 상세

Contains() 공개 메소드

Tests whether the point is in the region
public Contains ( Vector3 p ) : bool
p Vector3 /// A ///
리턴 bool

Encapsulate() 공개 메소드

Grow the region to include the specified point
public Encapsulate ( int x, int z ) : void
x int /// A ///
z int /// A ///
리턴 void

EncapsulateMegatiles() 공개 메소드

Encapsulates extents of all contained megatiles.
public EncapsulateMegatiles ( ) : void
리턴 void

GetCenter() 공개 메소드

public GetCenter ( Vector3 &pos ) : void
pos Vector3
리턴 void

GetCenter() 공개 메소드

Get the center of the region
public GetCenter ( float &x, float &z ) : void
x float /// A ///
z float /// A ///
리턴 void

GetCenter() 공개 메소드

Get the center of the region
public GetCenter ( int &x, int &z ) : void
x int /// A ///
z int /// A ///
리턴 void

GetOverlap() 공개 메소드

public GetOverlap ( Region, otherRegion ) : Region,
otherRegion Region,
리턴 Region,

Intersects() 공개 메소드

public Intersects ( Region, otherRegion ) : bool
otherRegion Region,
리턴 bool

Region() 공개 메소드

public Region ( ) : UnityEngine
리턴 UnityEngine

Region() 공개 메소드

Create a region that includes all of the specified tiles
public Region ( ResourceTile, tiles ) : UnityEngine
tiles ResourceTile, /// A ///
리턴 UnityEngine

Region() 공개 메소드

public Region ( ResourceTileLite, tiles ) : UnityEngine
tiles ResourceTileLite,
리턴 UnityEngine

Region() 공개 메소드

Construct using specified bounds
public Region ( int left, int right, int top, int bottom ) : UnityEngine
left int /// A ///
right int /// A ///
top int /// A ///
bottom int /// A ///
리턴 UnityEngine

ToString() 공개 메소드

String reprensetation of the region
public ToString ( ) : string
리턴 string

ToTerrainRegion() 공개 메소드

Convert to a region clamped in the space of the terrain
public ToTerrainRegion ( Region, &reg ) : void
reg Region,
리턴 void

프로퍼티 상세

bottom 공개적으로 프로퍼티

inclusive bottom boundary for the region
public int bottom
리턴 int

left 공개적으로 프로퍼티

inclusive left boundary for the region
public int left
리턴 int

right 공개적으로 프로퍼티

inclusive right boundary for the region
public int right
리턴 int

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

public static TerrainManager.Status status
리턴 TerrainManager.Status

top 공개적으로 프로퍼티

inclusive top boundary for the region
public int top
리턴 int