core/sourcemm_api.cpp
author David Anderson <dvander@alliedmods.net>
Sat Nov 11 11:10:24 2006 +0000 (2006-11-11)
changeset 177 d29ade52d953
parent 160 c056af9b4aaf
child 197 dd30d3d6a51f
permissions -rw-r--r--
Fleshed out forward system and extensively documented its design considerations
Implemented and did basic tests on new IPluginFunction type
Split function types into a separate file
     1 #include <oslink.h>
     2 #include "sourcemm_api.h"
     3 #include "sm_version.h"
     4 #include "sourcemod.h"
     5 
     6 SourceMod_Core g_SourceMod_Core;
     7 
     8 PLUGIN_EXPOSE(SourceMod, g_SourceMod_Core);
     9 
    10 bool SourceMod_Core::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late)
    11 {
    12 	PLUGIN_SAVEVARS();
    13 
    14 	return g_SourceMod.InitializeSourceMod(error, maxlen, late);
    15 }
    16 
    17 bool SourceMod_Core::Unload(char	*error, size_t maxlen)
    18 {
    19 	return true;
    20 }
    21 
    22 bool SourceMod_Core::Pause(char *error, size_t maxlen)
    23 {
    24 	return true;
    25 }
    26 
    27 bool SourceMod_Core::Unpause(char *error, size_t maxlen)
    28 {
    29 	return true;
    30 }
    31 
    32 void SourceMod_Core::AllPluginsLoaded()
    33 {
    34 }
    35 
    36 const char *SourceMod_Core::GetAuthor()
    37 {
    38 	return "AlliedModders, LLC";
    39 }
    40 
    41 const char *SourceMod_Core::GetName()
    42 {
    43 	return "SourceMod";
    44 }
    45 
    46 const char *SourceMod_Core::GetDescription()
    47 {
    48 	return "Extensible administration and scripting system";
    49 }
    50 
    51 const char *SourceMod_Core::GetURL()
    52 {
    53 	return "http://www.sourcemod.net/";
    54 }
    55 
    56 const char *SourceMod_Core::GetLicense()
    57 {
    58 	return "See LICENSE.txt";
    59 }
    60 
    61 const char *SourceMod_Core::GetVersion()
    62 {
    63 	return SOURCEMOD_VERSION;
    64 }
    65 
    66 const char *SourceMod_Core::GetDate()
    67 {
    68 	return __DATE__;
    69 }
    70 
    71 const char *SourceMod_Core::GetLogTag()
    72 {
    73 	return "SRCMOD";
    74 }