EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CharFittingMgr.cpp
Go to the documentation of this file.
1 /*
2  ------------------------------------------------------------------------------------
3  LICENSE:
4  ------------------------------------------------------------------------------------
5  This file is part of EVEmu: EVE Online Server Emulator
6  Copyright 2006 - 2021 The EVEmu Team
7  For the latest information visit https://evemu.dev
8  ------------------------------------------------------------------------------------
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU Lesser General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13 
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License along with
19  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20  Place - Suite 330, Boston, MA 02111-1307, USA, or go to
21  http://www.gnu.org/copyleft/lesser.txt.
22  ------------------------------------------------------------------------------------
23  Author: Reve (outline only)
24  Updates: Allan
25 */
26 
27 //work in progress
28 // note: these will be same calls as in corpFittingMgr
29 
30 
31 #include "eve-server.h"
32 
33 #include "PyServiceCD.h"
35 
37 
39 : PyService(mgr, "charFittingMgr"),
40 m_dispatch(new Dispatcher(this))
41 {
42  _SetCallDispatcher(m_dispatch);
43 
44  PyCallable_REG_CALL(CharFittingMgr, GetFittings);
45  PyCallable_REG_CALL(CharFittingMgr, SaveFitting);
46  PyCallable_REG_CALL(CharFittingMgr, SaveManyFittings);
47  PyCallable_REG_CALL(CharFittingMgr, DeleteFitting);
48  PyCallable_REG_CALL(CharFittingMgr, UpdateNameAndDescription);
49 }
50 
52  delete m_dispatch;
53 }
54 
55 //11:37:43 L CharFittingMgr::Handle_GetFittings(): size= 1 from 'allan'
56 PyResult CharFittingMgr::Handle_GetFittings(PyCallArgs &call) {
57  //self.fittings[ownerID] = self.GetFittingMgr(ownerID).GetFittings(ownerID)
58  // client/script/environment/fittingsvc.py(112) PersistFitting
59 
60  _log(PLAYER__CALL, "CharFittingMgr::Handle_GetFittings()");
61  call.Dump(PLAYER__CALL_DUMP);
62 
63  return nullptr;
64 }
65 
66 PyResult CharFittingMgr::Handle_SaveFitting(PyCallArgs &call)
67 {
68  // fitting.ownerID = ownerID
69  // fitting.fittingID = self.GetFittingMgr(ownerID).SaveFitting(ownerID, fitting)
70  _log(PLAYER__CALL, "CharFittingMgr::Handle_SaveFitting()");
71  call.Dump(PLAYER__CALL_DUMP);
72 
73  return nullptr;
74 }
75 
76 PyResult CharFittingMgr::Handle_SaveManyFittings(PyCallArgs &call)
77 {
78  /*
79  newFittingIDs = self.GetFittingMgr(ownerID).SaveManyFittings(ownerID, fittingsToSave)
80  for row in newFittingIDs:
81  self.fittings[ownerID][row.realFittingID] = fittingsToSave[row.tempFittingID]
82  self.fittings[ownerID][row.realFittingID].fittingID = row.realFittingID
83  */
84  _log(PLAYER__CALL, "CharFittingMgr::Handle_SaveManyFittings()");
85  call.Dump(PLAYER__CALL_DUMP);
86 
87  return nullptr;
88 }
89 
90 PyResult CharFittingMgr::Handle_DeleteFitting(PyCallArgs &call)
91 {
92  // self.GetFittingMgr(ownerID).DeleteFitting(ownerID, fittingID)
93  _log(PLAYER__CALL, "CharFittingMgr::Handle_DeleteFitting()");
94  call.Dump(PLAYER__CALL_DUMP);
95 
96  return nullptr;
97 }
98 
99 PyResult CharFittingMgr::Handle_UpdateNameAndDescription(PyCallArgs &call)
100 {
101  // self.GetFittingMgr(ownerID).UpdateNameAndDescription(fittingID, ownerID, name, description)
102  _log(PLAYER__CALL, "CharFittingMgr::Handle_UpdateNameAndDescription()");
103  call.Dump(PLAYER__CALL_DUMP);
104 
105  return nullptr;
106 }
Dispatcher *const m_dispatch
#define _log(type, fmt,...)
Definition: logsys.h:124
Dispatcher *const m_dispatch
PyCallable_Make_InnerDispatcher(CharFittingMgr) CharFittingMgr
#define PyCallable_REG_CALL(c, m)
Definition: PyServiceCD.h:78
virtual ~CharFittingMgr()
void Dump(LogType type) const
Definition: PyCallable.cpp:81