mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-08 22:08:29 -05:00
28 lines
401 B
C++
28 lines
401 B
C++
#pragma once
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
#include "Zone/Zone.h"
|
|
|
|
class Zone;
|
|
|
|
class XAssetInfoGeneric
|
|
{
|
|
public:
|
|
int m_type = -1;
|
|
std::string m_name;
|
|
Zone* m_zone;
|
|
std::vector<XAssetInfoGeneric*> m_dependencies;
|
|
void* m_ptr;
|
|
};
|
|
|
|
template<typename T>
|
|
class XAssetInfo : public XAssetInfoGeneric
|
|
{
|
|
public:
|
|
T* Asset()
|
|
{
|
|
return static_cast<T*>(m_ptr);
|
|
}
|
|
};
|