mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-06 05:18:26 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
33 lines
723 B
Modula-2
33 lines
723 B
Modula-2
|
|
#include "fgdlib/gamedata.h"
|
|
|
|
//
|
|
// GameData is all the data loaded from FGD files.
|
|
//
|
|
|
|
native enum GDClassType_t as Editor.GameDataClassType;
|
|
|
|
native class CGameData as Native.CGameData
|
|
{
|
|
//
|
|
// Classes
|
|
//
|
|
|
|
void AddClass( CGameDataClass gdClass, string helpContext );
|
|
void RemoveClass( int index );
|
|
int GetClassCount() const;
|
|
CGameDataClass GetClass( int nIndex );
|
|
CGameDataClass ClassForName( string className, out int index );
|
|
|
|
//
|
|
// Vars are allocated in GameData as its shared in multiple classes
|
|
//
|
|
|
|
CGameDataVariable AllocateVar();
|
|
void FreeVar( CGameDataVariable var );
|
|
}
|
|
|
|
managed static class Editor.GameData
|
|
{
|
|
void Initialize( Native.CGameData gameData );
|
|
} |