| Line 29... |
Line 29... |
| 29 |
|
29 |
|
| 30 |
enum {IMPORTSHIP_NONE, IMPORTSHIP_SCENE, IMPORTSHIP_EXTRACTSCENE, IMPORTSHIP_DUMMIES, IMPORTSHIP_COMPONANT, IMPORTSHIP_MODELS, IMPORTSHIP_TEXTURES, IMPORTSHIP_TEXTS, IMPORTSHIP_BODIES, IMPORTSHIP_COCKPITS, IMPORTSHIP_PACK, IMPORTSHIP_DONE};
|
30 |
enum {IMPORTSHIP_NONE, IMPORTSHIP_SCENE, IMPORTSHIP_EXTRACTSCENE, IMPORTSHIP_DUMMIES, IMPORTSHIP_COMPONANT, IMPORTSHIP_MODELS, IMPORTSHIP_TEXTURES, IMPORTSHIP_TEXTS, IMPORTSHIP_BODIES, IMPORTSHIP_COCKPITS, IMPORTSHIP_PACK, IMPORTSHIP_DONE};
|
| 31 |
|
31 |
|
| 32 |
int SPKEXPORT GetMaxShipyards ();
|
32 |
int SPKEXPORT GetMaxShipyards ();
|
| 33 |
Utils::String SPKEXPORT GetShipyardName (int s);
|
33 |
Utils::String SPKEXPORT GetShipyardName (int s);
|
| - |
|
34 |
|
| - |
|
35 |
typedef struct STypesSection {
|
| - |
|
36 |
Utils::String sSection;
|
| - |
|
37 |
Utils::CStringList lEntries;
|
| - |
|
38 |
} STypesSection2;
|
| - |
|
39 |
|
| - |
|
40 |
typedef struct SComponentEntry {
|
| - |
|
41 |
Utils::String sSection;
|
| - |
|
42 |
std::vector<STypesSection *> lEntries;
|
| - |
|
43 |
} SComponentEntry;
|
| 34 |
|
44 |
|
| 35 |
typedef struct SWeaponMask {
|
45 |
typedef struct SWeaponMask {
|
| 36 |
int iMask;
|
46 |
int iMask;
|
| 37 |
int iGame;
|
47 |
int iGame;
|
| 38 |
} SWeaponMask;
|
48 |
} SWeaponMask;
|
| Line 72... |
Line 82... |
| 72 |
CXspFile ();
|
82 |
CXspFile ();
|
| 73 |
~CXspFile () { this->Delete(); }
|
83 |
~CXspFile () { this->Delete(); }
|
| 74 |
|
84 |
|
| 75 |
static bool ReadAnimations(CyStringList *lIn, CyStringList *lOut, int startRecord);
|
85 |
static bool ReadAnimations(CyStringList *lIn, CyStringList *lOut, int startRecord);
|
| 76 |
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);
|
| 77 |
|
88 |
|
| 78 |
bool WriteHeader(CFileIO &file, int iHeader, int iLength);
|
89 |
bool WriteHeader(CFileIO &file, int iHeader, int iLength);
|
| 79 |
|
90 |
|
| 80 |
bool IsLanguageText () { return m_bLanguageText; }
|
91 |
bool IsLanguageText () { return m_bLanguageText; }
|
| 81 |
bool IsExistingShip () { return m_bExistingShip; }
|
92 |
bool IsExistingShip () { return m_bExistingShip; }
|
| Line 188... |
Line 199... |
| 188 |
void extractCutData(CVirtualFileSystem *pVfs, CyStringList *sceneModels, bool add);
|
199 |
void extractCutData(CVirtualFileSystem *pVfs, CyStringList *sceneModels, bool add);
|
| 189 |
void extractDummies(CVirtualFileSystem *pVfs, CyStringList *sceneModels, bool add);
|
200 |
void extractDummies(CVirtualFileSystem *pVfs, CyStringList *sceneModels, bool add);
|
| 190 |
void extractTextures(CVirtualFileSystem *pVfs);
|
201 |
void extractTextures(CVirtualFileSystem *pVfs);
|
| 191 |
bool extractBodies(CVirtualFileSystem *pVfs, CyStringList *sceneModels);
|
202 |
bool extractBodies(CVirtualFileSystem *pVfs, CyStringList *sceneModels);
|
| 192 |
bool extractCockpits(CVirtualFileSystem *pVfs);
|
203 |
bool extractCockpits(CVirtualFileSystem *pVfs);
|
| - |
|
204 |
|
| - |
|
205 |
void addComponentsToList(CLinkList<SComponentEntry> &componentList);
|
| - |
|
206 |
void addDummiesToList(std::vector<STypesSection *> &list);
|
| - |
|
207 |
void addCutDataToList(std::vector<STypesSection *> &list);
|
| - |
|
208 |
void addBodiesToList(std::vector<STypesSection *> &list);
|
| - |
|
209 |
void addAnimationsToList(std::vector<STypesSection *> &list);
|
| 193 |
|
210 |
|
| 194 |
bool processSceneFileSection(int section, CVirtualFileSystem *pVfs, CyStringList *lModels, CProgressInfo *progress);
|
211 |
bool processSceneFileSection(int section, CVirtualFileSystem *pVfs, CyStringList *lModels, CProgressInfo *progress);
|
| 195 |
bool processSceneFiles(CVirtualFileSystem *pVfs, CProgressInfo *progress);
|
212 |
bool processSceneFiles(CVirtualFileSystem *pVfs, CProgressInfo *progress);
|
| 196 |
|
213 |
|
| 197 |
void PackAllFiles();
|
214 |
void PackAllFiles();
|
| Line 207... |
Line 224... |
| 207 |
bool ImportCockpits(const Utils::String &filename);
|
224 |
bool ImportCockpits(const Utils::String &filename);
|
| 208 |
Utils::String FormatShipData(CyStringList *cockpits, int *text, int game);
|
225 |
Utils::String FormatShipData(CyStringList *cockpits, int *text, int game);
|
| 209 |
|
226 |
|
| 210 |
virtual bool LoadPackageData(const Utils::String &sFfirst, const Utils::String &sRest, const Utils::String &sMainGame, Utils::CStringList &otherGames);
|
227 |
virtual bool LoadPackageData(const Utils::String &sFfirst, const Utils::String &sRest, const Utils::String &sMainGame, Utils::CStringList &otherGames);
|
| 211 |
virtual bool GeneratePackagerScript(bool wildcard, CyStringList *list, bool datafile = false);
|
228 |
virtual bool GeneratePackagerScript(bool wildcard, CyStringList *list, bool datafile = false);
|
| - |
|
229 |
virtual void addGeneratedFiles(HZIP &hz);
|
| 212 |
|
230 |
|
| 213 |
protected:
|
231 |
protected:
|
| 214 |
virtual void Delete ();
|
232 |
virtual void Delete ();
|
| 215 |
virtual void SetDefaults ();
|
233 |
virtual void SetDefaults ();
|
| 216 |
virtual bool CheckHeader(const Utils::String header) const;
|
234 |
virtual bool CheckHeader(const Utils::String header) const;
|
| 217 |
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);
|
| - |
|
237 |
void _addDataSection(CyStringList &list, std::vector<STypesSection *> §ionList);
|
| 218 |
|
238 |
|
| - |
|
239 |
protected:
|
| 219 |
C_File *m_pSceneFile, *m_pCockpitFile;
|
240 |
C_File *m_pSceneFile, *m_pCockpitFile;
|
| 220 |
|
241 |
|
| 221 |
bool m_bLanguageText, m_bExistingShip;
|
242 |
bool m_bLanguageText, m_bExistingShip;
|
| 222 |
|
243 |
|
| 223 |
int m_iOrgDesc;
|
244 |
int m_iOrgDesc;
|