mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-03-05 05:20:21 +00:00
Begin transition to the new ModLoader paradigm. Begin cleaning up code.
This commit is contained in:
parent
015a9f4dc8
commit
cb9895a38e
39 changed files with 1429 additions and 967 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -2,12 +2,17 @@
|
|||
//
|
||||
|
||||
#include "BaseMod.h"
|
||||
|
||||
#include <ModLoader\ModLoader.h>
|
||||
#include "LinkerAPI.h"
|
||||
#include "randomCmds.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
BASEMOD_API unsigned int getModLoaderVersion(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
BASEMOD_API void ModInitialize(void)
|
||||
{
|
||||
Con::addMethodS(NULL,"getRandom",&conMRandom,"Random number generation based upon the Mersenne Twister algorithm.",1,3);
|
||||
|
|
@ -18,4 +23,19 @@ extern "C"
|
|||
|
||||
return;
|
||||
}
|
||||
|
||||
BASEMOD_API const char* getManagementName(void)
|
||||
{
|
||||
return "RandomMod";
|
||||
}
|
||||
|
||||
BASEMOD_API ModLoader::ModLoaderCallables* getModCallables(void)
|
||||
{
|
||||
ModLoader::ModLoaderCallables* result = new ModLoader::ModLoaderCallables();
|
||||
result->mInitializeModPointer = ModInitialize;
|
||||
result->mGetManagementName = getManagementName;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue