nw::Store
-
struct Store : public nw::ObjectBase
Public Functions
-
Store()
-
Store(nw::MemoryResource *allocator)
-
virtual void clear() override
-
virtual bool instantiate() override
-
bool save(const std::filesystem::path &path, std::string_view format = "json")
Saves an object to the specified
path,formatcan be either ‘json’ or ‘gff’.
-
inline nw::MemoryResource *allocator() const noexcept
-
inline ObjectHandle handle() const noexcept
-
inline void set_handle(ObjectHandle handle)
-
const EffectArray &effects() const
-
EffectArray &effects()
-
inline Vector<VisualTransform> &visual_transform() noexcept
-
inline const Vector<VisualTransform> &visual_transform() const noexcept
-
void add_visual_transform(VisualTransform value)
-
virtual InternedString tag() const
Public Members
-
StoreScripts scripts
-
StoreInventory inventory
-
int32_t blackmarket_markdown = 0
-
int32_t identify_price = 100
-
int32_t markdown = 0
-
int32_t markup = 0
-
int32_t max_price = -1
-
int32_t gold = -1
-
bool blackmarket
-
bool instantiated_ = false
Public Static Functions
-
static String get_name_from_file(const std::filesystem::path &path)
Public Static Attributes
-
static constexpr int json_archive_version = 1
-
static constexpr ObjectType object_type = ObjectType::store
-
static constexpr ResourceType::type restype = ResourceType::utm
-
static constexpr StringView serial_id = {"UTM"}
-
Store()