nw::Effect

struct Effect : public nw::RuntimeObject

Public Functions

Effect()
explicit Effect(EffectType type_)
virtual ~Effect()
void reset()

Clears the effect such that it’s as if default constructed.

float get_float(size_t index) const noexcept

Gets a floating point value.

int get_int(size_t index) const noexcept

Gets an integer point value.

StringView get_string(size_t index) const noexcept

Gets a string value.

inline int *ints()
inline const int *ints() const
inline float *floats()
inline const float *floats() const
inline String *strings()
inline const String *strings() const
EffectHandle &handle() noexcept

Gets the effect’s handle.

const EffectHandle &handle() const noexcept

Gets the effect’s handle.

void set_float(size_t index, float value)

Sets a floating point value.

void set_int(size_t index, int value)

Sets an integer point value.

void set_string(size_t index, String value)

Sets a string value.

void set_versus(Versus vs)

Sets the versus value.

const Versus &versus() const noexcept

Gets the versus value.

Public Members

float duration = 0.0f
uint32_t expire_day = 0
uint32_t expire_time = 0

Public Static Functions

static inline constexpr size_t total_size()

Total size including header and inline data.

Public Static Attributes

static constexpr uint16_t ints_count = 20
static constexpr uint16_t floats_count = 6
static constexpr uint16_t strings_count = 4