Bind the enums in GSAIKinematicBody2DAgent and GSAIKinematicBody3DAgent.

This commit is contained in:
Relintai 2023-01-14 14:34:08 +01:00
parent 013fe0b1a2
commit 8f380676a3
4 changed files with 12 additions and 0 deletions

View File

@ -219,4 +219,8 @@ void GSAIKinematicBody2DAgent::_bind_methods() {
ClassDB::bind_method(D_METHOD("_physics_process_disconnect"), &GSAIKinematicBody2DAgent::_physics_process_disconnect);
ClassDB::bind_method(D_METHOD("_on_SceneTree_physics_frame"), &GSAIKinematicBody2DAgent::_on_SceneTree_physics_frame);
BIND_ENUM_CONSTANT(SLIDE);
BIND_ENUM_CONSTANT(COLLIDE);
BIND_ENUM_CONSTANT(POSITION);
}

View File

@ -46,4 +46,6 @@ protected:
ObjectID _body_ref;
};
VARIANT_ENUM_CAST(GSAIKinematicBody2DAgent::MovementType);
#endif

View File

@ -209,4 +209,8 @@ void GSAIKinematicBody3DAgent::_bind_methods() {
ClassDB::bind_method(D_METHOD("_physics_process_disconnect"), &GSAIKinematicBody3DAgent::_physics_process_disconnect);
ClassDB::bind_method(D_METHOD("_on_SceneTree_physics_frame"), &GSAIKinematicBody3DAgent::_on_SceneTree_physics_frame);
BIND_ENUM_CONSTANT(SLIDE);
BIND_ENUM_CONSTANT(COLLIDE);
BIND_ENUM_CONSTANT(POSITION);
}

View File

@ -46,4 +46,6 @@ protected:
ObjectID _body_ref;
};
VARIANT_ENUM_CAST(GSAIKinematicBody3DAgent::MovementType);
#endif