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:
David Anderson
2007-01-16 19:41:21 +00:00
parent f7545a848f
commit 03277707b5
11 changed files with 905 additions and 111 deletions
+27
View File
@@ -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
+1 -1
View File
@@ -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.