From 5f6dad55d75cbe146ff7fefc899a02ccd39078ba Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 7 Oct 2010 15:56:13 +0200 Subject: initial commit -- everything compiles except for material.cpp. the material system still needs quite a bit of work; this will come in due time --- lyt/packagebase.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lyt/packagebase.h (limited to 'lyt/packagebase.h') diff --git a/lyt/packagebase.h b/lyt/packagebase.h new file mode 100644 index 0000000..7f04cea --- /dev/null +++ b/lyt/packagebase.h @@ -0,0 +1,31 @@ +#ifndef LYTPACKAGEBASE_H +#define LYTPACKAGEBASE_H + +#include +#include + + +class LYTPackageBase { +public: + LYTPackageBase(); + + virtual QStringList listAnims() = 0; + virtual QStringList listLayouts() = 0; + virtual QStringList listTextures() = 0; + virtual QStringList listFonts() = 0; + + virtual QByteArray getAnim(QString name) = 0; + virtual QByteArray getLayout(QString name) = 0; + virtual QByteArray getTexture(QString name) = 0; + virtual QByteArray getFont(QString name) = 0; + + virtual bool writeAnim(QString name, QByteArray data) = 0; + virtual bool writeLayout(QString name, QByteArray data) = 0; + virtual bool writeTexture(QString name, QByteArray data) = 0; + virtual bool writeFont(QString name, QByteArray data) = 0; + + virtual bool savePackage() = 0; + virtual QString description() = 0; +}; + +#endif // LYTPACKAGEBASE_H -- cgit v1.2.3