nw::DialogNode

struct DialogNode

Public Functions

inline DialogNode()
DialogNode *copy() const

Copies a Node.

std::optional<String> get_action_param(const String &key)

Gets action parameter if it exists.

void remove_action_param(const String &key)

Removes action parameter by key.

void remove_action_param(size_t index)

Removes action parameter by index.

void set_action_param(const String &key, const String &value)

Sets action parameter, if key does not exist key and value are appended.

Public Members

Dialog *parent = nullptr
DialogNodeType type
String comment
String quest
String speaker
uint32_t quest_entry = std::numeric_limits<uint32_t>::max()
Resref script_action
Resref sound
LocString text
DialogAnimation animation = DialogAnimation::default_
bool animation_loop = false
uint32_t delay = std::numeric_limits<uint32_t>::max()
Vector<DialogPtr*> pointers
Vector<std::pair<String, String>> action_params