24 lines
455 B
C++
24 lines
455 B
C++
#include "generator.h"
|
|
#include "core/config/engine.h"
|
|
#include "core/object/class_db.h"
|
|
#include "macros.h"
|
|
|
|
void Generator::_bind_methods() {
|
|
BIND_HPROPERTY(Variant::OBJECT, state, PROPERTY_HINT_RESOURCE_TYPE, "Symbol");
|
|
}
|
|
|
|
void Generator::ready() {
|
|
}
|
|
|
|
void Generator::_notification(int what) {
|
|
if (Engine::get_singleton()->is_editor_hint()) {
|
|
return;
|
|
}
|
|
switch (what) {
|
|
default:
|
|
return;
|
|
case NOTIFICATION_READY:
|
|
ready();
|
|
return;
|
|
}
|
|
}
|