source-engine/game/shared/sceneimage.h

38 lines
1.1 KiB
C
Raw Normal View History

2023-10-03 14:23:56 +00:00
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
2020-04-22 16:56:21 +00:00
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef SCENEIMAGE_H
#define SCENEIMAGE_H
#ifdef _WIN32
#pragma once
#endif
class ISceneTokenProcessor;
class ISceneCompileStatus
{
public:
virtual void UpdateStatus( char const *pchSceneName, bool bQuiet, int nIndex, int nCount ) = 0;
};
class CUtlBuffer;
2023-10-03 14:23:56 +00:00
class CUtlString;
2020-04-22 16:56:21 +00:00
class ISceneImage
{
public:
virtual bool CreateSceneImageFile( CUtlBuffer &targetBuffer, char const *pchModPath, bool bLittleEndian, bool bQuiet, ISceneCompileStatus *Status ) = 0;
2023-10-03 14:23:56 +00:00
// This will update the scenes.image file, or create a new one if it doesn't exist.
// The caller should pass in the existing .image file in targetBuffer!!!
virtual bool UpdateSceneImageFile( CUtlBuffer &targetBuffer, char const *pchModPath, bool bLittleEndian, bool bQuiet, ISceneCompileStatus *Status, CUtlString *pFilesToUpdate, int nUpdateCount ) = 0;
2020-04-22 16:56:21 +00:00
};
extern ISceneImage *g_pSceneImage;
extern ISceneTokenProcessor *tokenprocessor;
#endif // SCENEIMAGE_H