Plugin Types
BAKKESMOD_PLUGIN(CoolPlugin, "Cool Plugin", plugin_version, PLUGINTYPE_FREEPLAY)
These are a relic of an unrealized feature. Most do nothing.
It’s easiest to just leave it as PLUGINTYPE_FREEPLAY
from the template, but you can use any of the non-threaded options interchangeably.
PLUGINTYPE_FREEPLAY
through PLUGINTYPE_REPLAY
plugins all work in any gamemode or playlist
PLUGINTYPE_THREADED
means that the plugin’s onLoad()
is called in its own thread
PLUGINTYPE_THREADEDUNLOAD
means that the plugin’s onUnload()
is called in its own thread
These are only necessary if you have something very complicated and time consuming in your onload or unload.
All of the others do nothing.
|
|
Written by ubelhj