nw::Placeable
-
struct Placeable : public nw::ObjectBase
Public Functions
-
Placeable()
-
Placeable(MemoryResource *allocator)
-
virtual void clear() override
-
virtual bool instantiate() override
-
inline virtual InternedString tag() const 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)
Public Members
-
PlaceableScripts scripts
-
uint32_t appearance = 0
-
uint32_t faction = 0
-
int16_t hp = 0
-
int16_t hp_current = 0
-
uint16_t portrait_id = 0
-
PlaceableAnimationState animation_state = PlaceableAnimationState::none
-
uint8_t bodybag = 0
-
uint8_t hardness = 0
-
bool has_inventory = false
-
bool interruptable = 0
-
bool plot = 0
-
bool static_ = false
-
bool useable = false
-
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::placeable
-
static constexpr ResourceType::type restype = ResourceType::utp
-
static constexpr StringView serial_id = {"UTP"}
-
Placeable()