mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Removed all extraneous copies by adding the class 'InterfaceReg' which will construct a new interface, and link it to the engine's static register. The Source Engine macro 'EXPOSE_INTERFACE_FN' will help utilizing this. The game module from the plugin is not obtained through the process environment block, so the executable is no longer sensitive to names.
11 lines
279 B
C++
11 lines
279 B
C++
#pragma once
|
|
#include "tier1/interface.h"
|
|
|
|
abstract_class IFactorySystem
|
|
{
|
|
public:
|
|
virtual void AddFactory(InstantiateInterfaceFn createFn, const char* pName) const = 0;
|
|
virtual void* GetFactory(const char* pName) const = 0;
|
|
virtual const char* GetVersion(void) const = 0;
|
|
};
|