-
Notifications
You must be signed in to change notification settings - Fork 2
Creating a Game Plugin
Bryce Mehring edited this page Oct 7, 2013
·
12 revisions
- Each plugin must inherit from the interface:
IGameState - Each plugin must export
IPlugin* CreatePlugin()which must return an allocated instance of the plugin - To load the plugin, pass the new state string(the filename of the DLL without the extension) to
void Game::SetNextState(const std::string& state) - Next frame, the current state will be deleted, and the next state will be initialized.
In the root directory of the game plugin there should be a folder called 'plugin': plugin/GameName/
GameName.r should be within this directory along with all the required resources used by the game
Symbolic link link the plugin folder in the root directory of the game plugin into the GameEngine bin folder