mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
37 lines
995 B
C++
37 lines
995 B
C++
#pragma once
|
|
|
|
#include "Game/System/ResourceInfo.hpp"
|
|
#include "JSystem/JKernel/JKRArchive.hpp"
|
|
#include "nw4r/lyt/lyt_resourceAccessor.hpp"
|
|
|
|
typedef const char* Something;
|
|
|
|
namespace {
|
|
Something sLayoutExt = ".brlyt";
|
|
Something sAnimationExt = ".brlan";
|
|
};
|
|
|
|
class LayoutHolder : public nw4r::lyt::ResourceAccessor {
|
|
public:
|
|
LayoutHolder(JKRArchive &);
|
|
|
|
virtual ~LayoutHolder();
|
|
virtual void* GetResource(u32, const char*, u32*);
|
|
virtual nw4r::ut::Font* GetFont(const char *);
|
|
virtual void* getResOther(const char *) const;
|
|
virtual u32 getResOtherNum() const;
|
|
virtual const char* getResOtherName(u32) const;
|
|
virtual void* getResOther(u32) const;
|
|
virtual bool isExistResOther(const char *) const;
|
|
|
|
void initializeArc();
|
|
|
|
u32 initEachResTable(ResTable *, const Something *);
|
|
|
|
void mount(char *);
|
|
|
|
JKRArchive* mArchive; // 0x4
|
|
ResTable mLayoutRes; // 0x8
|
|
ResTable mAnimRes; // 0x10
|
|
ResTable mResOther; // 0x18
|
|
}; |