Make use of GDREGISTER_*

This commit is contained in:
Serhii Snitsaruk 2022-12-16 14:06:46 +01:00
parent fa098fec09
commit 39f504f42c
1 changed files with 64 additions and 65 deletions

View File

@ -80,80 +80,79 @@ static LimboUtility *_limbo_utility = nullptr;
void initialize_limboai_module(ModuleInitializationLevel p_level) { void initialize_limboai_module(ModuleInitializationLevel p_level) {
if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE) { if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE) {
ClassDB::register_class<Blackboard>(); GDREGISTER_CLASS(Blackboard);
ClassDB::register_class<LimboState>(); GDREGISTER_CLASS(LimboState);
ClassDB::register_class<LimboHSM>(); GDREGISTER_CLASS(LimboHSM);
ClassDB::register_class<BTTask>(); GDREGISTER_ABSTRACT_CLASS(BTTask);
ClassDB::register_class<BehaviorTree>(); GDREGISTER_CLASS(BehaviorTree);
ClassDB::register_class<BTPlayer>(); GDREGISTER_CLASS(BTPlayer);
ClassDB::register_class<BTState>(); GDREGISTER_CLASS(BTState);
ClassDB::register_class<BTComposite>(); GDREGISTER_CLASS(BTComposite);
ClassDB::register_class<BTSequence>(); GDREGISTER_CLASS(BTSequence);
ClassDB::register_class<BTDynamicSequence>(); GDREGISTER_CLASS(BTSelector);
ClassDB::register_class<BTDynamicSelector>(); GDREGISTER_CLASS(BTParallel);
ClassDB::register_class<BTSelector>(); GDREGISTER_CLASS(BTDynamicSequence);
ClassDB::register_class<BTRandomSelector>(); GDREGISTER_CLASS(BTDynamicSelector);
ClassDB::register_class<BTRandomSequence>(); GDREGISTER_CLASS(BTRandomSequence);
ClassDB::register_class<BTSelector>(); GDREGISTER_CLASS(BTRandomSelector);
ClassDB::register_class<BTParallel>();
ClassDB::register_class<BTDecorator>(); GDREGISTER_CLASS(BTDecorator);
ClassDB::register_class<BTInvert>(); GDREGISTER_CLASS(BTInvert);
ClassDB::register_class<BTAlwaysFail>(); GDREGISTER_CLASS(BTAlwaysFail);
ClassDB::register_class<BTAlwaysSucceed>(); GDREGISTER_CLASS(BTAlwaysSucceed);
ClassDB::register_class<BTDelay>(); GDREGISTER_CLASS(BTDelay);
ClassDB::register_class<BTRepeat>(); GDREGISTER_CLASS(BTRepeat);
ClassDB::register_class<BTRepeatUntilFailure>(); GDREGISTER_CLASS(BTRepeatUntilFailure);
ClassDB::register_class<BTRepeatUntilSuccess>(); GDREGISTER_CLASS(BTRepeatUntilSuccess);
ClassDB::register_class<BTRunLimit>(); GDREGISTER_CLASS(BTRunLimit);
ClassDB::register_class<BTTimeLimit>(); GDREGISTER_CLASS(BTTimeLimit);
ClassDB::register_class<BTCooldown>(); GDREGISTER_CLASS(BTCooldown);
ClassDB::register_class<BTProbability>(); GDREGISTER_CLASS(BTProbability);
ClassDB::register_class<BTForEach>(); GDREGISTER_CLASS(BTForEach);
ClassDB::register_class<BTAction>(); GDREGISTER_CLASS(BTAction);
ClassDB::register_class<BTFail>(); GDREGISTER_CLASS(BTFail);
ClassDB::register_class<BTWait>(); GDREGISTER_CLASS(BTWait);
ClassDB::register_class<BTRandomWait>(); GDREGISTER_CLASS(BTRandomWait);
ClassDB::register_class<BTWaitTicks>(); GDREGISTER_CLASS(BTWaitTicks);
ClassDB::register_class<BTNewScope>(); GDREGISTER_CLASS(BTNewScope);
ClassDB::register_class<BTSubtree>(); GDREGISTER_CLASS(BTSubtree);
ClassDB::register_class<BTConsolePrint>(); GDREGISTER_CLASS(BTConsolePrint);
ClassDB::register_class<BTCondition>(); GDREGISTER_CLASS(BTCondition);
ClassDB::register_abstract_class<BBParam>(); GDREGISTER_ABSTRACT_CLASS(BBParam);
ClassDB::register_class<BBInt>(); GDREGISTER_CLASS(BBInt);
ClassDB::register_class<BBBool>(); GDREGISTER_CLASS(BBBool);
ClassDB::register_class<BBFloat>(); GDREGISTER_CLASS(BBFloat);
ClassDB::register_class<BBString>(); GDREGISTER_CLASS(BBString);
ClassDB::register_class<BBVector2>(); GDREGISTER_CLASS(BBVector2);
ClassDB::register_class<BBRect2>(); GDREGISTER_CLASS(BBRect2);
ClassDB::register_class<BBVector3>(); GDREGISTER_CLASS(BBVector3);
ClassDB::register_class<BBTransform2D>(); GDREGISTER_CLASS(BBTransform2D);
ClassDB::register_class<BBPlane>(); GDREGISTER_CLASS(BBPlane);
ClassDB::register_class<BBQuat>(); GDREGISTER_CLASS(BBQuat);
ClassDB::register_class<BBAabb>(); GDREGISTER_CLASS(BBAabb);
ClassDB::register_class<BBBasis>(); GDREGISTER_CLASS(BBBasis);
ClassDB::register_class<BBTransform>(); GDREGISTER_CLASS(BBTransform);
ClassDB::register_class<BBColor>(); GDREGISTER_CLASS(BBColor);
ClassDB::register_class<BBNode>(); GDREGISTER_CLASS(BBNode);
ClassDB::register_class<BBDictionary>(); GDREGISTER_CLASS(BBDictionary);
ClassDB::register_class<BBArray>(); GDREGISTER_CLASS(BBArray);
ClassDB::register_class<BBByteArray>(); GDREGISTER_CLASS(BBByteArray);
ClassDB::register_class<BBIntArray>(); GDREGISTER_CLASS(BBIntArray);
ClassDB::register_class<BBRealArray>(); GDREGISTER_CLASS(BBRealArray);
ClassDB::register_class<BBColorArray>(); GDREGISTER_CLASS(BBColorArray);
ClassDB::register_class<BBStringArray>(); GDREGISTER_CLASS(BBStringArray);
ClassDB::register_class<BBVector2Array>(); GDREGISTER_CLASS(BBVector2Array);
ClassDB::register_class<BBVector3Array>(); GDREGISTER_CLASS(BBVector3Array);
ClassDB::register_class<BBVariant>(); GDREGISTER_CLASS(BBVariant);
_limbo_utility = memnew(LimboUtility); _limbo_utility = memnew(LimboUtility);
ClassDB::register_class<LimboUtility>(); GDREGISTER_CLASS(LimboUtility);
LimboStringNames::create(); LimboStringNames::create();
} }