1 #ifndef _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
2 #define _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
7 * @brief Sample implementation of the SDK Extension.
8 * Note: Uncomment one of the pre-defined virtual functions in order to use it.
10 class Sample : public SDKExtension
14 * @brief This is called after the initial loading sequence has been processed.
16 * @param error Error message buffer.
17 * @param err_max Size of error message buffer.
18 * @param late Whether or not the module was loaded after map load.
19 * @return True to succeed loading, false to fail.
21 virtual bool SDK_OnLoad(char *error, size_t err_max, bool late);
24 * @brief This is called right before the extension is unloaded.
26 //virtual void SDK_OnUnload();
29 * @brief This is called once all known extensions have been loaded.
30 * Note: It is is a good idea to add natives here, if any are provided.
32 //virtual void SDK_OnAllLoaded();
35 * @brief Called when the pause state is changed.
37 //virtual void SDK_OnPauseChange(bool paused);
40 * @brief this is called when Core wants to know if your extension is working.
42 * @param error Error message buffer.
43 * @param err_max Size of error message buffer.
44 * @return True if working, false otherwise.
46 //virtual void QueryRunning(char *error, size_t maxlength);
48 #if defined SMEXT_CONF_METAMOD
50 * Read smext_base.h for documentation on these.
53 //virtual bool SDK_OnMetamodLoad(char *error, size_t err_max, bool late);
54 //virtual bool SDK_OnMetamodUnload(char *error, size_t err_max);
55 //virtual bool SDK_OnMetamodPauseChange(bool paused, char *error, size_t err_max);
59 #endif //_INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_