C# Class ResourceTileLite, tf_client

A reduced resource tile model to manually cache only needed data.
显示文件 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_oe property

The total number of animals on the tile
public int animalCount
return 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
return BaseCoverType

boughtByDeveloper public_oe property

public bool boughtByDeveloper
return bool

boughtByTimberCompany public_oe property

public bool boughtByTimberCompany
return bool

canBeSurveyed public_oe property

public bool canBeSurveyed
return bool

desirability public_oe property

public float desirability
return float

id public_oe property

The identifier.
public int id
return int

idMegatile public_oe property

public int idMegatile
return int

idOwner public_oe property

public int idOwner
return int

isSurveyed public_oe property

public bool isSurveyed
return bool

outpostRequested public_oe property

public bool outpostRequested
return 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
return int

surveyRequested public_oe property

public bool surveyRequested
return bool

treeCount public_oe property

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

zone public_oe property

The zone.
public ZoneType zone
return ZoneType