mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-02-15 04:33:37 +00:00
Initial commit.
This commit is contained in:
parent
9538049d44
commit
44e5f33ee7
99 changed files with 2363 additions and 0 deletions
22
Mod Sources/RandomMod/BaseMod/BaseMod.cpp
Normal file
22
Mod Sources/RandomMod/BaseMod/BaseMod.cpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// BaseMod.cpp : Defines the exported functions for the DLL application.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "BaseMod.h"
|
||||
|
||||
#include "t2api.h"
|
||||
#include "randomCmds.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
BASEMOD_API void ModInitialize(void)
|
||||
{
|
||||
Con::addMethodS(NULL,"getRandom",&conMRandom,"Random number generation based upon the Mersenne Twister algorithm.",1,3);
|
||||
Con::addMethodS(NULL,"seedRand",&conMSeed,"Reseeds the Mersenne Twister random number generator.",2,2);
|
||||
Con::addMethodS(NULL,"getRandomFloat",&conMRandomFloat,"Random number generation based upon the Mersenne Twister algorithm.",1,3);
|
||||
Con::addMethodS(NULL,"QPCBegin",&conQPCBegin,"Begins the performance counter.",1,1);
|
||||
Con::addMethodS(NULL,"QPCEnd",&conQPCEnd,"Ends the performance counter and returns the time in seconds.",2,2);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue