diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-06-09 20:08:50 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-06-09 20:08:50 +0200 |
commit | 98e09a9f519c2943fab1bee4884e66b83951c867 (patch) | |
tree | cff319fe7958d134aeb58bce2a599de867088ec2 /README.md | |
parent | 3dcf2f7307837abaff862042aede312fff9ac905 (diff) | |
download | dungeon_game-98e09a9f519c2943fab1bee4884e66b83951c867.tar.xz |
Add plugin dependencies
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ You might want to include the game.h file from plugins/game/game.h. Have a look Controls: WASD to move, Q to quit. -To build the loader and the plugins in the plugins/ folder, simply type `make` or `make all`. There are separate targets for the loader (`dungeon`) and the plugins. All Makefiles that are placed in plugin directories, so you might want to include a makefile in your plugin. The plugins target simply depends on ${PLUGINS}, so just add things to this in your plugin Makefile to add them to the plugins target (usually your plugin.so) +To build the loader and the plugins in the plugins/ folder, simply type `make` or `make all`. There are separate targets for the loader (`dungeon`) and the plugins. All Makefiles that are placed in plugin directories, so you might want to include a makefile in your plugin. The plugins target simply depends on ${PLUGINS}, so just add things to this in your plugin Makefile to add them to the plugins target (usually your plugin.so) To run the loader, type `./dungeon`. It will load all plugins including the game itself dynamically and run the game. -Plugins are loaded in alphabethical order, with the exception of the game plugin that is loaded first. If you want to make a plugin that depends on another plugin, make sure the other plugin is loaded first by setting the name of your plugin accordingly. A cleaner solution to this is coming soon. +If you want to make a plugin that depends on another plugin (including the game itself), make sure to depend on that plugin. To add dependencies to a plugin, create a file named dependencies.txt in the plugin folder. Put the names of all plugins your plugin depends on into that file. You can use spaces or newlines as seperators. |