forked from uakfdotb/ent-ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathghostdbmysql.h
669 lines (566 loc) · 39.9 KB
/
ghostdbmysql.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
/*
ent-ghost
Copyright [2011-2013] [Jack Lu]
This file is part of the ent-ghost source code.
ent-ghost is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ent-ghost source code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ent-ghost source code. If not, see <http://www.gnu.org/licenses/>.
ent-ghost is modified from GHost++ (http://ghostplusplus.googlecode.com/)
GHost++ is Copyright [2008] [Trevor Hogan]
*/
#ifndef GHOSTDBMYSQL_H
#define GHOSTDBMYSQL_H
/**************
*** SCHEMA ***
**************
CREATE TABLE admins (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
name VARCHAR(15) NOT NULL,
server VARCHAR(100) NOT NULL
)
CREATE TABLE bans (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
server VARCHAR(100) NOT NULL,
name VARCHAR(15) NOT NULL,
ip VARCHAR(15) NOT NULL,
date DATETIME NOT NULL,
gamename VARCHAR(31) NOT NULL,
admin VARCHAR(15) NOT NULL,
reason VARCHAR(255) NOT NULL
)
CREATE TABLE games (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
server VARCHAR(100) NOT NULL,
map VARCHAR(100) NOT NULL,
datetime DATETIME NOT NULL,
gamename VARCHAR(31) NOT NULL,
ownername VARCHAR(15) NOT NULL,
duration INT NOT NULL,
gamestate INT NOT NULL,
creatorname VARCHAR(15) NOT NULL,
creatorserver VARCHAR(100) NOT NULL
)
CREATE TABLE gameplayers (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
gameid INT NOT NULL,
name VARCHAR(15) NOT NULL,
ip VARCHAR(15) NOT NULL,
spoofed INT NOT NULL,
reserved INT NOT NULL,
loadingtime INT NOT NULL,
`left` INT NOT NULL,
leftreason VARCHAR(100) NOT NULL,
team INT NOT NULL,
colour INT NOT NULL,
spoofedrealm VARCHAR(100) NOT NULL,
INDEX( gameid )
)
CREATE TABLE dotagames (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
gameid INT NOT NULL,
winner INT NOT NULL,
min INT NOT NULL,
sec INT NOT NULL
)
CREATE TABLE dotaplayers (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
gameid INT NOT NULL,
colour INT NOT NULL,
kills INT NOT NULL,
deaths INT NOT NULL,
creepkills INT NOT NULL,
creepdenies INT NOT NULL,
assists INT NOT NULL,
gold INT NOT NULL,
neutralkills INT NOT NULL,
item1 CHAR(4) NOT NULL,
item2 CHAR(4) NOT NULL,
item3 CHAR(4) NOT NULL,
item4 CHAR(4) NOT NULL,
item5 CHAR(4) NOT NULL,
item6 CHAR(4) NOT NULL,
hero CHAR(4) NOT NULL,
newcolour INT NOT NULL,
towerkills INT NOT NULL,
raxkills INT NOT NULL,
courierkills INT NOT NULL,
INDEX( gameid, colour )
)
CREATE TABLE downloads (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
map VARCHAR(100) NOT NULL,
mapsize INT NOT NULL,
datetime DATETIME NOT NULL,
name VARCHAR(15) NOT NULL,
ip VARCHAR(15) NOT NULL,
spoofed INT NOT NULL,
spoofedrealm VARCHAR(100) NOT NULL,
downloadtime INT NOT NULL
)
CREATE TABLE scores (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
category VARCHAR(25) NOT NULL,
name VARCHAR(15) NOT NULL,
server VARCHAR(100) NOT NULL,
score REAL NOT NULL
)
CREATE TABLE w3mmdplayers (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
category VARCHAR(25) NOT NULL,
gameid INT NOT NULL,
pid INT NOT NULL,
name VARCHAR(15) NOT NULL,
flag VARCHAR(32) NOT NULL,
leaver INT NOT NULL,
practicing INT NOT NULL
)
CREATE TABLE w3mmdvars (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
botid INT NOT NULL,
gameid INT NOT NULL,
pid INT NOT NULL,
varname VARCHAR(25) NOT NULL,
value_int INT DEFAULT NULL,
value_real REAL DEFAULT NULL,
value_string VARCHAR(100) DEFAULT NULL
)
**************
*** SCHEMA ***
**************/
//
// CGHostDBMySQL
//
class CGHostDBMySQL : public CGHostDB
{
private:
string m_Server;
string m_Database;
string m_User;
string m_Password;
uint16_t m_Port;
uint32_t m_BotID;
queue<void *> m_IdleConnections;
uint32_t m_NumConnections;
uint32_t m_OutstandingCallables;
boost::mutex m_DatabaseMutex;
public:
CGHostDBMySQL( CConfig *CFG );
virtual ~CGHostDBMySQL( );
virtual string GetStatus( );
virtual void RecoverCallable( CBaseCallable *callable );
// threaded database functions
virtual void CreateThread( CBaseCallable *callable );
virtual CCallableAdminCount *ThreadedAdminCount( string server );
virtual CCallableAdminCheck *ThreadedAdminCheck( string server, string user );
virtual CCallableAdminAdd *ThreadedAdminAdd( string server, string user );
virtual CCallableAdminRemove *ThreadedAdminRemove( string server, string user );
virtual CCallableAdminList *ThreadedAdminList( string server );
virtual CCallableBanCount *ThreadedBanCount( string server );
virtual CCallableBanCheck *ThreadedBanCheck( string server, string user, string ip, string hostname, string ownername );
virtual CCallableBanAdd *ThreadedBanAdd( string server, string user, string ip, string gamename, string admin, string reason, uint32_t expiretime, string context );
virtual CCallableBanRemove *ThreadedBanRemove( string server, string user, string context );
virtual CCallableBanRemove *ThreadedBanRemove( string user, string context );
virtual CCallableSpoofList *ThreadedSpoofList( );
virtual CCallableReconUpdate *ThreadedReconUpdate( uint32_t hostcounter, uint32_t seconds );
virtual CCallableCommandList *ThreadedCommandList( );
virtual CCallableGameAdd *ThreadedGameAdd( string server, string map, string gamename, string ownername, uint32_t duration, uint32_t gamestate, string creatorname, string creatorserver, string savetype );
virtual CCallableGameUpdate *ThreadedGameUpdate( uint32_t id, string map, string gamename, string ownername, string creatorname, uint32_t players, string usernames, uint32_t slotsTotal, uint32_t totalGames, uint32_t totalPlayers, bool add );
virtual CCallableGamePlayerAdd *ThreadedGamePlayerAdd( uint32_t gameid, string name, string ip, uint32_t spoofed, string spoofedrealm, uint32_t reserved, uint32_t loadingtime, uint32_t left, string leftreason, uint32_t team, uint32_t colour, string savetype );
virtual CCallableGamePlayerSummaryCheck *ThreadedGamePlayerSummaryCheck( string name, string realm );
virtual CCallableVampPlayerSummaryCheck *ThreadedVampPlayerSummaryCheck( string name );
virtual CCallableDotAGameAdd *ThreadedDotAGameAdd( uint32_t gameid, uint32_t winner, uint32_t min, uint32_t sec, string saveType );
virtual CCallableDotAPlayerAdd *ThreadedDotAPlayerAdd( uint32_t gameid, uint32_t colour, uint32_t kills, uint32_t deaths, uint32_t creepkills, uint32_t creepdenies, uint32_t assists, uint32_t gold, uint32_t neutralkills, string item1, string item2, string item3, string item4, string item5, string item6, string hero, uint32_t newcolour, uint32_t towerkills, uint32_t raxkills, uint32_t courierkills, string saveType );
virtual CCallableDotAPlayerSummaryCheck *ThreadedDotAPlayerSummaryCheck( string name, string realm, string saveType );
virtual CCallableTreePlayerSummaryCheck *ThreadedTreePlayerSummaryCheck( string name, string realm );
virtual CCallableSnipePlayerSummaryCheck *ThreadedSnipePlayerSummaryCheck( string name, string realm );
virtual CCallableShipsPlayerSummaryCheck *ThreadedShipsPlayerSummaryCheck( string name, string realm );
virtual CCallableW3MMDPlayerSummaryCheck *ThreadedW3MMDPlayerSummaryCheck( string name, string realm, string category );
virtual CCallableDownloadAdd *ThreadedDownloadAdd( string map, uint32_t mapsize, string name, string ip, uint32_t spoofed, string spoofedrealm, uint32_t downloadtime );
virtual CCallableScoreCheck *ThreadedScoreCheck( string category, string name, string server );
virtual CCallableLeagueCheck *ThreadedLeagueCheck( string category, string name, string server, string gamename );
virtual CCallableGetTournament *ThreadedGetTournament( string gamename );
virtual CCallableTournamentChat *ThreadedTournamentChat( uint32_t chatid, string message );
virtual CCallableTournamentUpdate *ThreadedTournamentUpdate( uint32_t matchid, string gamename, uint32_t status );
virtual CCallableConnectCheck *ThreadedConnectCheck( string name, uint32_t sessionkey );
virtual CCallableW3MMDPlayerAdd *ThreadedW3MMDPlayerAdd( string category, uint32_t gameid, uint32_t pid, string name, string flag, uint32_t leaver, uint32_t practicing, string saveType );
virtual CCallableW3MMDVarAdd *ThreadedW3MMDVarAdd( uint32_t gameid, map<VarP,int32_t> var_ints, string saveType );
virtual CCallableW3MMDVarAdd *ThreadedW3MMDVarAdd( uint32_t gameid, map<VarP,double> var_reals, string saveType );
virtual CCallableW3MMDVarAdd *ThreadedW3MMDVarAdd( uint32_t gameid, map<VarP,string> var_strings, string saveType );
// other database functions
virtual void *GetIdleConnection( );
};
//
// global helper functions
//
uint32_t MySQLAdminCount( void *conn, string *error, uint32_t botid, string server );
bool MySQLAdminCheck( void *conn, string *error, uint32_t botid, string server, string user );
bool MySQLAdminAdd( void *conn, string *error, uint32_t botid, string server, string user );
bool MySQLAdminRemove( void *conn, string *error, uint32_t botid, string server, string user );
vector<string> MySQLAdminList( void *conn, string *error, uint32_t botid, string server );
uint32_t MySQLBanCount( void *conn, string *error, uint32_t botid, string server );
CDBBan *MySQLBanCheck( void *conn, string *error, uint32_t botid, string server, string user, string ip, string hostname, string ownername );
uint32_t MySQLBanAdd( void *conn, string *error, uint32_t botid, string server, string user, string ip, string gamename, string admin, string reason, uint32_t expiretime, string context );
bool MySQLBanRemove( void *conn, string *error, uint32_t botid, string server, string user, string context );
bool MySQLBanRemove( void *conn, string *error, uint32_t botid, string user, string context );
map<string, string> MySQLSpoofList( void *conn, string *error, uint32_t botid );
void MySQLReconUpdate( void *conn, string *error, uint32_t botid, uint32_t hostcounter, uint32_t seconds );
vector<string> MySQLCommandList( void *conn, string *error, uint32_t botid );
uint32_t MySQLGameAdd( void *conn, string *error, uint32_t botid, string server, string map, string gamename, string ownername, uint32_t duration, uint32_t gamestate, string creatorname, string creatorserver, string savetype );
uint32_t MySQLGameUpdate( void *conn, string *error, uint32_t botid, uint32_t id, string map, string gamename, string ownername, string creatorname, uint32_t players, string usernames, uint32_t slotsTotal, uint32_t totalGames, uint32_t totalPlayers, bool add );
uint32_t MySQLGamePlayerAdd( void *conn, string *error, uint32_t botid, uint32_t gameid, string name, string ip, uint32_t spoofed, string spoofedrealm, uint32_t reserved, uint32_t loadingtime, uint32_t left, string leftreason, uint32_t team, uint32_t colour, string savetype );
CDBGamePlayerSummary *MySQLGamePlayerSummaryCheck( void *conn, string *error, uint32_t botid, string name, string realm );
CDBVampPlayerSummary *MySQLVampPlayerSummaryCheck( void *conn, string *error, uint32_t botid, string name );
uint32_t MySQLDotAGameAdd( void *conn, string *error, uint32_t botid, uint32_t gameid, uint32_t winner, uint32_t min, uint32_t sec, string saveType );
uint32_t MySQLDotAPlayerAdd( void *conn, string *error, uint32_t botid, uint32_t gameid, uint32_t colour, uint32_t kills, uint32_t deaths, uint32_t creepkills, uint32_t creepdenies, uint32_t assists, uint32_t gold, uint32_t neutralkills, string item1, string item2, string item3, string item4, string item5, string item6, string hero, uint32_t newcolour, uint32_t towerkills, uint32_t raxkills, uint32_t courierkills, string saveType );
CDBDotAPlayerSummary *MySQLDotAPlayerSummaryCheck( void *conn, string *error, uint32_t botid, string name, string realm, string saveType );
CDBTreePlayerSummary *MySQLTreePlayerSummaryCheck( void *conn, string *error, uint32_t botid, string name, string realm );
CDBSnipePlayerSummary *MySQLSnipePlayerSummaryCheck( void *conn, string *error, uint32_t botid, string name, string realm );
CDBShipsPlayerSummary *MySQLShipsPlayerSummaryCheck( void *conn, string *error, uint32_t botid, string name, string realm );
CDBW3MMDPlayerSummary *MySQLW3MMDPlayerSummaryCheck( void *conn, string *error, uint32_t botid, string name, string realm, string category );
bool MySQLDownloadAdd( void *conn, string *error, uint32_t botid, string map, uint32_t mapsize, string name, string realm, string ip, uint32_t spoofed, string spoofedrealm, uint32_t downloadtime );
double *MySQLScoreCheck( void *conn, string *error, uint32_t botid, string category, string name, string server );
uint32_t MySQLLeagueCheck( void *conn, string *error, uint32_t botid, string category, string name, string server, string gamename );
vector<string> MySQLGetTournament( void *conn, string *error, uint32_t botid, string gamename );
void MySQLTournamentChat( void *conn, string *error, uint32_t botid, uint32_t chatid, string message );
void MySQLTournamentUpdate( void *conn, string *error, uint32_t botid, uint32_t matchid, string gamename, uint32_t status );
bool MySQLConnectCheck( void *conn, string *error, uint32_t botid, string name, uint32_t sessionkey );
uint32_t MySQLW3MMDPlayerAdd( void *conn, string *error, uint32_t botid, string category, uint32_t gameid, uint32_t pid, string name, string flag, uint32_t leaver, uint32_t practicing, string saveType );
bool MySQLW3MMDVarAdd( void *conn, string *error, uint32_t botid, uint32_t gameid, map<VarP,int32_t> var_ints, string saveType );
bool MySQLW3MMDVarAdd( void *conn, string *error, uint32_t botid, uint32_t gameid, map<VarP,double> var_reals, string saveType );
bool MySQLW3MMDVarAdd( void *conn, string *error, uint32_t botid, uint32_t gameid, map<VarP,string> var_strings, string saveType );
//
// MySQL Callables
//
class CMySQLCallable : virtual public CBaseCallable
{
protected:
void *m_Connection;
string m_SQLServer;
string m_SQLDatabase;
string m_SQLUser;
string m_SQLPassword;
uint16_t m_SQLPort;
uint32_t m_SQLBotID;
CGHostDBMySQL *m_DB;
public:
CMySQLCallable( void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), m_Connection( nConnection ), m_SQLBotID( nSQLBotID ), m_SQLServer( nSQLServer ), m_SQLDatabase( nSQLDatabase ), m_SQLUser( nSQLUser ), m_SQLPassword( nSQLPassword ), m_SQLPort( nSQLPort ), m_DB( nDB ) { }
virtual ~CMySQLCallable( ) { }
virtual void *GetConnection( ) { return m_Connection; }
virtual void Init( );
virtual void Close( );
};
class CMySQLCallableAdminCount : public CCallableAdminCount, public CMySQLCallable
{
public:
CMySQLCallableAdminCount( string nServer, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableAdminCount( nServer ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableAdminCount( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableAdminCheck : public CCallableAdminCheck, public CMySQLCallable
{
public:
CMySQLCallableAdminCheck( string nServer, string nUser, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableAdminCheck( nServer, nUser ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableAdminCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableAdminAdd : public CCallableAdminAdd, public CMySQLCallable
{
public:
CMySQLCallableAdminAdd( string nServer, string nUser, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableAdminAdd( nServer, nUser ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableAdminAdd( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableAdminRemove : public CCallableAdminRemove, public CMySQLCallable
{
public:
CMySQLCallableAdminRemove( string nServer, string nUser, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableAdminRemove( nServer, nUser ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableAdminRemove( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableAdminList : public CCallableAdminList, public CMySQLCallable
{
public:
CMySQLCallableAdminList( string nServer, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableAdminList( nServer ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableAdminList( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableBanCount : public CCallableBanCount, public CMySQLCallable
{
public:
CMySQLCallableBanCount( string nServer, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableBanCount( nServer ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableBanCount( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableBanCheck : public CCallableBanCheck, public CMySQLCallable
{
public:
CMySQLCallableBanCheck( string nServer, string nUser, string nIP, string nHostName, string nOwnerName, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableBanCheck( nServer, nUser, nIP, nHostName, nOwnerName ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableBanCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableBanAdd : public CCallableBanAdd, public CMySQLCallable
{
public:
CMySQLCallableBanAdd( string nServer, string nUser, string nIP, string nGameName, string nAdmin, string nReason, uint32_t nExpireTime, string nContext, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableBanAdd( nServer, nUser, nIP, nGameName, nAdmin, nReason, nExpireTime, nContext ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableBanAdd( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableBanRemove : public CCallableBanRemove, public CMySQLCallable
{
public:
CMySQLCallableBanRemove( string nServer, string nUser, string nContext, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableBanRemove( nServer, nUser, nContext ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableBanRemove( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableSpoofList : public CCallableSpoofList, public CMySQLCallable
{
public:
CMySQLCallableSpoofList( void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableSpoofList( ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableSpoofList( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableCommandList : public CCallableCommandList, public CMySQLCallable
{
public:
CMySQLCallableCommandList( void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableCommandList( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableReconUpdate : public CCallableReconUpdate, public CMySQLCallable
{
public:
CMySQLCallableReconUpdate( uint32_t nHostCounter, uint32_t nSeconds, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableReconUpdate( nHostCounter, nSeconds ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableReconUpdate( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableGameAdd : public CCallableGameAdd, public CMySQLCallable
{
public:
CMySQLCallableGameAdd( string nServer, string nMap, string nGameName, string nOwnerName, uint32_t nDuration, uint32_t nGameState, string nCreatorName, string nCreatorServer, string nSaveType, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableGameAdd( nServer, nMap, nGameName, nOwnerName, nDuration, nGameState, nCreatorName, nCreatorServer, nSaveType ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableGameAdd( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableGameUpdate : public CCallableGameUpdate, public CMySQLCallable
{
public:
CMySQLCallableGameUpdate( uint32_t id, string map, string gamename, string ownername, string creatorname, uint32_t players, string usernames, uint32_t slotsTotal, uint32_t totalGames, uint32_t totalPlayers, bool add, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableGameUpdate( id, map, gamename, ownername, creatorname, players, usernames, slotsTotal, totalGames, totalPlayers, add ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableGameUpdate( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableGamePlayerAdd : public CCallableGamePlayerAdd, public CMySQLCallable
{
public:
CMySQLCallableGamePlayerAdd( uint32_t nGameID, string nName, string nIP, uint32_t nSpoofed, string nSpoofedRealm, uint32_t nReserved, uint32_t nLoadingTime, uint32_t nLeft, string nLeftReason, uint32_t nTeam, uint32_t nColour, string nSaveType, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableGamePlayerAdd( nGameID, nName, nIP, nSpoofed, nSpoofedRealm, nReserved, nLoadingTime, nLeft, nLeftReason, nTeam, nColour, nSaveType ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableGamePlayerAdd( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableGamePlayerSummaryCheck : public CCallableGamePlayerSummaryCheck, public CMySQLCallable
{
public:
CMySQLCallableGamePlayerSummaryCheck( string nName, string nRealm, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableGamePlayerSummaryCheck( nName, nRealm ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableGamePlayerSummaryCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableVampPlayerSummaryCheck : public CCallableVampPlayerSummaryCheck, public CMySQLCallable
{
public:
CMySQLCallableVampPlayerSummaryCheck( string nName, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableVampPlayerSummaryCheck( nName ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableVampPlayerSummaryCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableDotAGameAdd : public CCallableDotAGameAdd, public CMySQLCallable
{
public:
CMySQLCallableDotAGameAdd( uint32_t nGameID, uint32_t nWinner, uint32_t nMin, uint32_t nSec, string nSaveType, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableDotAGameAdd( nGameID, nWinner, nMin, nSec, nSaveType ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableDotAGameAdd( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableDotAPlayerAdd : public CCallableDotAPlayerAdd, public CMySQLCallable
{
public:
CMySQLCallableDotAPlayerAdd( uint32_t nGameID, uint32_t nColour, uint32_t nKills, uint32_t nDeaths, uint32_t nCreepKills, uint32_t nCreepDenies, uint32_t nAssists, uint32_t nGold, uint32_t nNeutralKills, string nItem1, string nItem2, string nItem3, string nItem4, string nItem5, string nItem6, string nHero, uint32_t nNewColour, uint32_t nTowerKills, uint32_t nRaxKills, uint32_t nCourierKills, string nSaveType, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableDotAPlayerAdd( nGameID, nColour, nKills, nDeaths, nCreepKills, nCreepDenies, nAssists, nGold, nNeutralKills, nItem1, nItem2, nItem3, nItem4, nItem5, nItem6, nHero, nNewColour, nTowerKills, nRaxKills, nCourierKills, nSaveType ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableDotAPlayerAdd( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableDotAPlayerSummaryCheck : public CCallableDotAPlayerSummaryCheck, public CMySQLCallable
{
public:
CMySQLCallableDotAPlayerSummaryCheck( string nName, string nRealm, string nSaveType, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableDotAPlayerSummaryCheck( nName, nRealm, nSaveType ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableDotAPlayerSummaryCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableTreePlayerSummaryCheck : public CCallableTreePlayerSummaryCheck, public CMySQLCallable
{
public:
CMySQLCallableTreePlayerSummaryCheck( string nName, string nRealm, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableTreePlayerSummaryCheck( nName, nRealm ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableTreePlayerSummaryCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableSnipePlayerSummaryCheck : public CCallableSnipePlayerSummaryCheck, public CMySQLCallable
{
public:
CMySQLCallableSnipePlayerSummaryCheck( string nName, string nRealm, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableSnipePlayerSummaryCheck( nName, nRealm ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableSnipePlayerSummaryCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableShipsPlayerSummaryCheck : public CCallableShipsPlayerSummaryCheck, public CMySQLCallable
{
public:
CMySQLCallableShipsPlayerSummaryCheck( string nName, string nRealm, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableShipsPlayerSummaryCheck( nName, nRealm ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableShipsPlayerSummaryCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableW3MMDPlayerSummaryCheck : public CCallableW3MMDPlayerSummaryCheck, public CMySQLCallable
{
public:
CMySQLCallableW3MMDPlayerSummaryCheck( string nName, string nRealm, string nCategory, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableW3MMDPlayerSummaryCheck( nName, nRealm, nCategory ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableW3MMDPlayerSummaryCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableDownloadAdd : public CCallableDownloadAdd, public CMySQLCallable
{
public:
CMySQLCallableDownloadAdd( string nMap, uint32_t nMapSize, string nName, string nIP, uint32_t nSpoofed, string nSpoofedRealm, uint32_t nDownloadTime, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableDownloadAdd( nMap, nMapSize, nName, nIP, nSpoofed, nSpoofedRealm, nDownloadTime ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableDownloadAdd( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableScoreCheck : public CCallableScoreCheck, public CMySQLCallable
{
public:
CMySQLCallableScoreCheck( string nCategory, string nName, string nServer, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableScoreCheck( nCategory, nName, nServer ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableScoreCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableLeagueCheck : public CCallableLeagueCheck, public CMySQLCallable
{
public:
CMySQLCallableLeagueCheck( string nCategory, string nName, string nServer, string nGameName, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableLeagueCheck( nCategory, nName, nServer, nGameName ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableLeagueCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableGetTournament : public CCallableGetTournament, public CMySQLCallable
{
public:
CMySQLCallableGetTournament( string nGameName, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableGetTournament( nGameName ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableGetTournament( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableTournamentChat : public CCallableTournamentChat, public CMySQLCallable
{
public:
CMySQLCallableTournamentChat( uint32_t nChatID, string nMessage, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableTournamentChat( nChatID, nMessage ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableTournamentChat( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableTournamentUpdate : public CCallableTournamentUpdate, public CMySQLCallable
{
public:
CMySQLCallableTournamentUpdate( uint32_t nMatchID, string nGameName, uint32_t nStatus, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableTournamentUpdate( nMatchID, nGameName, nStatus ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableTournamentUpdate( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableConnectCheck : public CCallableConnectCheck, public CMySQLCallable
{
public:
CMySQLCallableConnectCheck( string nName, uint32_t nSessionKey, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableConnectCheck( nName, nSessionKey ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableConnectCheck( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableW3MMDPlayerAdd : public CCallableW3MMDPlayerAdd, public CMySQLCallable
{
public:
CMySQLCallableW3MMDPlayerAdd( string nCategory, uint32_t nGameID, uint32_t nPID, string nName, string nFlag, uint32_t nLeaver, uint32_t nPracticing, string nSaveType, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableW3MMDPlayerAdd( nCategory, nGameID, nPID, nName, nFlag, nLeaver, nPracticing, nSaveType ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableW3MMDPlayerAdd( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
class CMySQLCallableW3MMDVarAdd : public CCallableW3MMDVarAdd, public CMySQLCallable
{
public:
CMySQLCallableW3MMDVarAdd( uint32_t nGameID, map<VarP,int32_t> nVarInts, string nSaveType, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableW3MMDVarAdd( nGameID, nVarInts, nSaveType ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
CMySQLCallableW3MMDVarAdd( uint32_t nGameID, map<VarP,double> nVarReals, string nSaveType, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableW3MMDVarAdd( nGameID, nVarReals, nSaveType ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
CMySQLCallableW3MMDVarAdd( uint32_t nGameID, map<VarP,string> nVarStrings, string nSaveType, void *nConnection, uint32_t nSQLBotID, string nSQLServer, string nSQLDatabase, string nSQLUser, string nSQLPassword, uint16_t nSQLPort, CGHostDBMySQL *nDB ) : CBaseCallable( ), CCallableW3MMDVarAdd( nGameID, nVarStrings, nSaveType ), CMySQLCallable( nConnection, nSQLBotID, nSQLServer, nSQLDatabase, nSQLUser, nSQLPassword, nSQLPort, nDB ) { }
virtual ~CMySQLCallableW3MMDVarAdd( ) { }
virtual void operator( )( );
virtual void Init( ) { CMySQLCallable :: Init( ); }
virtual void Close( ) { CMySQLCallable :: Close( ); }
};
#endif