Class Item

Inheritance Relationships

Base Type

Class Documentation

class Item : public axr::sdk::EntityBase

Describes a single item that is available in the world economy.

Public Functions

inline Item()
inline Item(const Item &value)
inline Item(Item &&value)
inline virtual ~Item()
inline virtual Item &SetProperties(const std::map<utility::string_t, Variant> &value) override

Sets the object’s underlying map of stored values.

inline virtual Item &SetProperties(std::map<utility::string_t, Variant> &&value) override

Sets the underlying map of stored values for the object.

inline virtual Item &SetProperty(const utility::char_t *name, const Variant &value) override

Sets the property of the given name to the provided value.

inline virtual Item &SetProperty(const utility::string_t &name, const Variant &value) override

Sets the property of the given name to the provided value.

inline virtual Item &SetRemoteUrl(const utility::string_t &url) override

Returns the URL of the remote server endpoint where the object is managed.

inline virtual Item &SetUid(const utility::string_t &value) override

Sets the value of the Uid property.

Parameters

value – The value to set.

inline virtual Item &SetDateCreated(const datetime &value) override

Sets the value of the DateCreated property.

Parameters

value – The value to set.

inline virtual Item &SetDateModified(const datetime &value) override

Sets the value of the DateModified property.

Parameters

value – The value to set.

inline virtual Item &SetVersion(const uint64_t value) override

Sets the value of the Version property.

Parameters

value – The value to set.

virtual void Validate() override
utility::string_t GetName() const

The unique identifier of the item.

utility::string_t GetDescription() const

A textual description of the item.

int64_t GetCost() const

Returns the cost of the item.

std::vector<std::shared_ptr<ItemStat>> GetStats() const

Returns the value of the Stats property.

utility::string_t GetAssetId() const

Returns the unique identifier of the asset to display.

utility::string_t GetIconAssetId() const

Returns the unique identifier of the icon asset to display.

utility::string_t GetParentUid() const

Returns the UUID of the parent item to inherit stats, description, etc.

std::shared_ptr<Object> GetMetaData() const

Returns the value of the MetaData property.

Public Static Functions

static inline const utility::char_t *ClassName()

Returns the fully qualified name of the class.