EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ScenarioService.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: Allan
24 */
25 
26 #include "eve-server.h"
27 
28 #include "PyServiceCD.h"
29 #include "system/ScenarioService.h"
30 
31 
33 
35 : PyService(mgr, "scenario"),
36  m_dispatch(new Dispatcher(this))
37 {
38  _SetCallDispatcher(m_dispatch);
39 
44  PyCallable_REG_CALL(ScenarioService, GetDunObjects);
45  PyCallable_REG_CALL(ScenarioService, GetSelObjects);
46  PyCallable_REG_CALL(ScenarioService, IsSelectedByObjID);
47  PyCallable_REG_CALL(ScenarioService, DuplicateSelection);
48  PyCallable_REG_CALL(ScenarioService, SetSelectionByID);
49  PyCallable_REG_CALL(ScenarioService, SetSelectedRadius);
51  PyCallable_REG_CALL(ScenarioService, RotateSelected);
52  PyCallable_REG_CALL(ScenarioService, JitterSelection);
53  PyCallable_REG_CALL(ScenarioService, ArrangeSelection);
54  PyCallable_REG_CALL(ScenarioService, DeleteSelected);
55  PyCallable_REG_CALL(ScenarioService, RefreshSelection);
56 }
57 
59  delete m_dispatch;
60 }
61 
62 
63 PyResult ScenarioService::Handle_ResetD( PyCallArgs& call )
64 {
65  _log(DUNG__CALL, "ScenarioService::ResetD()" );
66  call.Dump(DUNG__CALL_DUMP);
67 
68  return nullptr;
69 }
70 
71 PyResult ScenarioService::Handle_PlayDungeon( PyCallArgs& call )
72 {
73 //PlayDungeon(dungeonVID, selectedRoom)
74  _log(DUNG__CALL, "ScenarioService::PlayDungeon()" );
75  call.Dump(DUNG__CALL_DUMP);
76 
77  return nullptr;
78 }
79 
80 PyResult ScenarioService::Handle_EditRoom( PyCallArgs& call )
81 {
82  //EditRoom(dungeonVID, selectedRoom)
83  _log(DUNG__CALL, "ScenarioService::EditRoom()" );
84  call.Dump(DUNG__CALL_DUMP);
85 
86  return nullptr;
87 }
88 
89 PyResult ScenarioService::Handle_GotoRoom( PyCallArgs& call )
90 {
91 //GotoRoom(selectedRoom)
92  _log(DUNG__CALL, "ScenarioService::GotoRoom()" );
93  call.Dump(DUNG__CALL_DUMP);
94 
95  return nullptr;
96 }
97 
98 PyResult ScenarioService::Handle_GetDunObjects( PyCallArgs& call )
99 {
100 //GetDunObjects() (returns list of slim items)
101  _log(DUNG__CALL, "ScenarioService::GetDunObjects()" );
102  call.Dump(DUNG__CALL_DUMP);
103 
104  return nullptr;
105 }
106 
107 PyResult ScenarioService::Handle_GetSelObjects( PyCallArgs& call )
108 {
109 //GetSelObjects() (returns list of slim items)
110  _log(DUNG__CALL, "ScenarioService::GetSelObjects()" );
111  call.Dump(DUNG__CALL_DUMP);
112 
113  return nullptr;
114 }
115 
116 PyResult ScenarioService::Handle_IsSelectedByObjID( PyCallArgs& call )
117 {
118 //IsSelectedByObjID(dunObjectID)
119  _log(DUNG__CALL, "ScenarioService::IsSelectedByObjID()" );
120  call.Dump(DUNG__CALL_DUMP);
121 
122  return nullptr;
123 }
124 
125 PyResult ScenarioService::Handle_DuplicateSelection( PyCallArgs& call )
126 {
127 //DuplicateSelection(amount, X, Y, Z)
128  _log(DUNG__CALL, "ScenarioService::DuplicateSelection()" );
129  call.Dump(DUNG__CALL_DUMP);
130 
131  return nullptr;
132 }
133 
134 PyResult ScenarioService::Handle_SetSelectionByID( PyCallArgs& call )
135 {
136 //SetSelectionByID(ids)
137  _log(DUNG__CALL, "ScenarioService::SetSelectionByID()" );
138  call.Dump(DUNG__CALL_DUMP);
139 
140  return nullptr;
141 }
142 
143 PyResult ScenarioService::Handle_SetSelectedRadius( PyCallArgs& call )
144 {
145 //SetSelectedRadius(minRadius, maxRadius)
146  _log(DUNG__CALL, "ScenarioService::SetSelectedRadius()" );
147  call.Dump(DUNG__CALL_DUMP);
148 
149  return nullptr;
150 }
151 
152 PyResult ScenarioService::Handle_SetRotate( PyCallArgs& call )
153 {
154 //SetRotate(y, p, r)
155  _log(DUNG__CALL, "ScenarioService::SetRotate()" );
156  call.Dump(DUNG__CALL_DUMP);
157 
158  return nullptr;
159 }
160 
161 PyResult ScenarioService::Handle_RotateSelected( PyCallArgs& call )
162 {
163 //RotateSelected(yaw, pitch, roll)
164  _log(DUNG__CALL, "ScenarioService::RotateSelected()" );
165  call.Dump(DUNG__CALL_DUMP);
166 
167  return nullptr;
168 }
169 
170 PyResult ScenarioService::Handle_JitterSelection( PyCallArgs& call )
171 {
172 //JitterSelection(X, Y, Z)
173  _log(DUNG__CALL, "ScenarioService::JitterSelection()" );
174  call.Dump(DUNG__CALL_DUMP);
175 
176  return nullptr;
177 }
178 
179 PyResult ScenarioService::Handle_ArrangeSelection( PyCallArgs& call )
180 {
181 //ArrangeSelection(X, Y, Z)
182  _log(DUNG__CALL, "ScenarioService::ArrangeSelection()" );
183  call.Dump(DUNG__CALL_DUMP);
184 
185  return nullptr;
186 }
187 
188 PyResult ScenarioService::Handle_DeleteSelected( PyCallArgs& call )
189 {
190 //DeleteSelected()
191  _log(DUNG__CALL, "ScenarioService::DeleteSelected()" );
192  call.Dump(DUNG__CALL_DUMP);
193 
194  return nullptr;
195 }
196 
197 PyResult ScenarioService::Handle_RefreshSelection( PyCallArgs& call )
198 {
199  //RefreshSelection()
200  _log(DUNG__CALL, "ScenarioService::RefreshSelection()" );
201  call.Dump(DUNG__CALL_DUMP);
202 
203  return nullptr;
204 }
Dispatcher *const m_dispatch
virtual ~ScenarioService()
#define _log(type, fmt,...)
Definition: logsys.h:124
PyCallable_Make_InnerDispatcher(ScenarioService) ScenarioService
Dispatcher *const m_dispatch
#define PyCallable_REG_CALL(c, m)
Definition: PyServiceCD.h:78
void Dump(LogType type) const
Definition: PyCallable.cpp:81