This file defines GameObjectFactory class used to auto register GameObjects. More...
#include "Engine.hpp"#include "components/ErrorUtils.hpp"#include "components/GameObjects/GameObject.hpp"#include "components/GameComponents/BasicComponents.hpp"#include "VEX/VEX_export.h"#include <functional>#include <unordered_map>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| class | vex::GameObjectFactory |
| Class responsible for registering and then creating GameObjects eg. Player, CameraObject. It is needed to load GameObjects from scene files but not all GameObjects can be registered. It requires your GameObject to not change constructor parameters. More... | |
Namespaces | |
| namespace | vex |
Macros | |
| #define | REGISTER_GAME_OBJECT(ClassName) |
| Macro for automatic GameObject registration, you should call it at the bottom of your class implementation. | |
This file defines GameObjectFactory class used to auto register GameObjects.
Definition in file GameObjectFactory.hpp.
| #define REGISTER_GAME_OBJECT | ( | ClassName | ) |
Macro for automatic GameObject registration, you should call it at the bottom of your class implementation.
Example usage:
Definition at line 114 of file GameObjectFactory.hpp.