nw::Sound
-
struct Sound : public nw::ObjectBase
Public Functions
-
Sound()
-
Sound(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
-
float distance_min = 0.0f
-
float distance_max = 0.0f
-
float elevation = 0.0f
-
uint32_t generated_type = 0
-
uint32_t hours = 0
-
uint32_t interval = 0
-
uint32_t interval_variation = 0
-
float pitch_variation = 0.0f
-
float random_x = 0.0f
-
float random_y = 0.0f
-
bool active = 0
-
bool continuous = 0
-
bool looping = 0
-
bool positional = 0
-
uint8_t priority = 0
-
bool random = 0
-
bool random_position = 0
-
uint8_t times = 3
-
uint8_t volume = 100
-
uint8_t volume_variation = 0
-
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::sound
-
static constexpr ResourceType::type restype = ResourceType::uts
-
static constexpr StringView serial_id = {"UTS"}
-
Sound()