1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 /////////////////////////////////////////////////////////////////
18 // WARNING : this is a generated file, don't change it !
19 /////////////////////////////////////////////////////////////////
21 #ifndef R2_MODULES_ITF
22 #define R2_MODULES_ITF
23 #include "nel/misc/types_nl.h"
25 #include "nel/misc/hierarchical_timer.h"
26 #include "nel/misc/string_conversion.h"
27 #include "nel/net/message.h"
28 #include "nel/net/module.h"
29 #include "nel/net/module_builder_parts.h"
30 #include "nel/net/module_message.h"
31 #include "nel/net/module_gateway.h"
33 #include "game_share/far_position.h"
35 #include "game_share/r2_share_itf.h"
37 #include "game_share/r2_types.h"
39 #include "game_share/base_types.h"
41 #include "game_share/misc_const.h"
46 class TR2SbmSessionInfo
;
49 /////////////////////////////////////////////////////////////////
50 // WARNING : this is a generated file, don't change it !
51 /////////////////////////////////////////////////////////////////
52 class CServerEditionItfSkel
55 /// the interceptor type
56 typedef NLNET::CInterceptorForwarder
< CServerEditionItfSkel
> TInterceptor
;
58 CServerEditionItfSkel()
60 // do early run time check for message table
63 virtual ~CServerEditionItfSkel()
67 void init(NLNET::IModule
*module
)
69 _Interceptor
.init(this, module
);
72 // unused interceptors
73 std::string
fwdBuildModuleManifest() const { return std::string(); }
74 void fwdOnModuleUp(NLNET::IModuleProxy
* /* moduleProxy */) {}
75 void fwdOnModuleDown(NLNET::IModuleProxy
* /* moduleProxy */) {}
76 void fwdOnModuleSecurityChange(NLNET::IModuleProxy
* /* moduleProxy */) {}
78 // process module message interceptor
79 bool fwdOnProcessModuleMessage(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&message
);
82 typedef void (CServerEditionItfSkel::*TMessageHandler
)(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&message
);
83 typedef std::map
<std::string
, TMessageHandler
> TMessageHandlerMap
;
85 const TMessageHandlerMap
&getMessageHandlers() const;
88 // declare one interceptor member of the skeleton
89 TInterceptor _Interceptor
;
91 // declare the interceptor forwarder as friend of this class
92 friend class NLNET::CInterceptorForwarder
< CServerEditionItfSkel
>;
94 /////////////////////////////////////////////////////////////////
95 // WARNING : this is a generated file, don't change it !
96 /////////////////////////////////////////////////////////////////
102 /////////////////////////////////////////////////////////////////
103 // WARNING : this is a generated file, don't change it !
104 /////////////////////////////////////////////////////////////////
105 class CServerEditionItfProxy
107 /// Smart pointer on the module proxy
108 NLNET::TModuleProxyPtr _ModuleProxy
;
110 // Pointer on the local module that implement the interface (if the proxy is for a local module)
111 NLNET::TModulePtr _LocalModule
;
112 // Direct pointer on the server implementation interface for collocated module
113 CServerEditionItfSkel
*_LocalModuleSkel
;
117 CServerEditionItfProxy(NLNET::IModuleProxy
*proxy
)
119 nlassert(proxy
->getModuleClassName() == "ServerEditionItf");
120 _ModuleProxy
= proxy
;
122 // initialize collocated servant interface
123 if (proxy
->getModuleDistance() == 0)
125 _LocalModule
= proxy
->getLocalModule();
126 nlassert(_LocalModule
!= NULL
);
127 CServerEditionItfSkel::TInterceptor
*interceptor
= NULL
;
128 interceptor
= static_cast < NLNET::CModuleBase
* >(_LocalModule
.getPtr())->getInterceptor(interceptor
);
129 nlassert(interceptor
!= NULL
);
131 _LocalModuleSkel
= interceptor
->getParent();
132 nlassert(_LocalModuleSkel
!= NULL
);
135 _LocalModuleSkel
= 0;
138 virtual ~CServerEditionItfProxy()
142 NLNET::IModuleProxy
*getModuleProxy()
153 /////////////////////////////////////////////////////////////////
154 // WARNING : this is a generated file, don't change it !
155 /////////////////////////////////////////////////////////////////
156 class CServerAnimationItfSkel
159 /// the interceptor type
160 typedef NLNET::CInterceptorForwarder
< CServerAnimationItfSkel
> TInterceptor
;
162 CServerAnimationItfSkel()
164 // do early run time check for message table
165 getMessageHandlers();
167 virtual ~CServerAnimationItfSkel()
171 void init(NLNET::IModule
*module
)
173 _Interceptor
.init(this, module
);
176 // unused interceptors
177 std::string
fwdBuildModuleManifest() const { return std::string(); }
178 void fwdOnModuleUp(NLNET::IModuleProxy
* /* moduleProxy */) {}
179 void fwdOnModuleDown(NLNET::IModuleProxy
* /* moduleProxy */) {}
180 void fwdOnModuleSecurityChange(NLNET::IModuleProxy
* /* moduleProxy */) {}
182 // process module message interceptor
183 bool fwdOnProcessModuleMessage(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&message
);
186 typedef void (CServerAnimationItfSkel::*TMessageHandler
)(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&message
);
187 typedef std::map
<std::string
, TMessageHandler
> TMessageHandlerMap
;
189 const TMessageHandlerMap
&getMessageHandlers() const;
192 void getStartParams_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
194 void askSetUserCharActPosition_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
196 void activateEasterEgg_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
198 void dssMessage_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
200 void setScenarioPoints_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
202 void startScenarioTiming_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
204 void endScenarioTiming_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
206 void deactivateEasterEgg_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
208 void onEasterEggLooted_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
210 void onCharTargetReceived_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
212 void teleportCharacter_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
214 void characterReady_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
216 // declare one interceptor member of the skeleton
217 TInterceptor _Interceptor
;
219 // declare the interceptor forwarder as friend of this class
220 friend class NLNET::CInterceptorForwarder
< CServerAnimationItfSkel
>;
222 /////////////////////////////////////////////////////////////////
223 // WARNING : this is a generated file, don't change it !
224 /////////////////////////////////////////////////////////////////
226 // Ask for the position, season and adventure mode of a connecting character
227 // The reply will either give a new position or tell to load the last stored one
228 // Used by the EGS of a Ring shard to send the start position to a connecting client
229 virtual void getStartParams(NLNET::IModuleProxy
*sender
, uint32 charId
, TSessionId lastStoredSessionId
) =0;
230 // Ask to server animation module to re-send usre char entry point
231 // The reply call CCharacterControlItf::setUserCharActPosition
232 virtual void askSetUserCharActPosition(NLNET::IModuleProxy
*sender
, uint32 charId
) =0;
233 // AIS Message to activate a scenario generated easter egg
234 virtual void activateEasterEgg(NLNET::IModuleProxy
*sender
, uint32 easterEggId
, TSessionId scenarioId
, uint32 actId
, const std::string
&items
, float x
, float y
, float z
, float heading
, const std::string
&grpCtrl
, const std::string
&name
, const std::string
&look
) =0;
235 // AIS Message to make the dss send a message
236 virtual void dssMessage(NLNET::IModuleProxy
*sender
, TSessionId sessionId
, const std::string
&mode
, const std::string
&who
, const std::string
&msg
) =0;
237 // AIS Message to make the dss set the scenario points
238 virtual void setScenarioPoints(NLNET::IModuleProxy
*sender
, TSessionId sessionId
, float scenarioPoints
) =0;
239 // AIS Message to make the dss start scenario timing
240 virtual void startScenarioTiming(NLNET::IModuleProxy
*sender
, TSessionId sessionId
) =0;
241 // AIS Message to make the dss end scenario timing
242 virtual void endScenarioTiming(NLNET::IModuleProxy
*sender
, TSessionId sessionId
) =0;
243 // AIS Message to activate a scenario generated easter egg
244 virtual void deactivateEasterEgg(NLNET::IModuleProxy
*sender
, uint32 easterEggId
, TSessionId scenarioId
, uint32 actId
) =0;
245 // EGS Message to indicates that an easter egg is looted
246 virtual void onEasterEggLooted(NLNET::IModuleProxy
*sender
, uint32 eggId
, TSessionId scenarioId
) =0;
247 // EGS message to indicates info of the target of a player
248 virtual void onCharTargetReceived(NLNET::IModuleProxy
*sender
, const NLMISC::CEntityId
&eid
, const NLMISC::CEntityId
&creatureId
, uint32 creatureAlias
, TDataSetRow creatureRowId
, const ucstring
&name
, uint32 nameId
, const std::vector
<std::string
> ¶ms
, bool alived
) =0;
249 // AIS message to ask the dss to teleport a character to a position
250 virtual void teleportCharacter(NLNET::IModuleProxy
*sender
, const NLMISC::CEntityId
&player
, float x
, float y
, float z
) =0;
251 // EGS message to indicates that a character is ready in mirror
252 virtual void characterReady(NLNET::IModuleProxy
*sender
, const NLMISC::CEntityId
&charEid
) =0;
257 /////////////////////////////////////////////////////////////////
258 // WARNING : this is a generated file, don't change it !
259 /////////////////////////////////////////////////////////////////
260 class CServerAnimationItfProxy
262 /// Smart pointer on the module proxy
263 NLNET::TModuleProxyPtr _ModuleProxy
;
265 // Pointer on the local module that implement the interface (if the proxy is for a local module)
266 NLNET::TModulePtr _LocalModule
;
267 // Direct pointer on the server implementation interface for collocated module
268 CServerAnimationItfSkel
*_LocalModuleSkel
;
272 CServerAnimationItfProxy(NLNET::IModuleProxy
*proxy
)
274 nlassert(proxy
->getModuleClassName() == "ServerAnimationModule");
275 _ModuleProxy
= proxy
;
277 // initialize collocated servant interface
278 if (proxy
->getModuleDistance() == 0)
280 _LocalModule
= proxy
->getLocalModule();
281 nlassert(_LocalModule
!= NULL
);
282 CServerAnimationItfSkel::TInterceptor
*interceptor
= NULL
;
283 interceptor
= static_cast < NLNET::CModuleBase
* >(_LocalModule
.getPtr())->getInterceptor(interceptor
);
284 nlassert(interceptor
!= NULL
);
286 _LocalModuleSkel
= interceptor
->getParent();
287 nlassert(_LocalModuleSkel
!= NULL
);
290 _LocalModuleSkel
= 0;
293 virtual ~CServerAnimationItfProxy()
297 NLNET::IModuleProxy
*getModuleProxy()
302 // Ask for the position, season and adventure mode of a connecting character
303 // The reply will either give a new position or tell to load the last stored one
304 // Used by the EGS of a Ring shard to send the start position to a connecting client
305 void getStartParams(NLNET::IModule
*sender
, uint32 charId
, TSessionId lastStoredSessionId
);
306 // Ask to server animation module to re-send usre char entry point
307 // The reply call CCharacterControlItf::setUserCharActPosition
308 void askSetUserCharActPosition(NLNET::IModule
*sender
, uint32 charId
);
309 // AIS Message to activate a scenario generated easter egg
310 void activateEasterEgg(NLNET::IModule
*sender
, uint32 easterEggId
, TSessionId scenarioId
, uint32 actId
, const std::string
&items
, float x
, float y
, float z
, float heading
, const std::string
&grpCtrl
, const std::string
&name
, const std::string
&look
);
311 // AIS Message to make the dss send a message
312 void dssMessage(NLNET::IModule
*sender
, TSessionId sessionId
, const std::string
&mode
, const std::string
&who
, const std::string
&msg
);
313 // AIS Message to make the dss set the scenario points
314 void setScenarioPoints(NLNET::IModule
*sender
, TSessionId sessionId
, float scenarioPoints
);
315 // AIS Message to make the dss start scenario timing
316 void startScenarioTiming(NLNET::IModule
*sender
, TSessionId sessionId
);
317 // AIS Message to make the dss end scenario timing
318 void endScenarioTiming(NLNET::IModule
*sender
, TSessionId sessionId
);
319 // AIS Message to activate a scenario generated easter egg
320 void deactivateEasterEgg(NLNET::IModule
*sender
, uint32 easterEggId
, TSessionId scenarioId
, uint32 actId
);
321 // EGS Message to indicates that an easter egg is looted
322 void onEasterEggLooted(NLNET::IModule
*sender
, uint32 eggId
, TSessionId scenarioId
);
323 // EGS message to indicates info of the target of a player
324 void onCharTargetReceived(NLNET::IModule
*sender
, const NLMISC::CEntityId
&eid
, const NLMISC::CEntityId
&creatureId
, uint32 creatureAlias
, TDataSetRow creatureRowId
, const ucstring
&name
, uint32 nameId
, const std::vector
<std::string
> ¶ms
, bool alived
);
325 // AIS message to ask the dss to teleport a character to a position
326 void teleportCharacter(NLNET::IModule
*sender
, const NLMISC::CEntityId
&player
, float x
, float y
, float z
);
327 // EGS message to indicates that a character is ready in mirror
328 void characterReady(NLNET::IModule
*sender
, const NLMISC::CEntityId
&charEid
);
330 // Message serializer. Return the message received in reference for easier integration
331 static const NLNET::CMessage
&buildMessageFor_getStartParams(NLNET::CMessage
&__message
, uint32 charId
, TSessionId lastStoredSessionId
);
333 // Message serializer. Return the message received in reference for easier integration
334 static const NLNET::CMessage
&buildMessageFor_askSetUserCharActPosition(NLNET::CMessage
&__message
, uint32 charId
);
336 // Message serializer. Return the message received in reference for easier integration
337 static const NLNET::CMessage
&buildMessageFor_activateEasterEgg(NLNET::CMessage
&__message
, uint32 easterEggId
, TSessionId scenarioId
, uint32 actId
, const std::string
&items
, float x
, float y
, float z
, float heading
, const std::string
&grpCtrl
, const std::string
&name
, const std::string
&look
);
339 // Message serializer. Return the message received in reference for easier integration
340 static const NLNET::CMessage
&buildMessageFor_dssMessage(NLNET::CMessage
&__message
, TSessionId sessionId
, const std::string
&mode
, const std::string
&who
, const std::string
&msg
);
342 // Message serializer. Return the message received in reference for easier integration
343 static const NLNET::CMessage
&buildMessageFor_setScenarioPoints(NLNET::CMessage
&__message
, TSessionId sessionId
, float scenarioPoints
);
345 // Message serializer. Return the message received in reference for easier integration
346 static const NLNET::CMessage
&buildMessageFor_startScenarioTiming(NLNET::CMessage
&__message
, TSessionId sessionId
);
348 // Message serializer. Return the message received in reference for easier integration
349 static const NLNET::CMessage
&buildMessageFor_endScenarioTiming(NLNET::CMessage
&__message
, TSessionId sessionId
);
351 // Message serializer. Return the message received in reference for easier integration
352 static const NLNET::CMessage
&buildMessageFor_deactivateEasterEgg(NLNET::CMessage
&__message
, uint32 easterEggId
, TSessionId scenarioId
, uint32 actId
);
354 // Message serializer. Return the message received in reference for easier integration
355 static const NLNET::CMessage
&buildMessageFor_onEasterEggLooted(NLNET::CMessage
&__message
, uint32 eggId
, TSessionId scenarioId
);
357 // Message serializer. Return the message received in reference for easier integration
358 static const NLNET::CMessage
&buildMessageFor_onCharTargetReceived(NLNET::CMessage
&__message
, const NLMISC::CEntityId
&eid
, const NLMISC::CEntityId
&creatureId
, uint32 creatureAlias
, TDataSetRow creatureRowId
, const ucstring
&name
, uint32 nameId
, const std::vector
<std::string
> ¶ms
, bool alived
);
360 // Message serializer. Return the message received in reference for easier integration
361 static const NLNET::CMessage
&buildMessageFor_teleportCharacter(NLNET::CMessage
&__message
, const NLMISC::CEntityId
&player
, float x
, float y
, float z
);
363 // Message serializer. Return the message received in reference for easier integration
364 static const NLNET::CMessage
&buildMessageFor_characterReady(NLNET::CMessage
&__message
, const NLMISC::CEntityId
&charEid
);
371 /////////////////////////////////////////////////////////////////
372 // WARNING : this is a generated file, don't change it !
373 /////////////////////////////////////////////////////////////////
374 class CCharacterControlItfSkel
377 /// the interceptor type
378 typedef NLNET::CInterceptorForwarder
< CCharacterControlItfSkel
> TInterceptor
;
380 CCharacterControlItfSkel()
382 // do early run time check for message table
383 getMessageHandlers();
385 virtual ~CCharacterControlItfSkel()
389 void init(NLNET::IModule
*module
)
391 _Interceptor
.init(this, module
);
394 // unused interceptors
395 std::string
fwdBuildModuleManifest() const { return std::string(); }
396 void fwdOnModuleUp(NLNET::IModuleProxy
* /* moduleProxy */) {}
397 void fwdOnModuleDown(NLNET::IModuleProxy
* /* moduleProxy */) {}
398 void fwdOnModuleSecurityChange(NLNET::IModuleProxy
* /* moduleProxy */) {}
400 // process module message interceptor
401 bool fwdOnProcessModuleMessage(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&message
);
404 typedef void (CCharacterControlItfSkel::*TMessageHandler
)(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&message
);
405 typedef std::map
<std::string
, TMessageHandler
> TMessageHandlerMap
;
407 const TMessageHandlerMap
&getMessageHandlers() const;
410 void setUserCharStartParams_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
412 void charJoinAnimSession_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
414 void charLeaveAnimSession_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
416 void setUserCharActPosition_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
418 void animSessionStarted_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
420 void animSessionEnded_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
422 void scenarioEnded_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
424 void sendItemDescription_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
426 void activateEasterEgg_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
428 void deactivateEasterEgg_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
430 void deactivateEasterEggs_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
432 void sendCharTargetToDss_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
434 void onTpPositionAsked_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
436 void disconnectChar_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
438 void returnToPreviousSession_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
440 void setPioneerRight_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
442 void teleportOneCharacterToAnother_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
444 void teleportCharacterToNpc_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
446 void setUserCharCurrentSession_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
448 void reportLinkedSession_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
450 void reportUnlinkedSession_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
452 void giveRewardMessage_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
454 void reportNpcControl_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
456 void reportStopNpcControl_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
458 void subscribeCharacterInRingUniverse_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
460 void unsubscribeCharacterInRingUniverse_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
462 // declare one interceptor member of the skeleton
463 TInterceptor _Interceptor
;
465 // declare the interceptor forwarder as friend of this class
466 friend class NLNET::CInterceptorForwarder
< CCharacterControlItfSkel
>;
468 /////////////////////////////////////////////////////////////////
469 // WARNING : this is a generated file, don't change it !
470 /////////////////////////////////////////////////////////////////
472 // The reply of CServerAnimationItf::getStartParams. If reloadPos is true,
473 // the character will start from his current saved pos, otherwise the character
474 // will start at farPos. In all cases farPos is the respawn point to set.
475 virtual void setUserCharStartParams(NLNET::IModuleProxy
*sender
, uint32 charId
, const CFarPosition
&farPos
, bool reloadPos
, uint8 scenarioSeason
, R2::TUserRole role
) =0;
476 // A character enter an anim session as player
477 virtual void charJoinAnimSession(NLNET::IModuleProxy
*sender
, uint32 charId
, uint32 sessionId
) =0;
478 // A character leave an anim session as player
479 virtual void charLeaveAnimSession(NLNET::IModuleProxy
*sender
, uint32 charId
, uint32 sessionId
) =0;
480 // The reply of CServerAnimationItf::startAct telling to teleport user
481 virtual void setUserCharActPosition(NLNET::IModuleProxy
*sender
, uint32 charId
, const CFarPosition
&farPos
, uint8 season
) =0;
482 // A DSS to EGS signal that an anim session is started
483 virtual void animSessionStarted(NLNET::IModuleProxy
*sender
, TSessionId sessionId
, const TRunningScenarioInfo
&scenarioInfo
) =0;
484 // A DSS to EGS signal that an anim session is ended
485 virtual void animSessionEnded(NLNET::IModuleProxy
*sender
, TSessionId sessionId
, uint32 scenarioScore
, NLMISC::TTime timeTaken
) =0;
486 // A DSS Message to signal that a session is ended
487 virtual void scenarioEnded(NLNET::IModuleProxy
*sender
, TSessionId sessionId
) =0;
488 // A DSS Message to register mission item of a scenario
489 virtual void sendItemDescription(NLNET::IModuleProxy
*sender
, TSessionId sessionId
, const std::vector
<R2::TMissionItem
> &missionItem
) =0;
490 // AIS Message to activate a scenario generated easter egg
491 virtual void activateEasterEgg(NLNET::IModuleProxy
*sender
, uint32 easterEggId
, TSessionId scenarioId
, uint32 aiInstanceId
, const std::vector
<R2::TItemAndQuantity
> &items
, const CFarPosition
&pos
, const std::string
&name
, const std::string
&look
) =0;
492 // AIS Message to deactivate a scenario generated easter egg
493 virtual void deactivateEasterEgg(NLNET::IModuleProxy
*sender
, uint32 easterEggId
, TSessionId scenarioId
) =0;
494 // AIS Message to deactivate a multiple easterEgg scenario generated easter egg
495 virtual void deactivateEasterEggs(NLNET::IModuleProxy
*sender
, const std::set
<uint32
> &items
, TSessionId scenarioId
) =0;
496 // DSS message to ask info of the target of a player
497 virtual void sendCharTargetToDss(NLNET::IModuleProxy
*sender
, const NLMISC::CEntityId
&eid
, const std::vector
<std::string
> ¶ms
) =0;
498 // DSS message to ask the tp of a pioneer
499 virtual void onTpPositionAsked(NLNET::IModuleProxy
*sender
, const NLMISC::CEntityId
&eid
, float x
, float y
, float z
, uint8 season
, const R2::TR2TpInfos
&teleportInfos
) =0;
500 // DSS message to ask to disconnect a char
501 virtual void disconnectChar(NLNET::IModuleProxy
*sender
, uint32 charId
) =0;
502 // DSS message to ask the egs to return a player to mainland
503 virtual void returnToPreviousSession(NLNET::IModuleProxy
*sender
, uint32 charId
) =0;
504 // DSS message to ask the egs to set DM righ (aggro, visible, god)
505 virtual void setPioneerRight(NLNET::IModuleProxy
*sender
, uint32 charId
, bool isDM
) =0;
506 // DSS message to ask the egs to teleport a character to another character
507 virtual void teleportOneCharacterToAnother(NLNET::IModuleProxy
*sender
, uint32 sourceId
, uint32 destId
, uint8 season
) =0;
508 // DSS message to ask the egs to teleport a character to a npc
509 virtual void teleportCharacterToNpc(NLNET::IModuleProxy
*sender
, uint32 sourceId
, const NLMISC::CEntityId
&destEid
, uint8 season
) =0;
510 // DSS message to update the respawn point
511 virtual void setUserCharCurrentSession(NLNET::IModuleProxy
*sender
, uint32 charId
, TSessionId oldSessionId
, const CFarPosition
&respawnPoint
, R2::TUserRole role
) =0;
512 // DSS message to indicates to the egs that session may be linked
513 virtual void reportLinkedSession(NLNET::IModuleProxy
*sender
, TSessionId editionSession
, TSessionId animationSession
) =0;
514 // DSS message to indicates to the egs that linked session are no more linked
515 virtual void reportUnlinkedSession(NLNET::IModuleProxy
*sender
, TSessionId editionSession
, TSessionId animationSession
) =0;
516 // AIS Message to give some reward to the player
517 virtual void giveRewardMessage(NLNET::IModuleProxy
*sender
, TDataSetRow characterRowId
, TDataSetRow creatureRowId
, const std::string
&rewardText
, const std::string
&rareRewardText
, const std::string
&inventoryFullText
, const std::string
¬EnoughPointsText
) =0;
518 // AIS Message to indicates that a bot is being controled
519 virtual void reportNpcControl(NLNET::IModuleProxy
*sender
, const NLMISC::CEntityId
&playerEid
, const NLMISC::CEntityId
&botEid
) =0;
520 // AIS Message to indicates that a bot is stop being controled
521 virtual void reportStopNpcControl(NLNET::IModuleProxy
*sender
, const NLMISC::CEntityId
&playerEid
, const NLMISC::CEntityId
&botEid
) =0;
522 // DSS ask to put a character in the ring universe channel
523 // This is for editors and animator characters only
524 virtual void subscribeCharacterInRingUniverse(NLNET::IModuleProxy
*sender
, uint32 charId
) =0;
525 // DSS ask to remove a character from the ring universe channel
526 // This is for editors and animator characters only
527 virtual void unsubscribeCharacterInRingUniverse(NLNET::IModuleProxy
*sender
, uint32 charId
) =0;
532 /////////////////////////////////////////////////////////////////
533 // WARNING : this is a generated file, don't change it !
534 /////////////////////////////////////////////////////////////////
535 class CCharacterControlItfProxy
537 /// Smart pointer on the module proxy
538 NLNET::TModuleProxyPtr _ModuleProxy
;
540 // Pointer on the local module that implement the interface (if the proxy is for a local module)
541 NLNET::TModulePtr _LocalModule
;
542 // Direct pointer on the server implementation interface for collocated module
543 CCharacterControlItfSkel
*_LocalModuleSkel
;
547 CCharacterControlItfProxy(NLNET::IModuleProxy
*proxy
)
550 _ModuleProxy
= proxy
;
552 // initialize collocated servant interface
553 if (proxy
->getModuleDistance() == 0)
555 _LocalModule
= proxy
->getLocalModule();
556 nlassert(_LocalModule
!= NULL
);
557 CCharacterControlItfSkel::TInterceptor
*interceptor
= NULL
;
558 interceptor
= static_cast < NLNET::CModuleBase
* >(_LocalModule
.getPtr())->getInterceptor(interceptor
);
559 nlassert(interceptor
!= NULL
);
561 _LocalModuleSkel
= interceptor
->getParent();
562 nlassert(_LocalModuleSkel
!= NULL
);
565 _LocalModuleSkel
= 0;
568 virtual ~CCharacterControlItfProxy()
572 NLNET::IModuleProxy
*getModuleProxy()
577 // The reply of CServerAnimationItf::getStartParams. If reloadPos is true,
578 // the character will start from his current saved pos, otherwise the character
579 // will start at farPos. In all cases farPos is the respawn point to set.
580 void setUserCharStartParams(NLNET::IModule
*sender
, uint32 charId
, const CFarPosition
&farPos
, bool reloadPos
, uint8 scenarioSeason
, R2::TUserRole role
);
581 // A character enter an anim session as player
582 void charJoinAnimSession(NLNET::IModule
*sender
, uint32 charId
, uint32 sessionId
);
583 // A character leave an anim session as player
584 void charLeaveAnimSession(NLNET::IModule
*sender
, uint32 charId
, uint32 sessionId
);
585 // The reply of CServerAnimationItf::startAct telling to teleport user
586 void setUserCharActPosition(NLNET::IModule
*sender
, uint32 charId
, const CFarPosition
&farPos
, uint8 season
);
587 // A DSS to EGS signal that an anim session is started
588 void animSessionStarted(NLNET::IModule
*sender
, TSessionId sessionId
, const TRunningScenarioInfo
&scenarioInfo
);
589 // A DSS to EGS signal that an anim session is ended
590 void animSessionEnded(NLNET::IModule
*sender
, TSessionId sessionId
, uint32 scenarioScore
, NLMISC::TTime timeTaken
);
591 // A DSS Message to signal that a session is ended
592 void scenarioEnded(NLNET::IModule
*sender
, TSessionId sessionId
);
593 // A DSS Message to register mission item of a scenario
594 void sendItemDescription(NLNET::IModule
*sender
, TSessionId sessionId
, const std::vector
<R2::TMissionItem
> &missionItem
);
595 // AIS Message to activate a scenario generated easter egg
596 void activateEasterEgg(NLNET::IModule
*sender
, uint32 easterEggId
, TSessionId scenarioId
, uint32 aiInstanceId
, const std::vector
<R2::TItemAndQuantity
> &items
, const CFarPosition
&pos
, const std::string
&name
, const std::string
&look
);
597 // AIS Message to deactivate a scenario generated easter egg
598 void deactivateEasterEgg(NLNET::IModule
*sender
, uint32 easterEggId
, TSessionId scenarioId
);
599 // AIS Message to deactivate a multiple easterEgg scenario generated easter egg
600 void deactivateEasterEggs(NLNET::IModule
*sender
, const std::set
<uint32
> &items
, TSessionId scenarioId
);
601 // DSS message to ask info of the target of a player
602 void sendCharTargetToDss(NLNET::IModule
*sender
, const NLMISC::CEntityId
&eid
, const std::vector
<std::string
> ¶ms
);
603 // DSS message to ask the tp of a pioneer
604 void onTpPositionAsked(NLNET::IModule
*sender
, const NLMISC::CEntityId
&eid
, float x
, float y
, float z
, uint8 season
, const R2::TR2TpInfos
&teleportInfos
);
605 // DSS message to ask to disconnect a char
606 void disconnectChar(NLNET::IModule
*sender
, uint32 charId
);
607 // DSS message to ask the egs to return a player to mainland
608 void returnToPreviousSession(NLNET::IModule
*sender
, uint32 charId
);
609 // DSS message to ask the egs to set DM righ (aggro, visible, god)
610 void setPioneerRight(NLNET::IModule
*sender
, uint32 charId
, bool isDM
);
611 // DSS message to ask the egs to teleport a character to another character
612 void teleportOneCharacterToAnother(NLNET::IModule
*sender
, uint32 sourceId
, uint32 destId
, uint8 season
);
613 // DSS message to ask the egs to teleport a character to a npc
614 void teleportCharacterToNpc(NLNET::IModule
*sender
, uint32 sourceId
, const NLMISC::CEntityId
&destEid
, uint8 season
);
615 // DSS message to update the respawn point
616 void setUserCharCurrentSession(NLNET::IModule
*sender
, uint32 charId
, TSessionId oldSessionId
, const CFarPosition
&respawnPoint
, R2::TUserRole role
);
617 // DSS message to indicates to the egs that session may be linked
618 void reportLinkedSession(NLNET::IModule
*sender
, TSessionId editionSession
, TSessionId animationSession
);
619 // DSS message to indicates to the egs that linked session are no more linked
620 void reportUnlinkedSession(NLNET::IModule
*sender
, TSessionId editionSession
, TSessionId animationSession
);
621 // AIS Message to give some reward to the player
622 void giveRewardMessage(NLNET::IModule
*sender
, TDataSetRow characterRowId
, TDataSetRow creatureRowId
, const std::string
&rewardText
, const std::string
&rareRewardText
, const std::string
&inventoryFullText
, const std::string
¬EnoughPointsText
);
623 // AIS Message to indicates that a bot is being controled
624 void reportNpcControl(NLNET::IModule
*sender
, const NLMISC::CEntityId
&playerEid
, const NLMISC::CEntityId
&botEid
);
625 // AIS Message to indicates that a bot is stop being controled
626 void reportStopNpcControl(NLNET::IModule
*sender
, const NLMISC::CEntityId
&playerEid
, const NLMISC::CEntityId
&botEid
);
627 // DSS ask to put a character in the ring universe channel
628 // This is for editors and animator characters only
629 void subscribeCharacterInRingUniverse(NLNET::IModule
*sender
, uint32 charId
);
630 // DSS ask to remove a character from the ring universe channel
631 // This is for editors and animator characters only
632 void unsubscribeCharacterInRingUniverse(NLNET::IModule
*sender
, uint32 charId
);
634 // Message serializer. Return the message received in reference for easier integration
635 static const NLNET::CMessage
&buildMessageFor_setUserCharStartParams(NLNET::CMessage
&__message
, uint32 charId
, const CFarPosition
&farPos
, bool reloadPos
, uint8 scenarioSeason
, R2::TUserRole role
);
637 // Message serializer. Return the message received in reference for easier integration
638 static const NLNET::CMessage
&buildMessageFor_charJoinAnimSession(NLNET::CMessage
&__message
, uint32 charId
, uint32 sessionId
);
640 // Message serializer. Return the message received in reference for easier integration
641 static const NLNET::CMessage
&buildMessageFor_charLeaveAnimSession(NLNET::CMessage
&__message
, uint32 charId
, uint32 sessionId
);
643 // Message serializer. Return the message received in reference for easier integration
644 static const NLNET::CMessage
&buildMessageFor_setUserCharActPosition(NLNET::CMessage
&__message
, uint32 charId
, const CFarPosition
&farPos
, uint8 season
);
646 // Message serializer. Return the message received in reference for easier integration
647 static const NLNET::CMessage
&buildMessageFor_animSessionStarted(NLNET::CMessage
&__message
, TSessionId sessionId
, const TRunningScenarioInfo
&scenarioInfo
);
649 // Message serializer. Return the message received in reference for easier integration
650 static const NLNET::CMessage
&buildMessageFor_animSessionEnded(NLNET::CMessage
&__message
, TSessionId sessionId
, uint32 scenarioScore
, NLMISC::TTime timeTaken
);
652 // Message serializer. Return the message received in reference for easier integration
653 static const NLNET::CMessage
&buildMessageFor_scenarioEnded(NLNET::CMessage
&__message
, TSessionId sessionId
);
655 // Message serializer. Return the message received in reference for easier integration
656 static const NLNET::CMessage
&buildMessageFor_sendItemDescription(NLNET::CMessage
&__message
, TSessionId sessionId
, const std::vector
<R2::TMissionItem
> &missionItem
);
658 // Message serializer. Return the message received in reference for easier integration
659 static const NLNET::CMessage
&buildMessageFor_activateEasterEgg(NLNET::CMessage
&__message
, uint32 easterEggId
, TSessionId scenarioId
, uint32 aiInstanceId
, const std::vector
<R2::TItemAndQuantity
> &items
, const CFarPosition
&pos
, const std::string
&name
, const std::string
&look
);
661 // Message serializer. Return the message received in reference for easier integration
662 static const NLNET::CMessage
&buildMessageFor_deactivateEasterEgg(NLNET::CMessage
&__message
, uint32 easterEggId
, TSessionId scenarioId
);
664 // Message serializer. Return the message received in reference for easier integration
665 static const NLNET::CMessage
&buildMessageFor_deactivateEasterEggs(NLNET::CMessage
&__message
, const std::set
<uint32
> &items
, TSessionId scenarioId
);
667 // Message serializer. Return the message received in reference for easier integration
668 static const NLNET::CMessage
&buildMessageFor_sendCharTargetToDss(NLNET::CMessage
&__message
, const NLMISC::CEntityId
&eid
, const std::vector
<std::string
> ¶ms
);
670 // Message serializer. Return the message received in reference for easier integration
671 static const NLNET::CMessage
&buildMessageFor_onTpPositionAsked(NLNET::CMessage
&__message
, const NLMISC::CEntityId
&eid
, float x
, float y
, float z
, uint8 season
, const R2::TR2TpInfos
&teleportInfos
);
673 // Message serializer. Return the message received in reference for easier integration
674 static const NLNET::CMessage
&buildMessageFor_disconnectChar(NLNET::CMessage
&__message
, uint32 charId
);
676 // Message serializer. Return the message received in reference for easier integration
677 static const NLNET::CMessage
&buildMessageFor_returnToPreviousSession(NLNET::CMessage
&__message
, uint32 charId
);
679 // Message serializer. Return the message received in reference for easier integration
680 static const NLNET::CMessage
&buildMessageFor_setPioneerRight(NLNET::CMessage
&__message
, uint32 charId
, bool isDM
);
682 // Message serializer. Return the message received in reference for easier integration
683 static const NLNET::CMessage
&buildMessageFor_teleportOneCharacterToAnother(NLNET::CMessage
&__message
, uint32 sourceId
, uint32 destId
, uint8 season
);
685 // Message serializer. Return the message received in reference for easier integration
686 static const NLNET::CMessage
&buildMessageFor_teleportCharacterToNpc(NLNET::CMessage
&__message
, uint32 sourceId
, const NLMISC::CEntityId
&destEid
, uint8 season
);
688 // Message serializer. Return the message received in reference for easier integration
689 static const NLNET::CMessage
&buildMessageFor_setUserCharCurrentSession(NLNET::CMessage
&__message
, uint32 charId
, TSessionId oldSessionId
, const CFarPosition
&respawnPoint
, R2::TUserRole role
);
691 // Message serializer. Return the message received in reference for easier integration
692 static const NLNET::CMessage
&buildMessageFor_reportLinkedSession(NLNET::CMessage
&__message
, TSessionId editionSession
, TSessionId animationSession
);
694 // Message serializer. Return the message received in reference for easier integration
695 static const NLNET::CMessage
&buildMessageFor_reportUnlinkedSession(NLNET::CMessage
&__message
, TSessionId editionSession
, TSessionId animationSession
);
697 // Message serializer. Return the message received in reference for easier integration
698 static const NLNET::CMessage
&buildMessageFor_giveRewardMessage(NLNET::CMessage
&__message
, TDataSetRow characterRowId
, TDataSetRow creatureRowId
, const std::string
&rewardText
, const std::string
&rareRewardText
, const std::string
&inventoryFullText
, const std::string
¬EnoughPointsText
);
700 // Message serializer. Return the message received in reference for easier integration
701 static const NLNET::CMessage
&buildMessageFor_reportNpcControl(NLNET::CMessage
&__message
, const NLMISC::CEntityId
&playerEid
, const NLMISC::CEntityId
&botEid
);
703 // Message serializer. Return the message received in reference for easier integration
704 static const NLNET::CMessage
&buildMessageFor_reportStopNpcControl(NLNET::CMessage
&__message
, const NLMISC::CEntityId
&playerEid
, const NLMISC::CEntityId
&botEid
);
706 // Message serializer. Return the message received in reference for easier integration
707 static const NLNET::CMessage
&buildMessageFor_subscribeCharacterInRingUniverse(NLNET::CMessage
&__message
, uint32 charId
);
709 // Message serializer. Return the message received in reference for easier integration
710 static const NLNET::CMessage
&buildMessageFor_unsubscribeCharacterInRingUniverse(NLNET::CMessage
&__message
, uint32 charId
);
717 /////////////////////////////////////////////////////////////////
718 // WARNING : this is a generated file, don't change it !
719 /////////////////////////////////////////////////////////////////
720 class CAisControlItfSkel
723 /// the interceptor type
724 typedef NLNET::CInterceptorForwarder
< CAisControlItfSkel
> TInterceptor
;
728 // do early run time check for message table
729 getMessageHandlers();
731 virtual ~CAisControlItfSkel()
735 void init(NLNET::IModule
*module
)
737 _Interceptor
.init(this, module
);
740 // unused interceptors
741 std::string
fwdBuildModuleManifest() const { return std::string(); }
742 void fwdOnModuleUp(NLNET::IModuleProxy
* /* moduleProxy */) {}
743 void fwdOnModuleDown(NLNET::IModuleProxy
* /* moduleProxy */) {}
744 void fwdOnModuleSecurityChange(NLNET::IModuleProxy
* /* moduleProxy */) {}
746 // process module message interceptor
747 bool fwdOnProcessModuleMessage(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&message
);
750 typedef void (CAisControlItfSkel::*TMessageHandler
)(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&message
);
751 typedef std::map
<std::string
, TMessageHandler
> TMessageHandlerMap
;
753 const TMessageHandlerMap
&getMessageHandlers() const;
756 // declare one interceptor member of the skeleton
757 TInterceptor _Interceptor
;
759 // declare the interceptor forwarder as friend of this class
760 friend class NLNET::CInterceptorForwarder
< CAisControlItfSkel
>;
762 /////////////////////////////////////////////////////////////////
763 // WARNING : this is a generated file, don't change it !
764 /////////////////////////////////////////////////////////////////
770 /////////////////////////////////////////////////////////////////
771 // WARNING : this is a generated file, don't change it !
772 /////////////////////////////////////////////////////////////////
773 class CAisControlItfProxy
775 /// Smart pointer on the module proxy
776 NLNET::TModuleProxyPtr _ModuleProxy
;
778 // Pointer on the local module that implement the interface (if the proxy is for a local module)
779 NLNET::TModulePtr _LocalModule
;
780 // Direct pointer on the server implementation interface for collocated module
781 CAisControlItfSkel
*_LocalModuleSkel
;
785 CAisControlItfProxy(NLNET::IModuleProxy
*proxy
)
788 _ModuleProxy
= proxy
;
790 // initialize collocated servant interface
791 if (proxy
->getModuleDistance() == 0)
793 _LocalModule
= proxy
->getLocalModule();
794 nlassert(_LocalModule
!= NULL
);
795 CAisControlItfSkel::TInterceptor
*interceptor
= NULL
;
796 interceptor
= static_cast < NLNET::CModuleBase
* >(_LocalModule
.getPtr())->getInterceptor(interceptor
);
797 nlassert(interceptor
!= NULL
);
799 _LocalModuleSkel
= interceptor
->getParent();
800 nlassert(_LocalModuleSkel
!= NULL
);
803 _LocalModuleSkel
= 0;
806 virtual ~CAisControlItfProxy()
810 NLNET::IModuleProxy
*getModuleProxy()
820 // Info about a connected character, used for block tranfert
821 /////////////////////////////////////////////////////////////////
822 // WARNING : this is a generated file, don't change it !
823 /////////////////////////////////////////////////////////////////
824 class TR2SbmSessionInfo
828 TSessionId _SessionId
;
829 // the date of last disconnection of the last character
833 TSessionId
getSessionId() const
838 void setSessionId(TSessionId value
)
844 // the date of last disconnection of the last character
845 uint32
getDateEmpty() const
850 void setDateEmpty(uint32 value
)
857 bool operator == (const TR2SbmSessionInfo
&other
) const
859 return _SessionId
== other
._SessionId
860 && _DateEmpty
== other
._DateEmpty
;
870 void serial(NLMISC::IStream
&s
)
872 s
.serial(_SessionId
);
873 s
.serial(_DateEmpty
);
885 /////////////////////////////////////////////////////////////////
886 // WARNING : this is a generated file, don't change it !
887 /////////////////////////////////////////////////////////////////
888 class CR2SessionBackupModuleItfSkel
891 /// the interceptor type
892 typedef NLNET::CInterceptorForwarder
< CR2SessionBackupModuleItfSkel
> TInterceptor
;
894 CR2SessionBackupModuleItfSkel()
896 // do early run time check for message table
897 getMessageHandlers();
899 virtual ~CR2SessionBackupModuleItfSkel()
903 void init(NLNET::IModule
*module
)
905 _Interceptor
.init(this, module
);
908 // unused interceptors
909 std::string
fwdBuildModuleManifest() const { return std::string(); }
910 void fwdOnModuleUp(NLNET::IModuleProxy
* /* moduleProxy */) {}
911 void fwdOnModuleDown(NLNET::IModuleProxy
* /* moduleProxy */) {}
912 void fwdOnModuleSecurityChange(NLNET::IModuleProxy
* /* moduleProxy */) {}
914 // process module message interceptor
915 bool fwdOnProcessModuleMessage(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&message
);
918 typedef void (CR2SessionBackupModuleItfSkel::*TMessageHandler
)(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&message
);
919 typedef std::map
<std::string
, TMessageHandler
> TMessageHandlerMap
;
921 const TMessageHandlerMap
&getMessageHandlers() const;
924 void reportDeletedSessions_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
926 void reportHibernatedSessions_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
928 void reportSavedSessions_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
930 void registerDss_skel(NLNET::IModuleProxy
*sender
, const NLNET::CMessage
&__message
);
932 // declare one interceptor member of the skeleton
933 TInterceptor _Interceptor
;
935 // declare the interceptor forwarder as friend of this class
936 friend class NLNET::CInterceptorForwarder
< CR2SessionBackupModuleItfSkel
>;
938 /////////////////////////////////////////////////////////////////
939 // WARNING : this is a generated file, don't change it !
940 /////////////////////////////////////////////////////////////////
942 // DSS message to report session backup that have been deleteed
943 virtual void reportDeletedSessions(NLNET::IModuleProxy
*sender
, const std::vector
<TSessionId
> &sessionIds
) =0;
944 // DSS message to report session backup that have been hibernated
945 virtual void reportHibernatedSessions(NLNET::IModuleProxy
*sender
, const std::vector
<TSessionId
> &sessionIds
) =0;
946 // DSS message to report session backup that have been deleteed
947 virtual void reportSavedSessions(NLNET::IModuleProxy
*sender
, const std::vector
< TR2SbmSessionInfo
> &sessionInfos
) =0;
948 // DSS message to register itself to the R2SBM
949 virtual void registerDss(NLNET::IModuleProxy
*sender
, TShardId shardId
) =0;
954 /////////////////////////////////////////////////////////////////
955 // WARNING : this is a generated file, don't change it !
956 /////////////////////////////////////////////////////////////////
957 class CR2SessionBackupModuleItfProxy
959 /// Smart pointer on the module proxy
960 NLNET::TModuleProxyPtr _ModuleProxy
;
962 // Pointer on the local module that implement the interface (if the proxy is for a local module)
963 NLNET::TModulePtr _LocalModule
;
964 // Direct pointer on the server implementation interface for collocated module
965 CR2SessionBackupModuleItfSkel
*_LocalModuleSkel
;
969 CR2SessionBackupModuleItfProxy(NLNET::IModuleProxy
*proxy
)
972 _ModuleProxy
= proxy
;
974 // initialize collocated servant interface
975 if (proxy
->getModuleDistance() == 0)
977 _LocalModule
= proxy
->getLocalModule();
978 nlassert(_LocalModule
!= NULL
);
979 CR2SessionBackupModuleItfSkel::TInterceptor
*interceptor
= NULL
;
980 interceptor
= static_cast < NLNET::CModuleBase
* >(_LocalModule
.getPtr())->getInterceptor(interceptor
);
981 nlassert(interceptor
!= NULL
);
983 _LocalModuleSkel
= interceptor
->getParent();
984 nlassert(_LocalModuleSkel
!= NULL
);
987 _LocalModuleSkel
= 0;
990 virtual ~CR2SessionBackupModuleItfProxy()
994 NLNET::IModuleProxy
*getModuleProxy()
999 // DSS message to report session backup that have been deleteed
1000 void reportDeletedSessions(NLNET::IModule
*sender
, const std::vector
<TSessionId
> &sessionIds
);
1001 // DSS message to report session backup that have been hibernated
1002 void reportHibernatedSessions(NLNET::IModule
*sender
, const std::vector
<TSessionId
> &sessionIds
);
1003 // DSS message to report session backup that have been deleteed
1004 void reportSavedSessions(NLNET::IModule
*sender
, const std::vector
< TR2SbmSessionInfo
> &sessionInfos
);
1005 // DSS message to register itself to the R2SBM
1006 void registerDss(NLNET::IModule
*sender
, TShardId shardId
);
1008 // Message serializer. Return the message received in reference for easier integration
1009 static const NLNET::CMessage
&buildMessageFor_reportDeletedSessions(NLNET::CMessage
&__message
, const std::vector
<TSessionId
> &sessionIds
);
1011 // Message serializer. Return the message received in reference for easier integration
1012 static const NLNET::CMessage
&buildMessageFor_reportHibernatedSessions(NLNET::CMessage
&__message
, const std::vector
<TSessionId
> &sessionIds
);
1014 // Message serializer. Return the message received in reference for easier integration
1015 static const NLNET::CMessage
&buildMessageFor_reportSavedSessions(NLNET::CMessage
&__message
, const std::vector
< TR2SbmSessionInfo
> &sessionInfos
);
1017 // Message serializer. Return the message received in reference for easier integration
1018 static const NLNET::CMessage
&buildMessageFor_registerDss(NLNET::CMessage
&__message
, TShardId shardId
);