Skip to content

Creating a Game Plugin

Bryce Mehring edited this page Oct 7, 2013 · 12 revisions
  1. Each plugin must inherit from the interface: IGameState
  2. Each plugin must export IPlugin* CreatePlugin() which must return an allocated instance of the plugin
  3. 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)
  4. Next frame, the current state will be deleted, and the next state will be initialized.

Using Resources

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

Loading the game plugin in the game engine

Symbolic link link the plugin folder in the root directory of the game plugin into the GameEngine bin folder

Clone this wiki locally