Simulator::cPlayerInventory class

Base classes

class cSpaceInventory

Public static variables

static const uint32_t TYPE
static const uint32_t NOUN_ID

Public functions

auto GetUnlockableTool(const ResourceKey& id) const -> cSpaceToolData*
Checks mInventoryItems and mUnlockableTools and returns the tool that has the specified id, or null otherwise.

Public variables

vector<intrusive_ptr<cSpaceInventoryItem>> mUnlockableTools
vector<int> field_60
vector<ResourceKey> mUpgradedToolIds
intrusive_ptr<cSpaceToolData> mpDropCargoTool
intrusive_ptr<cSpaceToolData> mpActiveTool
intrusive_ptr<cSpaceInventoryItem> mpActiveCargoItem
bool mbHasAddedItem

Function documentation

cSpaceToolData* Simulator::cPlayerInventory::GetUnlockableTool(const ResourceKey& id) const

Checks mInventoryItems and mUnlockableTools and returns the tool that has the specified id, or null otherwise.

Parameters
id