Subversion Repositories spk

Rev

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

Rev 160 Rev 197
Line 2... Line 2...
2
 
2
 
3
#include "spkdll.h"
3
#include "spkdll.h"
4
#include "Utils/String.h"
4
#include "Utils/String.h"
5
#include "lists.h"
5
#include "lists.h"
6
#include "Utils/StringList.h"
6
#include "Utils/StringList.h"
-
 
7
#include "Utils/WStringList.h"
7
 
8
 
8
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
9
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
9
// Forward Class declarations
10
// Forward Class declarations
10
 
11
 
11
class CXspFile;
12
class CXspFile;
Line 54... Line 55...
54
 
55
 
55
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
56
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
56
// Structures
57
// Structures
57
 
58
 
58
tstruct SWareEntry {
59
tstruct SWareEntry {
59
	Utils::String name;
60
	Utils::WString name;
60
	Utils::String description;
61
	Utils::WString description;
61
	enum WareTypes type;
62
	enum WareTypes type;
62
	Utils::String id;
63
	Utils::WString id;
63
	int			  relval;
64
	int			  relval;
64
	int			  notority;
65
	int			  notority;
65
	int			  position;
66
	int			  position;
66
	CBaseFile	 *package;
67
	CBaseFile	 *package;
67
} SWareEntry;
68
} SWareEntry;
68
 
69
 
69
tstruct SCommandSlot {
70
tstruct SCommandSlot {
70
	Utils::String name;
71
	Utils::WString name;
71
	Utils::String id;
72
	Utils::WString id;
72
	Utils::String info;
73
	Utils::WString info;
73
	Utils::String shortName;
74
	Utils::WString shortName;
74
	int			  slot;
75
	int			  slot;
75
	CBaseFile    *package;
76
	CBaseFile    *package;
76
} SCommandSlot;
77
} SCommandSlot;
77
 
78
 
78
 
79
 
79
tstruct SWaresText {
80
tstruct SWaresText {
80
	int		iLang;
81
	int		iLang;
81
	Utils::String  sName;
82
	Utils::WString  sName;
82
	Utils::String  sDesc;
83
	Utils::WString  sDesc;
83
} SWaresText;
84
} SWaresText;
84
 
85
 
85
tstruct SWares {
86
tstruct SWares {
86
	Utils::String  sID;
87
	Utils::WString  sID;
87
	char    cType;
88
	wchar_t    cType;
88
	long	iPrice;
89
	long	iPrice;
89
	int		iSize;
90
	int		iSize;
90
	int		iVolumn;
91
	int		iVolumn;
91
	int		iNotority;
92
	int		iNotority;
92
	bool	bEnabled;
93
	bool	bEnabled;
Line 102... Line 103...
102
	Utils::String	sKey;
103
	Utils::String	sKey;
103
	int		iType;
104
	int		iType;
104
} SSettingType;
105
} SSettingType;
105
 
106
 
106
tstruct SGameWare {
107
tstruct SGameWare {
107
	char cType;
108
	wchar_t cType;
108
	int iType;
109
	int iType;
109
	int iText;
110
	int iText;
110
	Utils::String sWareName;
111
	Utils::WString sWareName;
111
	int iPos;
112
	int iPos;
112
	SWares *pWare;
113
	SWares *pWare;
113
} SGameWare;
114
} SGameWare;
114
 
115
 
115
tstruct SGameShip {
116
tstruct SGameShip {
116
	int		  iType;
117
	int		  iType;
117
	int		  iText;
118
	int		  iText;
118
	int		  iPos;
119
	int		  iPos;
119
	Utils::String  sShipID;
120
	Utils::WString  sShipID;
120
	Utils::String  sShipClass;
121
	Utils::WString  sShipClass;
121
	CXspFile *pPackage;
122
	CXspFile *pPackage;
122
} SGameShip;
123
} SGameShip;
123
 
124
 
124
tstruct SBodies {
125
tstruct SBodies {
125
	Utils::String	 sNumbers;
126
	Utils::String	 sNumbers;
Line 133... Line 134...
133
	Utils::String	sMinVersion;
134
	Utils::String	sMinVersion;
134
} SNeededLibrary;
135
} SNeededLibrary;
135
 
136
 
136
tstruct SGameCompat {
137
tstruct SGameCompat {
137
	int			iGame;
138
	int			iGame;
138
	Utils::String	sVersion;
139
	Utils::WString	sVersion;
139
	int			iVersion;
140
	int			iVersion;
140
} SGameCompat;
141
} SGameCompat;
141
 
142
 
142
typedef struct SNames {
143
typedef struct SNames {
143
	int iLanguage;
144
	int iLanguage;
Line 146... Line 147...
146
 
147
 
147
tstruct SAvailablePackage {
148
tstruct SAvailablePackage {
148
	CLinkList<SGameCompat> lGames;
149
	CLinkList<SGameCompat> lGames;
149
	int			iType;
150
	int			iType;
150
	int			iPluginType;
151
	int			iPluginType;
151
	Utils::String	sName;
152
	Utils::WString	sName;
152
	Utils::String	sAuthor;
153
	Utils::WString	sAuthor;
153
	Utils::String	sVersion;
154
	Utils::WString	sVersion;
154
	Utils::String	sDesc;
155
	Utils::WString	sDesc;
155
	Utils::String	sUpdated;
156
	Utils::WString	sUpdated;
156
	int			iEase;
157
	int			iEase;
157
	int			iChanging;
158
	int			iChanging;
158
	int			iRec;
159
	int			iRec;
159
	Utils::String	sFilename;
160
	Utils::WString	sFilename;
160
	int			iScriptType;
161
	int			iScriptType;
161
	bool		bSigned;
162
	bool		bSigned;
162
} SAvailablePackage;
163
} SAvailablePackage;
163
 
164
 
164
tstruct SWarePriceOverride {
165
tstruct SWarePriceOverride {
165
	enum WareTypes type;
166
	enum WareTypes type;
166
	int			   pos;
167
	int			   pos;
167
	Utils::String  id;
168
	Utils::WString  id;
168
	int			   relval;
169
	int			   relval;
169
	int			   notority;
170
	int			   notority;
170
	bool		   bNotority;
171
	bool		   bNotority;
171
} SWarePriceOverride;
172
} SWarePriceOverride;
172
 
173