C# Class ResourceTileLite, tf_client

A reduced resource tile model to manually cache only needed data.
Afficher le fichier Open project: wids-eria/tf_client Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
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.

Method Details

Empty() public static méthode

Create an empty ResourceTileLite.
public static Empty ( ) : ResourceTileLite,
Résultat ResourceTileLite,

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetCenterPoint() public méthode

public GetCenterPoint ( ) : Vector3
Résultat Vector3

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IsActionPermitted() public méthode

Determines whether the specified action is permitted on this instance.
public IsActionPermitted ( PlayerAction, action ) : bool
action PlayerAction, /// The action being requested. ///
Résultat bool

ResourceTileLite() public méthode

Initializes a new instance of the ResourceTileLite struct.
public ResourceTileLite ( ResourceTile, rawTileData ) : UnityEngine
rawTileData ResourceTile, /// Raw tile data. ///
Résultat UnityEngine

ToString() public méthode

Returns a System.String that represents the current ResourceTileLite.
public ToString ( ) : string
Résultat string

Property Details

animalCount public_oe property

The total number of animals on the tile
public int animalCount
Résultat int

baseCoverType public_oe property

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
Résultat BaseCoverType

boughtByDeveloper public_oe property

public bool boughtByDeveloper
Résultat bool

boughtByTimberCompany public_oe property

public bool boughtByTimberCompany
Résultat bool

canBeSurveyed public_oe property

public bool canBeSurveyed
Résultat bool

desirability public_oe property

public float desirability
Résultat float

id public_oe property

The identifier.
public int id
Résultat int

idMegatile public_oe property

public int idMegatile
Résultat int

idOwner public_oe property

public int idOwner
Résultat int

isSurveyed public_oe property

public bool isSurveyed
Résultat bool

outpostRequested public_oe property

public bool outpostRequested
Résultat bool

permittedActions public_oe property

The permitted actions as a bit field.
Each bit corresponds to an index in the player's list of actions.
public int permittedActions
Résultat int

surveyRequested public_oe property

public bool surveyRequested
Résultat bool

treeCount public_oe property

The total number of trees on the tile
public int treeCount
Résultat int

zone public_oe property

The zone.
public ZoneType zone
Résultat ZoneType