Pollinator namespace

Classes

struct cAchievementDefinition
class cAchievementsManager
Manages the achievements of the game.
class cAssetMetadata
The class representation of .pollen_metadata files, which represent the metadata (name, author, time created,...) of a creation.
class cSPAchievementSerializer

Functions

ASSERT_SIZE(cAchievementsManager, 0xA8)
auto Addresses(cAchievementsManager) -> namespace
ASSERT_SIZE(cAssetMetadata, 0xD8)
auto GetMetadata(uint32_t instanceID, uint32_t groupID, cAssetMetadataPtr& dst) -> bool
Used to get the metadata of a creation, if it exists.
auto Addresses(cAssetMetadata) -> namespace
ASSERT_SIZE(cAchievementDefinition, 0xC)
ASSERT_SIZE(cSPAchievementSerializer, 0xBC)

Function documentation

bool Pollinator::GetMetadata(uint32_t instanceID, uint32_t groupID, cAssetMetadataPtr& dst)

Used to get the metadata of a creation, if it exists.

Example usage:

cAssetMetadataPtr metadata;
if (Pollinator::GetMetadata(0x07ed7d9f, GroupIDs::BuildingModels, metadata)) {
    App::ConsolePrintF("%ls", metadata->GetName().c_str());
}