feat: registering classes
This commit is contained in:
		
							parent
							
								
									2da424f934
								
							
						
					
					
						commit
						092ea840dc
					
				|  | @ -1,4 +1,11 @@ | |||
| #include "register_types.h" | ||||
| #include "goap/action.hpp" | ||||
| #include "goap/action_db.hpp" | ||||
| #include "goap/actor_world_state.hpp" | ||||
| #include "goap/planner.hpp" | ||||
| #include "rts_game_mode.hpp" | ||||
| #include "rts_player.hpp" | ||||
| #include "unit.hpp" | ||||
| #include "utils/register_types.hpp" | ||||
| #include <gdextension_interface.h> | ||||
| #include <godot_cpp/core/class_db.hpp> | ||||
|  | @ -13,6 +20,12 @@ void initialize_gdextension_types(ModuleInitializationLevel p_level) | |||
|         return; | ||||
|     } | ||||
|     utils::godot_cpp_utils_register_types(); | ||||
|     ClassDB::register_class<RTSPlayer>(); | ||||
|     ClassDB::register_class<Unit>(); | ||||
|     ClassDB::register_class<RTSGameMode>(); | ||||
|     ClassDB::register_class<goap::ActorWorldState>(); | ||||
|     ClassDB::register_class<goap::Planner>(); | ||||
|     goap::ActionDB::register_action<TestAction>(); | ||||
| } | ||||
| 
 | ||||
| extern "C" | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Sara
						Sara