Subversion Repositories spk

Rev

Rev 91 | Rev 98 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 91 Rev 94
Line 53... Line 53...
53
};
53
};
54
 
54
 
55
enum {PACKAGETYPE_NORMAL, PACKAGETYPE_LIBRARY, PACKAGETYPE_CUSTOMSTART, PACKAGETYPE_PATCH, PACKAGETYPE_UPDATE, PACKAGETYPE_MOD, PACKAGETYPE_SHIP, PACKAGETYPE_FAKEPATCH};
55
enum {PACKAGETYPE_NORMAL, PACKAGETYPE_LIBRARY, PACKAGETYPE_CUSTOMSTART, PACKAGETYPE_PATCH, PACKAGETYPE_UPDATE, PACKAGETYPE_MOD, PACKAGETYPE_SHIP, PACKAGETYPE_FAKEPATCH};
56
 
56
 
57
enum {TYPE_BASE, TYPE_SPK, TYPE_XSP, TYPE_ARCHIVE};
57
enum {TYPE_BASE, TYPE_SPK, TYPE_XSP, TYPE_ARCHIVE};
58
 
-
 
59
// text pages
-
 
60
#define TEXTPAGE_RACE		1266
-
 
61
#define TEXTPAGE_OBJECTS	17
-
 
62
#define TEXTPAGE_CLASS		2006
-
 
63
#define TEXTPAGE_CARGOCLASS	1999
-
 
64
 
-
 
65
 
-
 
66
enum WareTypes {
-
 
67
	Ware_BuiltIn,
-
 
68
	Ware_EMP,
-
 
69
	Ware_Custom
-
 
70
};
-
 
71
 
-
 
72
tstruct SWareEntry {
-
 
73
	Utils::String name;
-
 
74
	Utils::String description;
-
 
75
	enum WareTypes type;
-
 
76
	Utils::String id;
-
 
77
	int			  relval;
-
 
78
	int			  notority;
-
 
79
	int			  position;
-
 
80
	CBaseFile	 *package;
-
 
81
} SWareEntry;
-
 
82
 
-
 
83
tstruct SCommandSlot {
-
 
84
	Utils::String name;
-
 
85
	Utils::String id;
-
 
86
	Utils::String info;
-
 
87
	Utils::String shortName;
-
 
88
	int			  slot;
-
 
89
	CBaseFile    *package;
-
 
90
} SCommandSlot;
-
 
91
 
58
 
92
// spk header struct
59
// spk header struct
93
tstruct SSPKHeader {
60
tstruct SSPKHeader {
94
	SSPKHeader () { fVersion = 0; iValueCompression = lValueCompressSize = 0; }
61
	SSPKHeader () { fVersion = 0; iValueCompression = lValueCompressSize = 0; }
95
	float fVersion;
62
	float fVersion;
96
	int iValueCompression;
63
	int iValueCompression;
97
	unsigned long lValueCompressSize;
64
	unsigned long lValueCompressSize;
98
} SSPKHeader;
65
} SSPKHeader;
99
 
66
 
100
tstruct SNeededLibrary {
-
 
101
	Utils::String	sName;
-
 
102
	Utils::String	sAuthor;
-
 
103
	Utils::String	sMinVersion;
-
 
104
} SNeededLibrary;
-
 
105
 
-
 
106
tstruct SGameCompat {
-
 
107
	int			iGame;
-
 
108
	Utils::String	sVersion;
-
 
109
	int			iVersion;
-
 
110
} SGameCompat;
-
 
111
 
67
 
112
tstruct SSPKHeader2 {
68
tstruct SSPKHeader2 {
113
	SSPKHeader2 () { iNumFiles = 0; lSize = 0; lFullSize = 0; }
69
	SSPKHeader2 () { iNumFiles = 0; lSize = 0; lFullSize = 0; }
114
	int iNumFiles;
70
	int iNumFiles;
115
	long lSize;
71
	long lSize;
116
	long lFullSize;
72
	long lFullSize;
117
	int iFileCompression;
73
	int iFileCompression;
118
	int iDataCompression;
74
	int iDataCompression;
119
} SSPKHeader2;
75
} SSPKHeader2;
120
 
-
 
121
typedef struct SNames {
-
 
122
	int iLanguage;
-
 
123
	Utils::String sName;
-
 
124
} SNames;
-
 
125
 
-
 
126
 
76
 
127
class SPKEXPORT CBaseFile : public SPK::Package::CCorePackage
77
class SPKEXPORT CBaseFile : public SPK::Package::CCorePackage
128
{
78
{
129
public:
79
public:
130
	static Utils::String ConvertGameToString(int game);
80
	static Utils::String ConvertGameToString(int game);