nw::Door
-
struct Door : public nw::ObjectBase
Public Functions
-
Door()
-
Door(nw::MemoryResource *allocator)
-
inline 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)
-
virtual void clear()
Public Members
-
DoorScripts scripts
-
String linked_to
-
uint32_t appearance
-
uint32_t faction = 0
-
uint32_t generic_type = 0
-
int16_t hp = 0
-
int16_t hp_current = 0
-
uint16_t loadscreen = 0
-
uint16_t portrait_id
-
DoorAnimationState animation_state = DoorAnimationState::closed
-
uint8_t hardness
-
bool interruptable = 0
-
uint8_t linked_to_flags = 0
-
bool plot = false
-
bool instantiated_ = true
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::door
-
static constexpr ResourceType::type restype = ResourceType::utd
-
static constexpr StringView serial_id = {"UTD"}
-
Door()