mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 18:59:12 +00:00
Initial commit of current work on Prime World Editor
This commit is contained in:
33
Resource/CResource.h
Normal file
33
Resource/CResource.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef CRESOURCE_H
|
||||
#define CRESOURCE_H
|
||||
|
||||
#include "EResType.h"
|
||||
#include <Common/CFourCC.h>
|
||||
#include <Common/CUniqueID.h>
|
||||
#include <Common/types.h>
|
||||
#include <Common/StringUtil.h>
|
||||
|
||||
class CResCache;
|
||||
|
||||
class CResource
|
||||
{
|
||||
friend class CResCache;
|
||||
|
||||
std::string mResSource;
|
||||
CUniqueID mID;
|
||||
int mRefCount;
|
||||
|
||||
public:
|
||||
CResource();
|
||||
virtual ~CResource();
|
||||
virtual EResType Type();
|
||||
std::string Source();
|
||||
std::string FullSource();
|
||||
CUniqueID ResID();
|
||||
void Lock();
|
||||
void Release();
|
||||
bool IsValidResource();
|
||||
static EResType ResTypeForExtension(CFourCC Extension);
|
||||
};
|
||||
|
||||
#endif // CRESOURCE_H
|
||||
Reference in New Issue
Block a user