mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 14:38:13 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
29 lines
759 B
Modula-2
29 lines
759 B
Modula-2
|
|
#include "assetsystem/iassetsystem.h"
|
|
|
|
native static accessor g_pAssetSystem as IAssetSystem
|
|
{
|
|
void RecordAssetOpen( IAsset pAsset );
|
|
void RecordAssetOpen( string pAssetFileName );
|
|
|
|
IAsset FindAssetByFilename( string pFilename );
|
|
IAsset FindAssetByAssetRelativePath( string pFilename );
|
|
IAsset RegisterAssetFile( string pFilename );
|
|
|
|
void RunFrame();
|
|
|
|
void UpdateMods();
|
|
int GetAllModsCount();
|
|
|
|
inline bool RecompileAsset( IAsset asset, bool full )
|
|
{
|
|
CUtlVector<IAsset*> assets;
|
|
assets.AddToTail( asset );
|
|
return g_pAssetSystem->RecompileMultipleAssets( assets, full ? COMPILE_PARENTS_AND_CHILDREN_AND_ASSOCIATES : COMPILE_AS_NEEDED );
|
|
}
|
|
|
|
void UpdateGameResourceType( string title, string extension );
|
|
|
|
void LoadWorkingSetsAndTags();
|
|
}
|