C# Class ResourceTileLite, tf_client

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

Public Properties

Property 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

Public Methods

Method 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 method

Create an empty ResourceTileLite.
public static Empty ( ) : ResourceTileLite,
return ResourceTileLite,

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetCenterPoint() public method

public GetCenterPoint ( ) : Vector3
return Vector3

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsActionPermitted() public method

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

ResourceTileLite() public method

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

ToString() public method

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

Property Details

animalCount public property

The total number of animals on the tile
public int animalCount
return int

baseCoverType public 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
return BaseCoverType

boughtByDeveloper public property

public bool boughtByDeveloper
return bool

boughtByTimberCompany public property

public bool boughtByTimberCompany
return bool

canBeSurveyed public property

public bool canBeSurveyed
return bool

desirability public property

public float desirability
return float

id public property

The identifier.
public int id
return int

idMegatile public property

public int idMegatile
return int

idOwner public property

public int idOwner
return int

isSurveyed public property

public bool isSurveyed
return bool

outpostRequested public property

public bool outpostRequested
return bool

permittedActions public property

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

surveyRequested public property

public bool surveyRequested
return bool

treeCount public property

The total number of trees on the tile
public int treeCount
return int

zone public property

The zone.
public ZoneType zone
return ZoneType