Files
sbox-public/engine/Definitions/assetsystem/IAssetSystem.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

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