nw::Encounter
-
struct Encounter : public nw::ObjectBase
Public Functions
-
Encounter()
-
Encounter(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
-
nw::MemoryResource *allocator_ = nullptr
-
EncounterScripts scripts
-
Vector<SpawnCreature> creatures
-
Vector<glm::vec3> geometry
-
Vector<SpawnPoint> spawn_points
-
int32_t creatures_max = -1
-
int32_t creatures_recommended = 0
-
int32_t difficulty = 0
-
int32_t difficulty_index = 0
-
uint32_t faction = 0
-
int32_t reset_time = 0
-
int32_t respawns = 0
-
int32_t spawn_option = 0
-
bool active = true
-
bool player_only = false
-
bool reset = true
-
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::encounter
-
static constexpr ResourceType::type restype = ResourceType::ute
-
static constexpr StringView serial_id = {"UTE"}
-
Encounter()