support for script inheritance
parent
5e3b01f0f1
commit
617057c704
|
@ -32,9 +32,12 @@ namespace godot {
|
||||||
Base *self; \
|
Base *self; \
|
||||||
inline Name(godot_object *o) { self = (Base *) o; } \
|
inline Name(godot_object *o) { self = (Base *) o; } \
|
||||||
private:
|
private:
|
||||||
// inline Name(Object o) { this = (Name *) godot_dlinstance_get_userdata(o.__core_object);\
|
|
||||||
// memcpy(this, p, sizeof(Name)); } \
|
#define GODOT_SUBCLASS(Name, Base) \
|
||||||
// inline Name(const Variant& obj) { __core_object = ((Object) obj).__core_object; } \
|
public: inline static char *___get_type_name() { return (char *) #Name; } \
|
||||||
|
inline static char *___get_base_type_name() { return (char *) #Base; } \
|
||||||
|
inline Name(godot_object *o) : Base(o) {} \
|
||||||
|
private:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue