Beispiel #1
0
 // MUST be called before you call any of the DLL functions
 private void InitDLLFunctions()
 {
     InitDLL            = ManualPluginImporter.GetDelegate <InitDLLDelegate>(Plugin_Handle, "InitDLL");
     InitServer         = ManualPluginImporter.GetDelegate <InitServerDelegate>(Plugin_Handle, "InitServer");
     InitClient         = ManualPluginImporter.GetDelegate <InitClientDelegate>(Plugin_Handle, "InitClient");
     SendPacketToServer = ManualPluginImporter.GetDelegate <SendPacketToServerDelegate>(Plugin_Handle, "SendPacketToServer");
     Cleanup            = ManualPluginImporter.GetDelegate <CleanupDelegate>(Plugin_Handle, "Cleanup");
 }
Beispiel #2
0
    private void InitPluginFunctions()
    {
        InitPlugin           = ManualPluginImporter.GetDelegate <InitPluginDelegate>(Plugin_Handle, "InitPlugin");
        InitConsole          = ManualPluginImporter.GetDelegate <InitConsoleDelegate>(Plugin_Handle, "InitConsole");
        InitClient           = ManualPluginImporter.GetDelegate <InitClientDelegate>(Plugin_Handle, "InitClient");
        AttemptConnect       = ManualPluginImporter.GetDelegate <AttemptConnectDelegate>(Plugin_Handle, "AttemptConnect");
        FreeTheConsole       = ManualPluginImporter.GetDelegate <FreeTheConsoleDelegate>(Plugin_Handle, "FreeTheConsole");
        OutputConsoleMessage = ManualPluginImporter.GetDelegate <OutputConsoleMessageDelegate>(Plugin_Handle, "OutputMessageToConsole");

        //Game Commands
        SendTransform = ManualPluginImporter.GetDelegate <SendTransformDelegate>(Plugin_Handle, "SendTransform");
        ReadTransform = ManualPluginImporter.GetDelegate <ReadTransformDelegate>(Plugin_Handle, "ReadTransform");
    }