nw::Waypoint
-
struct Waypoint : public nw::ObjectBase
Public Functions
-
Waypoint()
-
Waypoint(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
-
String linked_to
Tag of entity waypoint is linked to.
-
uint8_t appearance
-
bool has_map_note = false
If true waypoint has map note.
-
bool map_note_enabled = false
If true show map note.
-
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::waypoint
-
static constexpr ResourceType::type restype = ResourceType::utw
-
static constexpr StringView serial_id = {"UTW"}
-
Waypoint()