Planeshift
Tribe::Asset Struct Reference

#include <tribe.h>

Public Member Functions

gemNPCItemGetItem ()
 Get the Item of the Asset. More...
 
iSector * GetSector ()
 Get the sector of the Asset. More...
 
void Save ()
 Save the asset. More...
 

Public Attributes

int id
 
csWeakRef< gemNPCItemitem
 Item representing the asset. More...
 
uint32_t itemUID
 The UID of the item, 0 if no item. More...
 
csString name
 Name. Especially used for buildings. More...
 
csVector3 pos
 Position // Used only for reservations. More...
 
int quantity
 Quantity of items of this type. More...
 
iSector * sector
 The Sector. More...
 
csString sectorName
 Name of the sector. More...
 
AssetStatus status
 Status of this asset. Used for buildings. More...
 
AssetType type
 Type of this asset. More...
 

Detailed Description

Definition at line 97 of file tribe.h.

Member Function Documentation

gemNPCItem* Tribe::Asset::GetItem ( )

Get the Item of the Asset.

iSector* Tribe::Asset::GetSector ( )

Get the sector of the Asset.

void Tribe::Asset::Save ( )

Save the asset.

Member Data Documentation

int Tribe::Asset::id

Definition at line 99 of file tribe.h.

csWeakRef<gemNPCItem> Tribe::Asset::item

Item representing the asset.

Definition at line 103 of file tribe.h.

uint32_t Tribe::Asset::itemUID

The UID of the item, 0 if no item.

Definition at line 102 of file tribe.h.

csString Tribe::Asset::name

Name. Especially used for buildings.

Definition at line 101 of file tribe.h.

csVector3 Tribe::Asset::pos

Position // Used only for reservations.

Definition at line 105 of file tribe.h.

int Tribe::Asset::quantity

Quantity of items of this type.

Definition at line 104 of file tribe.h.

iSector* Tribe::Asset::sector

The Sector.

Definition at line 107 of file tribe.h.

csString Tribe::Asset::sectorName

Name of the sector.

Definition at line 106 of file tribe.h.

AssetStatus Tribe::Asset::status

Status of this asset. Used for buildings.

Definition at line 108 of file tribe.h.

AssetType Tribe::Asset::type

Type of this asset.

Definition at line 100 of file tribe.h.


The documentation for this struct was generated from the following file: