mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
move contentloader classes to their respective game namespaces
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
#include "Pool/XAssetInfo.h"
|
||||
#include "ContentLoader.h"
|
||||
#include "ContentLoaderBase.h"
|
||||
#include "IZoneScriptStringProvider.h"
|
||||
|
||||
class AssetLoader : public ContentLoader
|
||||
class AssetLoader : public ContentLoaderBase
|
||||
{
|
||||
asset_type_t m_asset_type;
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
#include "ContentLoader.h"
|
||||
#include "ContentLoaderBase.h"
|
||||
#include <cassert>
|
||||
|
||||
const void* ContentLoader::PTR_FOLLOWING = reinterpret_cast<void*>(-1);
|
||||
const void* ContentLoader::PTR_INSERT = reinterpret_cast<void*>(-2);
|
||||
const void* ContentLoaderBase::PTR_FOLLOWING = reinterpret_cast<void*>(-1);
|
||||
const void* ContentLoaderBase::PTR_INSERT = reinterpret_cast<void*>(-2);
|
||||
|
||||
ContentLoader::ContentLoader()
|
||||
ContentLoaderBase::ContentLoaderBase()
|
||||
{
|
||||
varXString = nullptr;
|
||||
|
||||
@ -12,7 +12,7 @@ ContentLoader::ContentLoader()
|
||||
m_stream = nullptr;
|
||||
}
|
||||
|
||||
void ContentLoader::LoadXString(const bool atStreamStart) const
|
||||
void ContentLoaderBase::LoadXString(const bool atStreamStart) const
|
||||
{
|
||||
assert(varXString != nullptr);
|
||||
|
||||
@ -33,7 +33,7 @@ void ContentLoader::LoadXString(const bool atStreamStart) const
|
||||
}
|
||||
}
|
||||
|
||||
void ContentLoader::LoadXStringArray(const bool atStreamStart, const size_t count)
|
||||
void ContentLoaderBase::LoadXStringArray(const bool atStreamStart, const size_t count)
|
||||
{
|
||||
assert(varXString != nullptr);
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "Zone/Zone.h"
|
||||
#include "Zone/Stream/IZoneInputStream.h"
|
||||
|
||||
class ContentLoader
|
||||
class ContentLoaderBase
|
||||
{
|
||||
protected:
|
||||
static const void* PTR_FOLLOWING;
|
||||
@ -14,11 +14,11 @@ protected:
|
||||
Zone* m_zone;
|
||||
IZoneInputStream* m_stream;
|
||||
|
||||
ContentLoader();
|
||||
ContentLoaderBase();
|
||||
|
||||
void LoadXString(bool atStreamStart) const;
|
||||
void LoadXStringArray(bool atStreamStart, size_t count);
|
||||
|
||||
public:
|
||||
virtual ~ContentLoader() = default;
|
||||
virtual ~ContentLoaderBase() = default;
|
||||
};
|
Reference in New Issue
Block a user