Module updated to 4.x Godot version

This commit is contained in:
2022-05-16 14:01:00 +03:00
parent 1eeb43f801
commit 06587212b2
5 changed files with 49 additions and 35 deletions

29
hook.h
View File

@ -3,26 +3,27 @@
#ifndef HOOK_H
#define HOOK_H
#include "core/reference.h"
#include "core/func_ref.h"
#include "core/ustring.h"
#include "core/dictionary.h"
#include "core/array.h"
#include "core/object/ref_counted.h"
#include "core/string/ustring.h"
#include "core/variant/variant.h"
#include "core/variant/callable.h"
#include "core/variant/array.h"
#include "core/variant/dictionary.h"
class Hook : public RefCounted {
GDCLASS(Hook, RefCounted);
Dictionary table;
class Hook : public Reference {
GDCLASS(Hook, Reference);
Dictionary table;
protected:
static void _bind_methods();
static void _bind_methods();
public:
Dictionary GetTable();
void Add(String event, String uid, Ref<FuncRef> function);
void Add(String event, String uid, Callable function);
void Call(String event, Array args);
void Remove(String event, String uid);
Hook();
Hook();
};
#endif // HOOK_H