mirror of
https://github.com/Mestima/GodotHook.git
synced 2025-12-15 07:29:42 +00:00
Module updated to 4.x Godot version
This commit is contained in:
29
hook.h
29
hook.h
@ -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
|
||||
Reference in New Issue
Block a user