initial import of extension API and SDK as well as auto-loading
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40303
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#if defined _core_included
|
||||
#endinput
|
||||
#endif
|
||||
#define _core_included
|
||||
|
||||
#define SOURCEMOD_PLUGINAPI_VERSION 1
|
||||
struct PlVers
|
||||
{
|
||||
version,
|
||||
};
|
||||
|
||||
public PlVers:__version =
|
||||
{
|
||||
version = SOURCEMOD_PLUGINAPI_VERSION,
|
||||
};
|
||||
|
||||
struct Extension
|
||||
{
|
||||
const String:name[], /* Short name */
|
||||
const String:file[], /* Default file name */
|
||||
bool:autoload, /* Whether or not to auto-load */
|
||||
bool:required, /* Whether or not to require */
|
||||
};
|
||||
|
||||
#define AUTOLOAD_EXTENSIONS
|
||||
#define REQUIRE_EXTENSIONS
|
||||
|
||||
@@ -16,10 +16,10 @@ struct Plugin
|
||||
const String:url[], /* Plugin URL */
|
||||
};
|
||||
|
||||
#include <core>
|
||||
#include <float>
|
||||
#include <handles>
|
||||
#include <string>
|
||||
#include <files>
|
||||
|
||||
/**
|
||||
* Declare this as a struct in your plugin to expose its information.
|
||||
|
||||
Reference in New Issue
Block a user