Simulator::cSpaceInventoryItem class

Base classes

class DefaultRefCounted
The default implementation of a reference counted class.
class App::IUnmanagedMessageListener
Same as App::IMessageListener, but this one does not use ref-counting.
class ISimulatorSerializable

Derived classes

class cSpaceToolData

Public static variables

static const uint32_t TYPE

Public functions

auto GetType() -> uint32_t virtual
void SetItemID(const ResourceKey& key) virtual
auto GetItemID() -> const ResourceKey& virtual
auto GetItemInstanceID() -> uint32_t virtual
auto IsCargoType() -> bool virtual
auto Duplicate() -> intrusive_ptr<cSpaceInventoryItem> virtual
auto func28() -> const char16_t* virtual
auto func2C() -> const char16_t* virtual
auto GetImageID() -> ResourceKey virtual
auto GetImageColors(size_t& dstCount, ColorRGB*& dst) -> bool virtual
Returns the colors that override the icon color states, therefore 8 colors.
auto GetPanelID() -> ResourceKey virtual
Returns the key of the panel the tool belongs to.
auto GetItemCount(size_t& dst) -> bool virtual
auto func40h() -> int virtual
auto func44h() -> bool virtual
auto func48h() -> bool virtual
void ParseProp() virtual
auto AddRef() -> int
auto Release() -> int

Public variables

size_t mItemCount
int mItemType
unsigned int mItemCost
bool mbIsUnique
uint32_t mPoliticalId
unsigned int mItemPosition
bool mbIsActive
intrusive_ptr<cSpaceInventoryItem> mpCargoSlot
intrusive_ptr<App::PropertyList> mpPropList
LocalizedString mDescription
LocalizedString mDetailDescription
ResourceKey mItemID
App::IMessageManager* mpMessageManager
App::IMessageListener* mpMessageListener
uint32_t* mpMessageIDs
size_t mNumMessageIDs
int field_78

Function documentation

bool Simulator::cSpaceInventoryItem::GetImageColors(size_t& dstCount, ColorRGB*& dst) virtual

Returns the colors that override the icon color states, therefore 8 colors.

Those colors are get from the "spaceToolImageColors" property.

ResourceKey Simulator::cSpaceInventoryItem::GetPanelID() virtual

Returns the key of the panel the tool belongs to.

If this item is of cargo type, it returns the cargo panel key. Otherwise, it returns the value of the "spaceToolPanelKey" property.