Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (30 sloc) 1012 Bytes
// Include this file in native code to interface with the .NET library
#pragma once
#include <string>
// Sets the interface function's decoration as export or import
#define EXPORT_SPEC __declspec( dllexport )
#define EXPORT_SPEC __declspec( dllimport )
namespace DotNetInterop
// Calls .NET library Attach.
// Called when DLL is loaded.
// Returns true on success.
EXPORT_SPEC bool Attach(const char* dllPath, bool useCustomDLL);
// Calls .NET library Initialize.
// Called when the mission is first loaded.
// Returns true on success.
EXPORT_SPEC bool Initialize();
// Calls .NET library Update.
// Called every update cycle.
EXPORT_SPEC void Update();
// Used to get a buffer for storing data for saved game files
EXPORT_SPEC void* GetSaveBuffer();
EXPORT_SPEC int GetSaveBufferLength();
// Calls CLR Detach.
// Called when DLL is unloaded.
EXPORT_SPEC void Detach();
//EXPORT_SPEC std::string GetDisplayString(const char * pName, int iValue);
You can’t perform that action at this time.