| 12345678910111213141516171819202122232425262728293031323334 |
- $#include "PackageFile.h"
- struct PackageEntry
- {
- unsigned offset_ @ offset;
- unsigned size_ @ size;
- unsigned checksum_ @ checksum;
- };
- class PackageFile : public Object
- {
- PackageFile(Context* context);
- PackageFile(Context* context, const String fileName);
- ~PackageFile();
-
- bool Open(const String fileName);
- bool Exists(const String fileName) const;
- const PackageEntry* GetEntry(const String fileName) const;
- const HashMap<String, PackageEntry>& GetEntries() const;
-
- const String& GetName() const;
- StringHash GetNameHash() const;
- unsigned GetNumFiles() const;
- unsigned GetTotalSize() const;
- unsigned GetChecksum() const;
- bool IsCompressed() const;
- tolua_readonly tolua_property__get_set String& name;
- tolua_readonly tolua_property__get_set StringHash nameHash;
- tolua_readonly tolua_property__get_set unsigned numFiles;
- tolua_readonly tolua_property__get_set unsigned totalSize;
- tolua_readonly tolua_property__get_set unsigned checksum;
- tolua_readonly tolua_property__is_set bool compressed;
- };
|