mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 03:56:10 +08:00
Added original SDK code for Alien Swarm.
This commit is contained in:
33
common/IVGuiModuleLoader.h
Normal file
33
common/IVGuiModuleLoader.h
Normal file
@ -0,0 +1,33 @@
|
||||
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
// $NoKeywords: $
|
||||
//=============================================================================//
|
||||
|
||||
#ifndef IVGUIMODULELOADER_H
|
||||
#define IVGUIMODULELOADER_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include "interface.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: interface to accessing all loaded modules
|
||||
//-----------------------------------------------------------------------------
|
||||
abstract_class IVGuiModuleLoader : public IBaseInterface
|
||||
{
|
||||
public:
|
||||
virtual int GetModuleCount() = 0;
|
||||
virtual const char *GetModuleLabel(int moduleIndex) = 0;
|
||||
virtual CreateInterfaceFn GetModuleFactory(int moduleIndex) = 0;
|
||||
virtual bool ActivateModule(int moduleIndex) = 0;
|
||||
virtual bool ActivateModule(const char *moduleName) = 0;
|
||||
virtual void SetPlatformToRestart() = 0;
|
||||
};
|
||||
|
||||
#define VGUIMODULELOADER_INTERFACE_VERSION "VGuiModuleLoader003"
|
||||
|
||||
|
||||
#endif // IVGUIMODULELOADER_H
|
Reference in New Issue
Block a user