Update of /cvsroot/wpdev/wolfpack/python
In directory sc8-pr-cvs1:/tmp/cvs-serv9847/python
Modified Files:
global.cpp pyaccount.cpp utilities.h
Log Message:
Implemented saving of Accounts to the Database and cleaned up a lot of srvparams.h and globals.h
Index: global.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/global.cpp,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -d -r1.88 -r1.89
*** global.cpp 8 Sep 2003 10:58:48 -0000 1.88
--- global.cpp 9 Sep 2003 23:09:31 -0000 1.89
***************
*** 1269,1273 ****
}
! AccountRecord* account = Accounts::instance()->getRecord( getArgStr( 0 ) );
return PyGetAccountObject( account );
}
--- 1269,1273 ----
}
! cAccount* account = Accounts::instance()->getRecord( getArgStr( 0 ) );
return PyGetAccountObject( account );
}
***************
*** 1368,1372 ****
return PyFalse;
! AccountRecord *account = Accounts::instance()->getRecord( login );
if( account )
--- 1368,1372 ----
return PyFalse;
! cAccount *account = Accounts::instance()->getRecord( login );
if( account )
Index: pyaccount.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/pyaccount.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** pyaccount.cpp 10 Aug 2003 04:26:42 -0000 1.17
--- pyaccount.cpp 9 Sep 2003 23:09:31 -0000 1.18
***************
*** 40,48 ****
/*!
! The object for Wolfpack AccountRecord items
*/
typedef struct {
PyObject_HEAD;
! AccountRecord *account;
} wpAccount;
--- 40,48 ----
/*!
! The object for Wolfpack cAccount items
*/
typedef struct {
PyObject_HEAD;
! cAccount *account;
} wpAccount;
***************
*** 254,258 ****
}
! PyObject* PyGetAccountObject( AccountRecord *account )
{
if( !account )
--- 254,258 ----
}
! PyObject* PyGetAccountObject( cAccount *account )
{
if( !account )
***************
*** 267,271 ****
}
! AccountRecord* getWpAccount( PyObject *wpaccount )
{
if( !wpaccount )
--- 267,271 ----
}
! cAccount* getWpAccount( PyObject *wpaccount )
{
if( !wpaccount )
Index: utilities.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/utilities.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** utilities.h 26 Aug 2003 03:55:13 -0000 1.20
--- utilities.h 9 Sep 2003 23:09:31 -0000 1.21
***************
*** 41,45 ****
class cBaseChar;
class Coord_cl;
! class AccountRecord;
class cTerritory;
class cUOTxTooltipList;
--- 41,45 ----
class cBaseChar;
class Coord_cl;
! class cAccount;
class cTerritory;
class cUOTxTooltipList;
***************
*** 99,104 ****
bool checkWpAccount( PyObject *object );
! PyObject* PyGetAccountObject( AccountRecord* );
! AccountRecord* getWpAccount( PyObject* );
bool checkWpRegion( PyObject *object );
--- 99,104 ----
bool checkWpAccount( PyObject *object );
! PyObject* PyGetAccountObject( cAccount* );
! cAccount* getWpAccount( PyObject* );
bool checkWpRegion( PyObject *object );
|