EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldSpaceServer.cpp
Go to the documentation of this file.
1 
11 #include "eve-server.h"
12 
13 #include "PyBoundObject.h"
14 #include "PyServiceCD.h"
16 
17 
19 
21 : PyService(mgr, "worldSpaceServer"),
22 m_dispatch(new Dispatcher(this))
23 {
24  _SetCallDispatcher(m_dispatch);
25 
26  PyCallable_REG_CALL(WorldSpaceServer, GetWorldSpaceTypeIDFromWorldSpaceID);
27  PyCallable_REG_CALL(WorldSpaceServer, GetWorldSpaceMachoAddress);
28 
29  /*
30  ws = world.GetWorldSpace(worldSpaceTypeID)
31  return ws.GetDistrictID()
32 
33 
34  currentRevs = sm.GetService('jessicaWorldSpaceClient').GetWorldSpace(self.id).GetWorldSpaceSpawnRevisionsList()
35  */
36 }
37 
39  delete m_dispatch;
40 }
41 
42 
43 PyResult WorldSpaceServer::Handle_GetWorldSpaceTypeIDFromWorldSpaceID(PyCallArgs &call) {
47  sLog.White( "WorldSpaceServer::Handle_GetWorldSpaceTypeIDFromWorldSpaceID()", "size=%u", call.tuple->size());
48  call.Dump(SERVICE__CALL_DUMP);
49 
50  return PyStatic.NewNone();
51 }
52 
53 PyResult WorldSpaceServer::Handle_GetWorldSpaceMachoAddress(PyCallArgs &call) {
57  sLog.White( "WorldSpaceServer::Handle_GetWorldSpaceMachoAddress()", "size=%u", call.tuple->size());
58  call.Dump(SERVICE__CALL_DUMP);
59 
60  return PyStatic.NewNone();
61 }
62 
Dispatcher *const m_dispatch
size_t size() const
Definition: PyRep.h:591
Dispatcher *const m_dispatch
#define sLog
Evaluates to a NewLog instance.
Definition: LogNew.h:250
PyCallable_Make_InnerDispatcher(WorldSpaceServer) WorldSpaceServer
#define PyStatic
Definition: PyRep.h:1209
#define PyCallable_REG_CALL(c, m)
Definition: PyServiceCD.h:78
virtual ~WorldSpaceServer()
void Dump(LogType type) const
Definition: PyCallable.cpp:81
PyTuple * tuple
Definition: PyCallable.h:50