C# Класс Region, tf_client

A struct to describe a region in the world grid
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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