Line 37... |
Line 37... |
37 |
Utils::CStringList lEntries;
|
37 |
Utils::CStringList lEntries;
|
38 |
} STypesSection2;
|
38 |
} STypesSection2;
|
39 |
|
39 |
|
40 |
typedef struct SComponentEntry {
|
40 |
typedef struct SComponentEntry {
|
41 |
Utils::String sSection;
|
41 |
Utils::String sSection;
|
42 |
std::vector<STypesSection *> lEntries;
|
42 |
Utils::CList<STypesSection> lEntries;
|
43 |
} SComponentEntry;
|
43 |
} SComponentEntry;
|
44 |
|
44 |
|
45 |
typedef struct SWeaponMask {
|
45 |
typedef struct SWeaponMask {
|
46 |
int iMask;
|
46 |
int iMask;
|
47 |
int iGame;
|
47 |
int iGame;
|
Line 82... |
Line 82... |
82 |
CXspFile ();
|
82 |
CXspFile ();
|
83 |
~CXspFile () { this->Delete(); }
|
83 |
~CXspFile () { this->Delete(); }
|
84 |
|
84 |
|
85 |
static bool ReadAnimations(CyStringList *lIn, CyStringList *lOut, int startRecord);
|
85 |
static bool ReadAnimations(CyStringList *lIn, CyStringList *lOut, int startRecord);
|
86 |
static int GetAnimationType(const Utils::String &sType);
|
86 |
static int GetAnimationType(const Utils::String &sType);
|
87 |
static Utils::String TypesListToString(std::vector<STypesSection *> &list, bool deleteAfter = false);
|
87 |
static Utils::String TypesListToString(Utils::CList<STypesSection> &list, bool deleteAfter = false);
|
88 |
|
88 |
|
89 |
bool WriteHeader(CFileIO &file, int iHeader, int iLength);
|
89 |
bool WriteHeader(CFileIO &file, int iHeader, int iLength);
|
90 |
|
90 |
|
91 |
bool IsLanguageText () { return m_bLanguageText; }
|
91 |
bool IsLanguageText () { return m_bLanguageText; }
|
92 |
bool IsExistingShip () { return m_bExistingShip; }
|
92 |
bool IsExistingShip () { return m_bExistingShip; }
|
Line 201... |
Line 201... |
201 |
void extractTextures(CVirtualFileSystem *pVfs);
|
201 |
void extractTextures(CVirtualFileSystem *pVfs);
|
202 |
bool extractBodies(CVirtualFileSystem *pVfs, CyStringList *sceneModels);
|
202 |
bool extractBodies(CVirtualFileSystem *pVfs, CyStringList *sceneModels);
|
203 |
bool extractCockpits(CVirtualFileSystem *pVfs);
|
203 |
bool extractCockpits(CVirtualFileSystem *pVfs);
|
204 |
|
204 |
|
205 |
void addComponentsToList(CLinkList<SComponentEntry> &componentList);
|
205 |
void addComponentsToList(CLinkList<SComponentEntry> &componentList);
|
206 |
void addDummiesToList(std::vector<STypesSection *> &list);
|
206 |
void addDummiesToList(Utils::CList<STypesSection> &list);
|
207 |
void addCutDataToList(std::vector<STypesSection *> &list);
|
207 |
void addCutDataToList(Utils::CList<STypesSection> &list);
|
208 |
void addBodiesToList(std::vector<STypesSection *> &list);
|
208 |
void addBodiesToList(Utils::CList<STypesSection> &list);
|
209 |
void addAnimationsToList(std::vector<STypesSection *> &list);
|
209 |
void addAnimationsToList(Utils::CList<STypesSection> &list);
|
210 |
|
210 |
|
211 |
bool processSceneFileSection(int section, CVirtualFileSystem *pVfs, CyStringList *lModels, CProgressInfo *progress);
|
211 |
bool processSceneFileSection(int section, CVirtualFileSystem *pVfs, CyStringList *lModels, CProgressInfo *progress);
|
212 |
bool processSceneFiles(CVirtualFileSystem *pVfs, CProgressInfo *progress);
|
212 |
bool processSceneFiles(CVirtualFileSystem *pVfs, CProgressInfo *progress);
|
213 |
|
213 |
|
214 |
void PackAllFiles();
|
214 |
void PackAllFiles();
|
Line 231... |
Line 231... |
231 |
protected:
|
231 |
protected:
|
232 |
virtual void Delete ();
|
232 |
virtual void Delete ();
|
233 |
virtual void SetDefaults ();
|
233 |
virtual void SetDefaults ();
|
234 |
virtual bool CheckHeader(const Utils::String header) const;
|
234 |
virtual bool CheckHeader(const Utils::String header) const;
|
235 |
SCockpit *_findCockpit(const Utils::String &sID);
|
235 |
SCockpit *_findCockpit(const Utils::String &sID);
|
236 |
void _addSection(std::vector<STypesSection *> &componentList, const Utils::String §ion, const Utils::String &data);
|
236 |
void _addSection(Utils::CList<STypesSection> &list, const Utils::String §ion, const Utils::String &data);
|
237 |
void _addDataSection(CyStringList &list, std::vector<STypesSection *> §ionList);
|
237 |
void _addDataSection(CyStringList &list, Utils::CList<STypesSection> §ionList, bool bUseFirst);
|
238 |
|
238 |
|
239 |
protected:
|
239 |
protected:
|
240 |
C_File *m_pSceneFile, *m_pCockpitFile;
|
240 |
C_File *m_pSceneFile, *m_pCockpitFile;
|
241 |
|
241 |
|
242 |
bool m_bLanguageText, m_bExistingShip;
|
242 |
bool m_bLanguageText, m_bExistingShip;
|