Files
sbox-public/engine/Definitions/tools/GameData/GameData.def
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

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 );
}