static void execute_effects(dialogue_node* node) { for (auto& i : node->effects.inventory) { execute_effect(i); } for (auto& i : node->effects.stat) { execute_effect(i); } for (auto& i : node->effects.warp) { execute_effect(i); } }
status_t BnMemory::HandleEffect( const SValue &in, const SValue &inBindings, const SValue &outBindings, SValue *out) { return execute_effect( sptr<IInterface>(this), in, inBindings, outBindings, out, memory_actions, sizeof(memory_actions)/sizeof(memory_actions[0])); }