C# Класс ResourceTileLite, tf_client

A reduced resource tile model to manually cache only needed data.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
animalCount int
baseCoverType BaseCoverType
boughtByDeveloper bool
boughtByTimberCompany bool
canBeSurveyed bool
desirability float
id int
idMegatile int
idOwner int
isSurveyed bool
outpostRequested bool
permittedActions int
surveyRequested bool
treeCount int
zone ZoneType

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

Метод Описание
Empty ( ) : ResourceTileLite,

Create an empty ResourceTileLite.

Equals ( object obj ) : bool
GetCenterPoint ( ) : Vector3
GetHashCode ( ) : int
IsActionPermitted ( PlayerAction, action ) : bool

Determines whether the specified action is permitted on this instance.

ResourceTileLite ( ResourceTile, rawTileData ) : UnityEngine

Initializes a new instance of the ResourceTileLite struct.

ToString ( ) : string

Returns a System.String that represents the current ResourceTileLite.

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

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

Create an empty ResourceTileLite.
public static Empty ( ) : ResourceTileLite,
Результат ResourceTileLite,

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

public Equals ( object obj ) : bool
obj object
Результат bool

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

public GetCenterPoint ( ) : Vector3
Результат Vector3

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

public GetHashCode ( ) : int
Результат int

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

Determines whether the specified action is permitted on this instance.
public IsActionPermitted ( PlayerAction, action ) : bool
action PlayerAction, /// The action being requested. ///
Результат bool

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

Initializes a new instance of the ResourceTileLite struct.
public ResourceTileLite ( ResourceTile, rawTileData ) : UnityEngine
rawTileData ResourceTile, /// Raw tile data. ///
Результат UnityEngine

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

Returns a System.String that represents the current ResourceTileLite.
public ToString ( ) : string
Результат string

Описание свойств

animalCount публичное свойство

The total number of animals on the tile
public int animalCount
Результат int

baseCoverType публичное свойство

The type of the base cover.
This is here for now since desirability is simulated on the client. It is otherwise unused for now.
public BaseCoverType baseCoverType
Результат BaseCoverType

boughtByDeveloper публичное свойство

public bool boughtByDeveloper
Результат bool

boughtByTimberCompany публичное свойство

public bool boughtByTimberCompany
Результат bool

canBeSurveyed публичное свойство

public bool canBeSurveyed
Результат bool

desirability публичное свойство

public float desirability
Результат float

id публичное свойство

The identifier.
public int id
Результат int

idMegatile публичное свойство

public int idMegatile
Результат int

idOwner публичное свойство

public int idOwner
Результат int

isSurveyed публичное свойство

public bool isSurveyed
Результат bool

outpostRequested публичное свойство

public bool outpostRequested
Результат bool

permittedActions публичное свойство

The permitted actions as a bit field.
Each bit corresponds to an index in the player's list of actions.
public int permittedActions
Результат int

surveyRequested публичное свойство

public bool surveyRequested
Результат bool

treeCount публичное свойство

The total number of trees on the tile
public int treeCount
Результат int

zone публичное свойство

The zone.
public ZoneType zone
Результат ZoneType