Planeshift
Public Member Functions | Public Attributes

Tribe::Asset Struct Reference

#include <tribe.h>

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 95 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

Definition at line 97 of file tribe.h.

Item representing the asset.

Definition at line 101 of file tribe.h.

The UID of the item, 0 if no item.

Definition at line 100 of file tribe.h.

Name. Especially used for buildings.

Definition at line 99 of file tribe.h.

csVector3 Tribe::Asset::pos

Position // Used only for reservations.

Definition at line 103 of file tribe.h.

Quantity of items of this type.

Definition at line 102 of file tribe.h.

The Sector.

Definition at line 105 of file tribe.h.

Name of the sector.

Definition at line 104 of file tribe.h.

Status of this asset. Used for buildings.

Definition at line 106 of file tribe.h.

Type of this asset.

Definition at line 98 of file tribe.h.


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