Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / ryzom / common / src / game_share / r2_share_itf.h
blob924183fa41db12064aa7070c13058604fba1bcbe
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
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.
8 //
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_SHARE_ITF
22 #define R2_SHARE_ITF
23 #include "nel/misc/types_nl.h"
24 #include <memory>
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/object.h"
35 #include "nel/misc/md5.h"
37 #include "game_share/r2_types.h"
39 namespace R2
42 class TRunningScenarioInfo;
44 class TCharMappedInfo;
48 struct TSessionLevel
50 enum TValues
52 sl_a = 1,
53 sl_b,
54 sl_c,
55 sl_d,
56 sl_e,
57 sl_f,
58 /// the highest valid value in the enum
59 last_enum_item = sl_f,
60 /// a value equal to the last enum item +1
61 end_of_enum,
63 invalid_val,
65 /// Number of enumerated values
66 nb_enum_items = 6
69 /// Index table to convert enum value to linear index table
70 const std::map<TValues, uint32> &getIndexTable() const
72 static std::map<TValues, uint32> indexTable;
73 static bool init = false;
74 if (!init)
76 // fill the index table
77 indexTable.insert(std::make_pair(sl_a, 0));
78 indexTable.insert(std::make_pair(sl_b, 1));
79 indexTable.insert(std::make_pair(sl_c, 2));
80 indexTable.insert(std::make_pair(sl_d, 3));
81 indexTable.insert(std::make_pair(sl_e, 4));
82 indexTable.insert(std::make_pair(sl_f, 5));
84 init = true;
87 return indexTable;
91 static const NLMISC::CStringConversion<TValues> &getConversionTable()
93 NL_BEGIN_STRING_CONVERSION_TABLE(TValues)
94 NL_STRING_CONVERSION_TABLE_ENTRY(sl_a)
95 NL_STRING_CONVERSION_TABLE_ENTRY(sl_b)
96 NL_STRING_CONVERSION_TABLE_ENTRY(sl_c)
97 NL_STRING_CONVERSION_TABLE_ENTRY(sl_d)
98 NL_STRING_CONVERSION_TABLE_ENTRY(sl_e)
99 NL_STRING_CONVERSION_TABLE_ENTRY(sl_f)
100 NL_STRING_CONVERSION_TABLE_ENTRY(invalid_val)
102 static NLMISC::CStringConversion<TValues>
103 conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
104 / sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
106 return conversionTable;
109 TValues _Value;
111 public:
112 TSessionLevel()
113 : _Value(invalid_val)
116 TSessionLevel(TValues value)
117 : _Value(value)
121 TSessionLevel(const std::string &str)
123 _Value = getConversionTable().fromString(str);
126 void serial(NLMISC::IStream &s)
128 s.serialEnum(_Value);
131 bool operator == (const TSessionLevel &other) const
133 return _Value == other._Value;
135 bool operator != (const TSessionLevel &other) const
137 return ! (_Value == other._Value);
139 bool operator < (const TSessionLevel &other) const
141 return _Value < other._Value;
144 bool operator <= (const TSessionLevel &other) const
146 return _Value <= other._Value;
149 bool operator > (const TSessionLevel &other) const
151 return !(_Value <= other._Value);
153 bool operator >= (const TSessionLevel &other) const
155 return !(_Value < other._Value);
158 const std::string &toString() const
160 return getConversionTable().toString(_Value);
162 static const std::string &toString(TValues value)
164 return getConversionTable().toString(value);
167 TValues getValue() const
169 return _Value;
172 // return true if the actual value of the enum is valid, otherwise false
173 bool isValid()
175 if (_Value == invalid_val)
176 return false;
178 // not invalid, check other enum value
179 return getConversionTable().isValid(_Value);
183 uint32 asIndex()
185 std::map<TValues, uint32>::const_iterator it(getIndexTable().find(_Value));
186 nlassert(it != getIndexTable().end());
187 return it->second;
190 public:
191 void fromCharacterLevel(uint32 level)
193 if (level < 21)
194 _Value = sl_a; // 0..20
195 else if (level < 51)
196 _Value = sl_b; // 21..50
197 else if (level < 101)
198 _Value = sl_c; // 51..100
199 else if (level < 151)
200 _Value = sl_d; // 101..150
201 else if (level < 201)
202 _Value = sl_e; // 151..200
203 else
204 _Value = sl_f; // 201..oo
207 void fromSkillName(const std::string &skillName)
209 // we considere the length of the skill name to be proportional to the level
210 if (skillName.size() < 2)
212 // skill name too short
213 _Value = invalid_val;
215 uint32 size = (uint32)skillName.size()-1;
216 if (size < end_of_enum)
217 _Value = TValues(size);
218 else
219 // max the level
220 _Value = sl_f;
223 // return a value corresponding to the top of the game level range for the given value
224 uint32 asLevel()
226 switch (_Value)
228 case sl_a: return 20;
229 case sl_b: return 50;
230 case sl_c: return 100;
231 case sl_d: return 150;
232 case sl_e: return 200;
233 case sl_f: return 250;
234 default: BOMB("Invalid value being converted to level - returning 1",return 1);
239 /////////////////////////////////////////////////////////////////
240 // WARNING : this is a generated file, don't change it !
241 /////////////////////////////////////////////////////////////////
242 class TRunningScenarioInfo
244 protected:
246 NLMISC::CHashKeyMD5 _ScenarioKey;
248 std::string _ScenarioTitle;
250 std::string _ScenarioDesc;
252 TSessionLevel _SessionLevel;
254 std::string _ScenarioAuthorName;
256 uint32 _SessionAnimatorCharId;
258 bool _DMLess;
260 std::string _MissionTag;
261 public:
263 const NLMISC::CHashKeyMD5 &getScenarioKey() const
265 return _ScenarioKey;
268 NLMISC::CHashKeyMD5 &getScenarioKey()
270 return _ScenarioKey;
274 void setScenarioKey(const NLMISC::CHashKeyMD5 &value)
278 _ScenarioKey = value;
283 const std::string &getScenarioTitle() const
285 return _ScenarioTitle;
288 std::string &getScenarioTitle()
290 return _ScenarioTitle;
294 void setScenarioTitle(const std::string &value)
298 _ScenarioTitle = value;
303 const std::string &getScenarioDesc() const
305 return _ScenarioDesc;
308 std::string &getScenarioDesc()
310 return _ScenarioDesc;
314 void setScenarioDesc(const std::string &value)
318 _ScenarioDesc = value;
323 TSessionLevel getSessionLevel() const
325 return _SessionLevel;
328 void setSessionLevel(TSessionLevel value)
331 _SessionLevel = value;
335 const std::string &getScenarioAuthorName() const
337 return _ScenarioAuthorName;
340 std::string &getScenarioAuthorName()
342 return _ScenarioAuthorName;
346 void setScenarioAuthorName(const std::string &value)
350 _ScenarioAuthorName = value;
355 uint32 getSessionAnimatorCharId() const
357 return _SessionAnimatorCharId;
360 void setSessionAnimatorCharId(uint32 value)
363 _SessionAnimatorCharId = value;
367 bool getDMLess() const
369 return _DMLess;
372 void setDMLess(bool value)
375 _DMLess = value;
379 const std::string &getMissionTag() const
381 return _MissionTag;
384 std::string &getMissionTag()
386 return _MissionTag;
390 void setMissionTag(const std::string &value)
394 _MissionTag = value;
399 bool operator == (const TRunningScenarioInfo &other) const
401 return _ScenarioKey == other._ScenarioKey
402 && _ScenarioTitle == other._ScenarioTitle
403 && _ScenarioDesc == other._ScenarioDesc
404 && _SessionLevel == other._SessionLevel
405 && _ScenarioAuthorName == other._ScenarioAuthorName
406 && _SessionAnimatorCharId == other._SessionAnimatorCharId
407 && _DMLess == other._DMLess
408 && _MissionTag == other._MissionTag;
412 // constructor
413 TRunningScenarioInfo()
418 void serial(NLMISC::IStream &s)
420 s.serial(_ScenarioKey);
421 s.serial(_ScenarioTitle);
422 s.serial(_ScenarioDesc);
423 s.serial(_SessionLevel);
424 s.serial(_ScenarioAuthorName);
425 s.serial(_SessionAnimatorCharId);
426 s.serial(_DMLess);
427 s.serial(_MissionTag);
432 private:
440 struct TPioneerRight
442 enum TValues
444 Tester = 0,
446 /// the highest valid value in the enum
447 last_enum_item = DM,
448 /// a value equal to the last enum item +1
449 end_of_enum,
451 invalid_val,
453 /// Number of enumerated values
454 nb_enum_items = 2
457 /// Index table to convert enum value to linear index table
458 const std::map<TValues, uint32> &getIndexTable() const
460 static std::map<TValues, uint32> indexTable;
461 static bool init = false;
462 if (!init)
464 // fill the index table
465 indexTable.insert(std::make_pair(Tester, 0));
466 indexTable.insert(std::make_pair(DM, 1));
468 init = true;
471 return indexTable;
475 static const NLMISC::CStringConversion<TValues> &getConversionTable()
477 NL_BEGIN_STRING_CONVERSION_TABLE(TValues)
478 NL_STRING_CONVERSION_TABLE_ENTRY(Tester)
479 NL_STRING_CONVERSION_TABLE_ENTRY(DM)
480 NL_STRING_CONVERSION_TABLE_ENTRY(invalid_val)
482 static NLMISC::CStringConversion<TValues>
483 conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
484 / sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
486 return conversionTable;
489 TValues _Value;
491 public:
492 TPioneerRight()
493 : _Value(invalid_val)
496 TPioneerRight(TValues value)
497 : _Value(value)
501 TPioneerRight(const std::string &str)
503 _Value = getConversionTable().fromString(str);
506 void serial(NLMISC::IStream &s)
508 s.serialEnum(_Value);
511 bool operator == (const TPioneerRight &other) const
513 return _Value == other._Value;
515 bool operator != (const TPioneerRight &other) const
517 return ! (_Value == other._Value);
519 bool operator < (const TPioneerRight &other) const
521 return _Value < other._Value;
524 bool operator <= (const TPioneerRight &other) const
526 return _Value <= other._Value;
529 bool operator > (const TPioneerRight &other) const
531 return !(_Value <= other._Value);
533 bool operator >= (const TPioneerRight &other) const
535 return !(_Value < other._Value);
538 const std::string &toString() const
540 return getConversionTable().toString(_Value);
542 static const std::string &toString(TValues value)
544 return getConversionTable().toString(value);
547 TValues getValue() const
549 return _Value;
552 // return true if the actual value of the enum is valid, otherwise false
553 bool isValid()
555 if (_Value == invalid_val)
556 return false;
558 // not invalid, check other enum value
559 return getConversionTable().isValid(_Value);
563 uint32 asIndex()
565 std::map<TValues, uint32>::const_iterator it(getIndexTable().find(_Value));
566 nlassert(it != getIndexTable().end());
567 return it->second;
572 /////////////////////////////////////////////////////////////////
573 // WARNING : this is a generated file, don't change it !
574 /////////////////////////////////////////////////////////////////
575 class CShareServerAnimationItfSkel
577 public:
578 /// the interceptor type
579 typedef NLNET::CInterceptorForwarder < CShareServerAnimationItfSkel> TInterceptor;
580 protected:
581 CShareServerAnimationItfSkel()
583 // do early run time check for message table
584 getMessageHandlers();
586 virtual ~CShareServerAnimationItfSkel()
590 void init(NLNET::IModule *module)
592 _Interceptor.init(this, module);
595 // unused interceptors
596 std::string fwdBuildModuleManifest() const { return std::string(); }
597 void fwdOnModuleUp(NLNET::IModuleProxy * /* moduleProxy */) {}
598 void fwdOnModuleDown(NLNET::IModuleProxy * /* moduleProxy */) {}
599 void fwdOnModuleSecurityChange(NLNET::IModuleProxy * /* moduleProxy */) {}
601 // process module message interceptor
602 bool fwdOnProcessModuleMessage(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
603 private:
605 typedef void (CShareServerAnimationItfSkel::*TMessageHandler)(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
606 typedef std::map<std::string, TMessageHandler> TMessageHandlerMap;
608 const TMessageHandlerMap &getMessageHandlers() const;
611 void connectAnimationModePlay_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
613 void askMissionItemsDescription_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
615 void askActPositionDescriptions_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
617 void askUserTriggerDescriptions_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
619 void onUserTriggerTriggered_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
621 void onDssTarget_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
623 // declare one interceptor member of the skeleton
624 TInterceptor _Interceptor;
626 // declare the interceptor forwarder as friend of this class
627 friend class NLNET::CInterceptorForwarder < CShareServerAnimationItfSkel>;
628 public:
629 /////////////////////////////////////////////////////////////////
630 // WARNING : this is a generated file, don't change it !
631 /////////////////////////////////////////////////////////////////
633 // request the connection to play mode in an animation session
634 virtual void connectAnimationModePlay(NLNET::IModuleProxy *sender) =0;
635 // A client Message to register mission item of a scenario
636 virtual void askMissionItemsDescription(NLNET::IModuleProxy *sender) =0;
637 // A client Message to update client Act Position Description
638 virtual void askActPositionDescriptions(NLNET::IModuleProxy *sender) =0;
639 // A client Message to update client User Trigger Description
640 virtual void askUserTriggerDescriptions(NLNET::IModuleProxy *sender) =0;
641 // client wants to trigger an user trigger
642 virtual void onUserTriggerTriggered(NLNET::IModuleProxy *sender, uint32 actId, uint32 triggerId) =0;
643 // client wants to execute a dm action on its target
644 virtual void onDssTarget(NLNET::IModuleProxy *sender, const std::vector<std::string> &args) =0;
649 /////////////////////////////////////////////////////////////////
650 // WARNING : this is a generated file, don't change it !
651 /////////////////////////////////////////////////////////////////
652 class CShareServerAnimationItfProxy
654 /// Smart pointer on the module proxy
655 NLNET::TModuleProxyPtr _ModuleProxy;
657 // Pointer on the local module that implement the interface (if the proxy is for a local module)
658 NLNET::TModulePtr _LocalModule;
659 // Direct pointer on the server implementation interface for collocated module
660 CShareServerAnimationItfSkel *_LocalModuleSkel;
663 public:
664 CShareServerAnimationItfProxy(NLNET::IModuleProxy *proxy)
666 nlassert(proxy->getModuleClassName() == "ServerAnimationModule");
667 _ModuleProxy = proxy;
669 // initialize collocated servant interface
670 if (proxy->getModuleDistance() == 0)
672 _LocalModule = proxy->getLocalModule();
673 nlassert(_LocalModule != NULL);
674 CShareServerAnimationItfSkel::TInterceptor *interceptor = NULL;
675 interceptor = static_cast < NLNET::CModuleBase* >(_LocalModule.getPtr())->getInterceptor(interceptor);
676 nlassert(interceptor != NULL);
678 _LocalModuleSkel = interceptor->getParent();
679 nlassert(_LocalModuleSkel != NULL);
681 else
682 _LocalModuleSkel = 0;
685 virtual ~CShareServerAnimationItfProxy()
689 NLNET::IModuleProxy *getModuleProxy()
691 return _ModuleProxy;
694 // request the connection to play mode in an animation session
695 void connectAnimationModePlay(NLNET::IModule *sender);
696 // A client Message to register mission item of a scenario
697 void askMissionItemsDescription(NLNET::IModule *sender);
698 // A client Message to update client Act Position Description
699 void askActPositionDescriptions(NLNET::IModule *sender);
700 // A client Message to update client User Trigger Description
701 void askUserTriggerDescriptions(NLNET::IModule *sender);
702 // client wants to trigger an user trigger
703 void onUserTriggerTriggered(NLNET::IModule *sender, uint32 actId, uint32 triggerId);
704 // client wants to execute a dm action on its target
705 void onDssTarget(NLNET::IModule *sender, const std::vector<std::string> &args);
707 // Message serializer. Return the message received in reference for easier integration
708 static const NLNET::CMessage &buildMessageFor_connectAnimationModePlay(NLNET::CMessage &__message);
710 // Message serializer. Return the message received in reference for easier integration
711 static const NLNET::CMessage &buildMessageFor_askMissionItemsDescription(NLNET::CMessage &__message);
713 // Message serializer. Return the message received in reference for easier integration
714 static const NLNET::CMessage &buildMessageFor_askActPositionDescriptions(NLNET::CMessage &__message);
716 // Message serializer. Return the message received in reference for easier integration
717 static const NLNET::CMessage &buildMessageFor_askUserTriggerDescriptions(NLNET::CMessage &__message);
719 // Message serializer. Return the message received in reference for easier integration
720 static const NLNET::CMessage &buildMessageFor_onUserTriggerTriggered(NLNET::CMessage &__message, uint32 actId, uint32 triggerId);
722 // Message serializer. Return the message received in reference for easier integration
723 static const NLNET::CMessage &buildMessageFor_onDssTarget(NLNET::CMessage &__message, const std::vector<std::string> &args);
730 /////////////////////////////////////////////////////////////////
731 // WARNING : this is a generated file, don't change it !
732 /////////////////////////////////////////////////////////////////
733 class CShareServerEditionItfSkel
735 public:
736 /// the interceptor type
737 typedef NLNET::CInterceptorForwarder < CShareServerEditionItfSkel> TInterceptor;
738 protected:
739 CShareServerEditionItfSkel()
741 // do early run time check for message table
742 getMessageHandlers();
744 virtual ~CShareServerEditionItfSkel()
748 void init(NLNET::IModule *module)
750 _Interceptor.init(this, module);
753 // unused interceptors
754 std::string fwdBuildModuleManifest() const { return std::string(); }
755 void fwdOnModuleUp(NLNET::IModuleProxy * /* moduleProxy */) {}
756 void fwdOnModuleDown(NLNET::IModuleProxy * /* moduleProxy */) {}
757 void fwdOnModuleSecurityChange(NLNET::IModuleProxy * /* moduleProxy */) {}
759 // process module message interceptor
760 bool fwdOnProcessModuleMessage(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
761 private:
763 typedef void (CShareServerEditionItfSkel::*TMessageHandler)(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
764 typedef std::map<std::string, TMessageHandler> TMessageHandlerMap;
766 const TMessageHandlerMap &getMessageHandlers() const;
769 void startingScenario_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
771 void startScenario_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
773 void advConnACK_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
775 void onUserComponentRegistered_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
777 void onUserComponentDownloading_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
779 void onScenarioUploadAsked_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
781 void onNodeSetAsked_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
783 void onNodeInsertAsked_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
785 void onNodeEraseAsked_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
787 void onNodeMoveAsked_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
789 void onMapConnectionAsked_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
791 void onCharModeUpdateAsked_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
793 void onTpPositionAsked_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
795 void tpToEntryPoint_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
797 void setStartingAct_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
799 void onScenarioRingAccessUpdated_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
801 void saveScenarioFile_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
803 void loadScenarioFile_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
805 void saveUserComponentFile_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
807 void loadUserComponentFile_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
809 void teleportOneCharacterToAnother_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
811 void teleportWhileUploadingScenario_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
813 void multiPartMsgHead_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
815 void multiPartMsgBody_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
817 void multiPartMsgFoot_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
819 void forwardToDss_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
821 // declare one interceptor member of the skeleton
822 TInterceptor _Interceptor;
824 // declare the interceptor forwarder as friend of this class
825 friend class NLNET::CInterceptorForwarder < CShareServerEditionItfSkel>;
826 public:
827 /////////////////////////////////////////////////////////////////
828 // WARNING : this is a generated file, don't change it !
829 /////////////////////////////////////////////////////////////////
831 virtual void startingScenario(NLNET::IModuleProxy *sender) =0;
832 // Request the start of a test scenario
833 virtual void startScenario(NLNET::IModuleProxy *sender, bool ok, const TScenarioHeaderSerializer &header, const CObjectSerializerServer &data, uint32 startingAct) =0;
834 // Client has received the ADV_CONN message
835 virtual void advConnACK(NLNET::IModuleProxy *sender) =0;
836 // The client announce to the server that he has registered a component.
837 virtual void onUserComponentRegistered(NLNET::IModuleProxy *sender, const NLMISC::CHashKeyMD5 &md5) =0;
838 // The client announce to the server that he need a componennt so the server must uploading it.
839 virtual void onUserComponentDownloading(NLNET::IModuleProxy *sender, const NLMISC::CHashKeyMD5 &md5) =0;
840 // Upload the high level scenario.
841 virtual void onScenarioUploadAsked(NLNET::IModuleProxy *sender, uint32 msgId, const CObjectSerializerServer &hlScenario, bool mustBrodcast) =0;
842 // The client request to set a node on a hl scenario.
843 virtual void onNodeSetAsked(NLNET::IModuleProxy *sender, uint32 msgId, const std::string &instanceId, const std::string &attrName, const R2::CObjectSerializerServer &value) =0;
844 // The client request to insert a node on a hl scenario.
845 virtual void onNodeInsertAsked(NLNET::IModuleProxy *sender, uint32 msgId, const std::string &instanceId, const std::string &attrName, sint32 position, const std::string &key, const R2::CObjectSerializerServer &value) =0;
846 // The client request to erase a node on a hl scenario.
847 virtual void onNodeEraseAsked(NLNET::IModuleProxy *sender, uint32 msgId, const std::string &instanceId, const std::string &attrName, sint32 position) =0;
848 // The client request to move a node on a hl scenario.
849 virtual void onNodeMoveAsked(NLNET::IModuleProxy *sender, uint32 msgId, const std::string &instanceId1, const std::string &attrName1, sint32 position1, const std::string &instanceId2, const std::string &attrName2, sint32 position2) =0;
850 // Call by the client in order to download its current scenario (and tp).
851 virtual void onMapConnectionAsked(NLNET::IModuleProxy *sender, TSessionId scenarioId, bool updateHighLevel, bool mustTp, R2::TUserRole role) =0;
852 // Call by the client when he change its mode (Dm, Tester, Player)
853 virtual void onCharModeUpdateAsked(NLNET::IModuleProxy *sender, R2::TCharMode mode) =0;
854 // client wants to tp at a specific position (clicking in map)
855 virtual void onTpPositionAsked(NLNET::IModuleProxy *sender, float x, float y, float z) =0;
856 // Update the mode of the pioneer (DM/TEST).
857 virtual void tpToEntryPoint(NLNET::IModuleProxy *sender, uint32 actIndex) =0;
858 // Set the starting act of the scenario
859 virtual void setStartingAct(NLNET::IModuleProxy *sender, uint32 actIndex) =0;
860 // Update the ring access of a scenario.
861 virtual void onScenarioRingAccessUpdated(NLNET::IModuleProxy *sender, bool ok, const std::string &ringAccess, const std::string &errMsg) =0;
862 // a message to validate a file waiting to be saved
863 virtual void saveScenarioFile(NLNET::IModuleProxy *sender, const std::string &md5, const R2::TScenarioHeaderSerializer &header) =0;
864 // a message to validate a file waiting to be loaded
865 virtual void loadScenarioFile(NLNET::IModuleProxy *sender, const std::string &md5, const std::string &signature) =0;
866 // a message to validate a user component file waiting to be saved
867 virtual void saveUserComponentFile(NLNET::IModuleProxy *sender, const std::string &md5, const R2::TScenarioHeaderSerializer &header) =0;
868 // a message to validate a user component file waiting to be loaded
869 virtual void loadUserComponentFile(NLNET::IModuleProxy *sender, const std::string &md5, const std::string &signature) =0;
870 // a message to ask the dss to teleport a character to another character
871 virtual void teleportOneCharacterToAnother(NLNET::IModuleProxy *sender, TSessionId sessionId, uint32 sourceId, uint32 destId) =0;
872 // teleport the player while uploading the scenario
873 virtual void teleportWhileUploadingScenario(NLNET::IModuleProxy *sender, const std::string &island, const std::string &entryPoint, const std::string &season) =0;
874 // send the header of a multi-part message
875 virtual void multiPartMsgHead(NLNET::IModuleProxy *sender, uint32 charId, const std::string &msgName, uint32 nbPacket, uint32 size) =0;
876 // send a part of a multi-part message
877 virtual void multiPartMsgBody(NLNET::IModuleProxy *sender, uint32 charId, uint32 partId, const std::vector<uint8> &data) =0;
878 // send the footer of a multi-part message
879 virtual void multiPartMsgFoot(NLNET::IModuleProxy *sender, uint32 charId) =0;
880 // simulate the forward of a message (to dss)
881 virtual void forwardToDss(NLNET::IModuleProxy *sender, uint32 charId, const NLNET::CMessage &msg) =0;
886 /////////////////////////////////////////////////////////////////
887 // WARNING : this is a generated file, don't change it !
888 /////////////////////////////////////////////////////////////////
889 class CShareServerEditionItfProxy
891 /// Smart pointer on the module proxy
892 NLNET::TModuleProxyPtr _ModuleProxy;
894 // Pointer on the local module that implement the interface (if the proxy is for a local module)
895 NLNET::TModulePtr _LocalModule;
896 // Direct pointer on the server implementation interface for collocated module
897 CShareServerEditionItfSkel *_LocalModuleSkel;
900 public:
901 CShareServerEditionItfProxy(NLNET::IModuleProxy *proxy)
903 nlassert(proxy->getModuleClassName() == "ServerEditionModule");
904 _ModuleProxy = proxy;
906 // initialize collocated servant interface
907 if (proxy->getModuleDistance() == 0)
909 _LocalModule = proxy->getLocalModule();
910 nlassert(_LocalModule != NULL);
911 CShareServerEditionItfSkel::TInterceptor *interceptor = NULL;
912 interceptor = static_cast < NLNET::CModuleBase* >(_LocalModule.getPtr())->getInterceptor(interceptor);
913 nlassert(interceptor != NULL);
915 _LocalModuleSkel = interceptor->getParent();
916 nlassert(_LocalModuleSkel != NULL);
918 else
919 _LocalModuleSkel = 0;
922 virtual ~CShareServerEditionItfProxy()
926 NLNET::IModuleProxy *getModuleProxy()
928 return _ModuleProxy;
931 void startingScenario(NLNET::IModule *sender);
932 // Request the start of a test scenario
933 void startScenario(NLNET::IModule *sender, bool ok, const TScenarioHeaderSerializer &header, const CObjectSerializerServer &data, uint32 startingAct);
934 // Client has received the ADV_CONN message
935 void advConnACK(NLNET::IModule *sender);
936 // The client announce to the server that he has registered a component.
937 void onUserComponentRegistered(NLNET::IModule *sender, const NLMISC::CHashKeyMD5 &md5);
938 // The client announce to the server that he need a componennt so the server must uploading it.
939 void onUserComponentDownloading(NLNET::IModule *sender, const NLMISC::CHashKeyMD5 &md5);
940 // Upload the high level scenario.
941 void onScenarioUploadAsked(NLNET::IModule *sender, uint32 msgId, const CObjectSerializerServer &hlScenario, bool mustBrodcast);
942 // The client request to set a node on a hl scenario.
943 void onNodeSetAsked(NLNET::IModule *sender, uint32 msgId, const std::string &instanceId, const std::string &attrName, const R2::CObjectSerializerServer &value);
944 // The client request to insert a node on a hl scenario.
945 void onNodeInsertAsked(NLNET::IModule *sender, uint32 msgId, const std::string &instanceId, const std::string &attrName, sint32 position, const std::string &key, const R2::CObjectSerializerServer &value);
946 // The client request to erase a node on a hl scenario.
947 void onNodeEraseAsked(NLNET::IModule *sender, uint32 msgId, const std::string &instanceId, const std::string &attrName, sint32 position);
948 // The client request to move a node on a hl scenario.
949 void onNodeMoveAsked(NLNET::IModule *sender, uint32 msgId, const std::string &instanceId1, const std::string &attrName1, sint32 position1, const std::string &instanceId2, const std::string &attrName2, sint32 position2);
950 // Call by the client in order to download its current scenario (and tp).
951 void onMapConnectionAsked(NLNET::IModule *sender, TSessionId scenarioId, bool updateHighLevel, bool mustTp, R2::TUserRole role);
952 // Call by the client when he change its mode (Dm, Tester, Player)
953 void onCharModeUpdateAsked(NLNET::IModule *sender, R2::TCharMode mode);
954 // client wants to tp at a specific position (clicking in map)
955 void onTpPositionAsked(NLNET::IModule *sender, float x, float y, float z);
956 // Update the mode of the pioneer (DM/TEST).
957 void tpToEntryPoint(NLNET::IModule *sender, uint32 actIndex);
958 // Set the starting act of the scenario
959 void setStartingAct(NLNET::IModule *sender, uint32 actIndex);
960 // Update the ring access of a scenario.
961 void onScenarioRingAccessUpdated(NLNET::IModule *sender, bool ok, const std::string &ringAccess, const std::string &errMsg);
962 // a message to validate a file waiting to be saved
963 void saveScenarioFile(NLNET::IModule *sender, const std::string &md5, const R2::TScenarioHeaderSerializer &header);
964 // a message to validate a file waiting to be loaded
965 void loadScenarioFile(NLNET::IModule *sender, const std::string &md5, const std::string &signature);
966 // a message to validate a user component file waiting to be saved
967 void saveUserComponentFile(NLNET::IModule *sender, const std::string &md5, const R2::TScenarioHeaderSerializer &header);
968 // a message to validate a user component file waiting to be loaded
969 void loadUserComponentFile(NLNET::IModule *sender, const std::string &md5, const std::string &signature);
970 // a message to ask the dss to teleport a character to another character
971 void teleportOneCharacterToAnother(NLNET::IModule *sender, TSessionId sessionId, uint32 sourceId, uint32 destId);
972 // teleport the player while uploading the scenario
973 void teleportWhileUploadingScenario(NLNET::IModule *sender, const std::string &island, const std::string &entryPoint, const std::string &season);
974 // send the header of a multi-part message
975 void multiPartMsgHead(NLNET::IModule *sender, uint32 charId, const std::string &msgName, uint32 nbPacket, uint32 size);
976 // send a part of a multi-part message
977 void multiPartMsgBody(NLNET::IModule *sender, uint32 charId, uint32 partId, const std::vector<uint8> &data);
978 // send the footer of a multi-part message
979 void multiPartMsgFoot(NLNET::IModule *sender, uint32 charId);
980 // simulate the forward of a message (to dss)
981 void forwardToDss(NLNET::IModule *sender, uint32 charId, const NLNET::CMessage &msg);
983 // Message serializer. Return the message received in reference for easier integration
984 static const NLNET::CMessage &buildMessageFor_startingScenario(NLNET::CMessage &__message);
986 // Message serializer. Return the message received in reference for easier integration
987 static const NLNET::CMessage &buildMessageFor_startScenario(NLNET::CMessage &__message, bool ok, const TScenarioHeaderSerializer &header, const CObjectSerializerServer &data, uint32 startingAct);
989 // Message serializer. Return the message received in reference for easier integration
990 static const NLNET::CMessage &buildMessageFor_advConnACK(NLNET::CMessage &__message);
992 // Message serializer. Return the message received in reference for easier integration
993 static const NLNET::CMessage &buildMessageFor_onUserComponentRegistered(NLNET::CMessage &__message, const NLMISC::CHashKeyMD5 &md5);
995 // Message serializer. Return the message received in reference for easier integration
996 static const NLNET::CMessage &buildMessageFor_onUserComponentDownloading(NLNET::CMessage &__message, const NLMISC::CHashKeyMD5 &md5);
998 // Message serializer. Return the message received in reference for easier integration
999 static const NLNET::CMessage &buildMessageFor_onScenarioUploadAsked(NLNET::CMessage &__message, uint32 msgId, const CObjectSerializerServer &hlScenario, bool mustBrodcast);
1001 // Message serializer. Return the message received in reference for easier integration
1002 static const NLNET::CMessage &buildMessageFor_onNodeSetAsked(NLNET::CMessage &__message, uint32 msgId, const std::string &instanceId, const std::string &attrName, const R2::CObjectSerializerServer &value);
1004 // Message serializer. Return the message received in reference for easier integration
1005 static const NLNET::CMessage &buildMessageFor_onNodeInsertAsked(NLNET::CMessage &__message, uint32 msgId, const std::string &instanceId, const std::string &attrName, sint32 position, const std::string &key, const R2::CObjectSerializerServer &value);
1007 // Message serializer. Return the message received in reference for easier integration
1008 static const NLNET::CMessage &buildMessageFor_onNodeEraseAsked(NLNET::CMessage &__message, uint32 msgId, const std::string &instanceId, const std::string &attrName, sint32 position);
1010 // Message serializer. Return the message received in reference for easier integration
1011 static const NLNET::CMessage &buildMessageFor_onNodeMoveAsked(NLNET::CMessage &__message, uint32 msgId, const std::string &instanceId1, const std::string &attrName1, sint32 position1, const std::string &instanceId2, const std::string &attrName2, sint32 position2);
1013 // Message serializer. Return the message received in reference for easier integration
1014 static const NLNET::CMessage &buildMessageFor_onMapConnectionAsked(NLNET::CMessage &__message, TSessionId scenarioId, bool updateHighLevel, bool mustTp, R2::TUserRole role);
1016 // Message serializer. Return the message received in reference for easier integration
1017 static const NLNET::CMessage &buildMessageFor_onCharModeUpdateAsked(NLNET::CMessage &__message, R2::TCharMode mode);
1019 // Message serializer. Return the message received in reference for easier integration
1020 static const NLNET::CMessage &buildMessageFor_onTpPositionAsked(NLNET::CMessage &__message, float x, float y, float z);
1022 // Message serializer. Return the message received in reference for easier integration
1023 static const NLNET::CMessage &buildMessageFor_tpToEntryPoint(NLNET::CMessage &__message, uint32 actIndex);
1025 // Message serializer. Return the message received in reference for easier integration
1026 static const NLNET::CMessage &buildMessageFor_setStartingAct(NLNET::CMessage &__message, uint32 actIndex);
1028 // Message serializer. Return the message received in reference for easier integration
1029 static const NLNET::CMessage &buildMessageFor_onScenarioRingAccessUpdated(NLNET::CMessage &__message, bool ok, const std::string &ringAccess, const std::string &errMsg);
1031 // Message serializer. Return the message received in reference for easier integration
1032 static const NLNET::CMessage &buildMessageFor_saveScenarioFile(NLNET::CMessage &__message, const std::string &md5, const R2::TScenarioHeaderSerializer &header);
1034 // Message serializer. Return the message received in reference for easier integration
1035 static const NLNET::CMessage &buildMessageFor_loadScenarioFile(NLNET::CMessage &__message, const std::string &md5, const std::string &signature);
1037 // Message serializer. Return the message received in reference for easier integration
1038 static const NLNET::CMessage &buildMessageFor_saveUserComponentFile(NLNET::CMessage &__message, const std::string &md5, const R2::TScenarioHeaderSerializer &header);
1040 // Message serializer. Return the message received in reference for easier integration
1041 static const NLNET::CMessage &buildMessageFor_loadUserComponentFile(NLNET::CMessage &__message, const std::string &md5, const std::string &signature);
1043 // Message serializer. Return the message received in reference for easier integration
1044 static const NLNET::CMessage &buildMessageFor_teleportOneCharacterToAnother(NLNET::CMessage &__message, TSessionId sessionId, uint32 sourceId, uint32 destId);
1046 // Message serializer. Return the message received in reference for easier integration
1047 static const NLNET::CMessage &buildMessageFor_teleportWhileUploadingScenario(NLNET::CMessage &__message, const std::string &island, const std::string &entryPoint, const std::string &season);
1049 // Message serializer. Return the message received in reference for easier integration
1050 static const NLNET::CMessage &buildMessageFor_multiPartMsgHead(NLNET::CMessage &__message, uint32 charId, const std::string &msgName, uint32 nbPacket, uint32 size);
1052 // Message serializer. Return the message received in reference for easier integration
1053 static const NLNET::CMessage &buildMessageFor_multiPartMsgBody(NLNET::CMessage &__message, uint32 charId, uint32 partId, const std::vector<uint8> &data);
1055 // Message serializer. Return the message received in reference for easier integration
1056 static const NLNET::CMessage &buildMessageFor_multiPartMsgFoot(NLNET::CMessage &__message, uint32 charId);
1058 // Message serializer. Return the message received in reference for easier integration
1059 static const NLNET::CMessage &buildMessageFor_forwardToDss(NLNET::CMessage &__message, uint32 charId, const NLNET::CMessage &msg);
1066 /////////////////////////////////////////////////////////////////
1067 // WARNING : this is a generated file, don't change it !
1068 /////////////////////////////////////////////////////////////////
1069 class CShareClientEditionItfSkel
1071 public:
1072 /// the interceptor type
1073 typedef NLNET::CInterceptorForwarder < CShareClientEditionItfSkel> TInterceptor;
1074 protected:
1075 CShareClientEditionItfSkel()
1077 // do early run time check for message table
1078 getMessageHandlers();
1080 virtual ~CShareClientEditionItfSkel()
1084 void init(NLNET::IModule *module)
1086 _Interceptor.init(this, module);
1089 // unused interceptors
1090 std::string fwdBuildModuleManifest() const { return std::string(); }
1091 void fwdOnModuleUp(NLNET::IModuleProxy * /* moduleProxy */) {}
1092 void fwdOnModuleDown(NLNET::IModuleProxy * /* moduleProxy */) {}
1093 void fwdOnModuleSecurityChange(NLNET::IModuleProxy * /* moduleProxy */) {}
1095 // process module message interceptor
1096 bool fwdOnProcessModuleMessage(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
1097 private:
1099 typedef void (CShareClientEditionItfSkel::*TMessageHandler)(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
1100 typedef std::map<std::string, TMessageHandler> TMessageHandlerMap;
1102 const TMessageHandlerMap &getMessageHandlers() const;
1105 void startingScenario_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1107 void startScenario_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1109 void onUserComponentRegistered_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1111 void onUserComponentUploading_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1113 void onScenarioUploaded_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1115 void onNodeSet_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1117 void onNodeInserted_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1119 void onNodeErased_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1121 void onNodeMoved_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1123 void onQuotaUpdated_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1125 void onCharModeUpdated_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1127 void onTestModeDisconnected_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1129 void onTpPositionSimulated_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1131 void onKicked_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1133 void onDisconnected_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1135 void scheduleStartAct_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1137 void onAnimationModePlayConnected_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1139 void updateScenarioHeader_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1141 void updateMissionItemsDescription_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1143 void updateActPositionDescriptions_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1145 void updateUserTriggerDescriptions_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1147 void onCurrentActIndexUpdated_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1149 void updateTalkingAsList_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1151 void updateIncarningList_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1153 void systemMsg_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1155 void onRingAccessUpdated_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1157 void saveScenarioFileAccepted_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1159 void loadScenarioFileAccepted_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1161 void saveUserComponentFileAccepted_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1163 void loadUserComponentFileAccepted_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1165 void multiPartMsgHead_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1167 void multiPartMsgBody_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1169 void multiPartMsgFoot_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1171 void ackMsg_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1173 // declare one interceptor member of the skeleton
1174 TInterceptor _Interceptor;
1176 // declare the interceptor forwarder as friend of this class
1177 friend class NLNET::CInterceptorForwarder < CShareClientEditionItfSkel>;
1178 public:
1179 /////////////////////////////////////////////////////////////////
1180 // WARNING : this is a generated file, don't change it !
1181 /////////////////////////////////////////////////////////////////
1183 // The start of a test has been requested
1184 virtual void startingScenario(NLNET::IModuleProxy *sender, uint32 charId) =0;
1185 // A Scenario has started
1186 virtual void startScenario(NLNET::IModuleProxy *sender, bool ok, uint32 startingAct, const std::string &errorMsg) =0;
1187 // A User component has been registered
1188 virtual void onUserComponentRegistered(NLNET::IModuleProxy *sender, const NLMISC::CHashKeyMD5 &md5) =0;
1189 // Request the upload of a component
1190 virtual void onUserComponentUploading(NLNET::IModuleProxy *sender, const NLMISC::CHashKeyMD5 &md5) =0;
1191 // The client request to upload an hl ata.
1192 virtual void onScenarioUploaded(NLNET::IModuleProxy *sender, const R2::CObjectSerializerClient &hlScenario) =0;
1193 // The client request to set a node on a hl scenario.
1194 virtual void onNodeSet(NLNET::IModuleProxy *sender, const std::string &instanceId, const std::string &attrName, const R2::CObjectSerializerClient &value) =0;
1195 // The ServerEditionMode inserts a node on a hl scenario.
1196 virtual void onNodeInserted(NLNET::IModuleProxy *sender, const std::string &instanceId, const std::string &attrName, sint32 position, const std::string &key, const R2::CObjectSerializerClient &value) =0;
1197 // The ServerEditionMode erases a node on a hl scenario.
1198 virtual void onNodeErased(NLNET::IModuleProxy *sender, const std::string &instanceId, const std::string &attrName, sint32 position) =0;
1199 // The ServerEditionMode a move node on a hl scenario.
1200 virtual void onNodeMoved(NLNET::IModuleProxy *sender, const std::string &instanceId1, const std::string &attrName1, sint32 position1, const std::string &instanceId2, const std::string &attrName2, sint32 position2) =0;
1201 // Updates the client quota
1202 virtual void onQuotaUpdated(NLNET::IModuleProxy *sender, uint32 maxNpcs, uint32 maxStaticObjects) =0;
1203 // Updates the client Mode (tester, dm, editor, player) be the speed
1204 virtual void onCharModeUpdated(NLNET::IModuleProxy *sender, R2::TCharMode mode) =0;
1205 // Indicates to the client that an animation has stop (animation, play, test)
1206 virtual void onTestModeDisconnected(NLNET::IModuleProxy *sender, TSessionId sessionId, uint32 lastActIndex, R2::TScenarioSessionType animationType) =0;
1207 // A DSS Message to make a local client tp (because egs can not do it)/
1208 virtual void onTpPositionSimulated(NLNET::IModuleProxy *sender, TSessionId sessionId, uint64 characterId64, sint32 x, sint32 y, sint32 z, uint8 scenarioSeason) =0;
1209 // A DSS Message to indicates that the client will be disconnect in secondes./
1210 virtual void onKicked(NLNET::IModuleProxy *sender, uint32 timeBeforeDisconnection, bool mustKick) =0;
1211 // A DSS Message to make to disconnect the client./
1212 virtual void onDisconnected(NLNET::IModuleProxy *sender) =0;
1213 // Tell to the client that an act begin in nbSeconds
1214 virtual void scheduleStartAct(NLNET::IModuleProxy *sender, uint32 errorId, uint32 actId, uint32 nbSeconds) =0;
1215 // Tell to the client that he is connected in play mode in an animation session
1216 virtual void onAnimationModePlayConnected(NLNET::IModuleProxy *sender) =0;
1217 // A DSS Message to update the scenario Header
1218 virtual void updateScenarioHeader(NLNET::IModuleProxy *sender, const R2::TScenarioHeaderSerializer &scenarioHeader) =0;
1219 // A DSS Message to update discription mission item of a scenario
1220 virtual void updateMissionItemsDescription(NLNET::IModuleProxy *sender, TSessionId sessionId, const std::vector<R2::TMissionItem> &missionItem) =0;
1221 // A DSS Message to update the discription of acts (name and positions)
1222 virtual void updateActPositionDescriptions(NLNET::IModuleProxy *sender, const R2::TActPositionDescriptions &actPositionDescriptions) =0;
1223 // A DSS Message to update the discription of acts (name and positions)
1224 virtual void updateUserTriggerDescriptions(NLNET::IModuleProxy *sender, const R2::TUserTriggerDescriptions &userTriggerDescriptions) =0;
1225 // A DSS Message to update the discription of acts (name and positions)
1226 virtual void onCurrentActIndexUpdated(NLNET::IModuleProxy *sender, uint32 actIndex) =0;
1227 // Update the Talking as list.
1228 virtual void updateTalkingAsList(NLNET::IModuleProxy *sender, const std::vector<uint32> &botsId) =0;
1229 // Update the Incarning list.
1230 virtual void updateIncarningList(NLNET::IModuleProxy *sender, const std::vector<uint32> &botsId) =0;
1231 // A message that will be printed an client
1232 virtual void systemMsg(NLNET::IModuleProxy *sender, const std::string &msgType, const std::string &who, const std::string &msg) =0;
1233 // Update the ring access of the client
1234 virtual void onRingAccessUpdated(NLNET::IModuleProxy *sender, const std::string &ringAccess) =0;
1235 // a message to validate a file waiting to be saved
1236 virtual void saveScenarioFileAccepted(NLNET::IModuleProxy *sender, const std::string &md5, const std::string &signature, bool isAccepted) =0;
1237 // a message to validate a file waiting to be loaded
1238 virtual void loadScenarioFileAccepted(NLNET::IModuleProxy *sender, const std::string &md5, bool ok) =0;
1239 // a message to validate a user component file waiting to be saved
1240 virtual void saveUserComponentFileAccepted(NLNET::IModuleProxy *sender, const std::string &md5, const std::string &signature, bool isAccepted) =0;
1241 // a message to validate a user component file waiting to be loaded
1242 virtual void loadUserComponentFileAccepted(NLNET::IModuleProxy *sender, const std::string &md5, bool ok) =0;
1243 // send the header of a multi-part message
1244 virtual void multiPartMsgHead(NLNET::IModuleProxy *sender, const std::string &msgName, uint32 nbPacket, uint32 size) =0;
1245 // send a part of a multi-part message
1246 virtual void multiPartMsgBody(NLNET::IModuleProxy *sender, uint32 partId, uint32 packetSize) =0;
1247 // send the footer of a multi-part message
1248 virtual void multiPartMsgFoot(NLNET::IModuleProxy *sender) =0;
1249 // send an ack messag to the client
1250 virtual void ackMsg(NLNET::IModuleProxy *sender, uint32 msgId, bool ok) =0;
1255 /////////////////////////////////////////////////////////////////
1256 // WARNING : this is a generated file, don't change it !
1257 /////////////////////////////////////////////////////////////////
1258 class CShareClientEditionItfProxy
1260 /// Smart pointer on the module proxy
1261 NLNET::TModuleProxyPtr _ModuleProxy;
1263 // Pointer on the local module that implement the interface (if the proxy is for a local module)
1264 NLNET::TModulePtr _LocalModule;
1265 // Direct pointer on the server implementation interface for collocated module
1266 CShareClientEditionItfSkel *_LocalModuleSkel;
1269 public:
1270 CShareClientEditionItfProxy(NLNET::IModuleProxy *proxy)
1272 nlassert(proxy->getModuleClassName() == "ClientEditionModule");
1273 _ModuleProxy = proxy;
1275 // initialize collocated servant interface
1276 if (proxy->getModuleDistance() == 0)
1278 _LocalModule = proxy->getLocalModule();
1279 nlassert(_LocalModule != NULL);
1280 CShareClientEditionItfSkel::TInterceptor *interceptor = NULL;
1281 interceptor = static_cast < NLNET::CModuleBase* >(_LocalModule.getPtr())->getInterceptor(interceptor);
1282 nlassert(interceptor != NULL);
1284 _LocalModuleSkel = interceptor->getParent();
1285 nlassert(_LocalModuleSkel != NULL);
1287 else
1288 _LocalModuleSkel = 0;
1291 virtual ~CShareClientEditionItfProxy()
1295 NLNET::IModuleProxy *getModuleProxy()
1297 return _ModuleProxy;
1300 // The start of a test has been requested
1301 void startingScenario(NLNET::IModule *sender, uint32 charId);
1302 // A Scenario has started
1303 void startScenario(NLNET::IModule *sender, bool ok, uint32 startingAct, const std::string &errorMsg);
1304 // A User component has been registered
1305 void onUserComponentRegistered(NLNET::IModule *sender, const NLMISC::CHashKeyMD5 &md5);
1306 // Request the upload of a component
1307 void onUserComponentUploading(NLNET::IModule *sender, const NLMISC::CHashKeyMD5 &md5);
1308 // The client request to upload an hl ata.
1309 void onScenarioUploaded(NLNET::IModule *sender, const R2::CObjectSerializerClient &hlScenario);
1310 // The client request to set a node on a hl scenario.
1311 void onNodeSet(NLNET::IModule *sender, const std::string &instanceId, const std::string &attrName, const R2::CObjectSerializerClient &value);
1312 // The ServerEditionMode inserts a node on a hl scenario.
1313 void onNodeInserted(NLNET::IModule *sender, const std::string &instanceId, const std::string &attrName, sint32 position, const std::string &key, const R2::CObjectSerializerClient &value);
1314 // The ServerEditionMode erases a node on a hl scenario.
1315 void onNodeErased(NLNET::IModule *sender, const std::string &instanceId, const std::string &attrName, sint32 position);
1316 // The ServerEditionMode a move node on a hl scenario.
1317 void onNodeMoved(NLNET::IModule *sender, const std::string &instanceId1, const std::string &attrName1, sint32 position1, const std::string &instanceId2, const std::string &attrName2, sint32 position2);
1318 // Updates the client quota
1319 void onQuotaUpdated(NLNET::IModule *sender, uint32 maxNpcs, uint32 maxStaticObjects);
1320 // Updates the client Mode (tester, dm, editor, player) be the speed
1321 void onCharModeUpdated(NLNET::IModule *sender, R2::TCharMode mode);
1322 // Indicates to the client that an animation has stop (animation, play, test)
1323 void onTestModeDisconnected(NLNET::IModule *sender, TSessionId sessionId, uint32 lastActIndex, R2::TScenarioSessionType animationType);
1324 // A DSS Message to make a local client tp (because egs can not do it)/
1325 void onTpPositionSimulated(NLNET::IModule *sender, TSessionId sessionId, uint64 characterId64, sint32 x, sint32 y, sint32 z, uint8 scenarioSeason);
1326 // A DSS Message to indicates that the client will be disconnect in secondes./
1327 void onKicked(NLNET::IModule *sender, uint32 timeBeforeDisconnection, bool mustKick);
1328 // A DSS Message to make to disconnect the client./
1329 void onDisconnected(NLNET::IModule *sender);
1330 // Tell to the client that an act begin in nbSeconds
1331 void scheduleStartAct(NLNET::IModule *sender, uint32 errorId, uint32 actId, uint32 nbSeconds);
1332 // Tell to the client that he is connected in play mode in an animation session
1333 void onAnimationModePlayConnected(NLNET::IModule *sender);
1334 // A DSS Message to update the scenario Header
1335 void updateScenarioHeader(NLNET::IModule *sender, const R2::TScenarioHeaderSerializer &scenarioHeader);
1336 // A DSS Message to update discription mission item of a scenario
1337 void updateMissionItemsDescription(NLNET::IModule *sender, TSessionId sessionId, const std::vector<R2::TMissionItem> &missionItem);
1338 // A DSS Message to update the discription of acts (name and positions)
1339 void updateActPositionDescriptions(NLNET::IModule *sender, const R2::TActPositionDescriptions &actPositionDescriptions);
1340 // A DSS Message to update the discription of acts (name and positions)
1341 void updateUserTriggerDescriptions(NLNET::IModule *sender, const R2::TUserTriggerDescriptions &userTriggerDescriptions);
1342 // A DSS Message to update the discription of acts (name and positions)
1343 void onCurrentActIndexUpdated(NLNET::IModule *sender, uint32 actIndex);
1344 // Update the Talking as list.
1345 void updateTalkingAsList(NLNET::IModule *sender, const std::vector<uint32> &botsId);
1346 // Update the Incarning list.
1347 void updateIncarningList(NLNET::IModule *sender, const std::vector<uint32> &botsId);
1348 // A message that will be printed an client
1349 void systemMsg(NLNET::IModule *sender, const std::string &msgType, const std::string &who, const std::string &msg);
1350 // Update the ring access of the client
1351 void onRingAccessUpdated(NLNET::IModule *sender, const std::string &ringAccess);
1352 // a message to validate a file waiting to be saved
1353 void saveScenarioFileAccepted(NLNET::IModule *sender, const std::string &md5, const std::string &signature, bool isAccepted);
1354 // a message to validate a file waiting to be loaded
1355 void loadScenarioFileAccepted(NLNET::IModule *sender, const std::string &md5, bool ok);
1356 // a message to validate a user component file waiting to be saved
1357 void saveUserComponentFileAccepted(NLNET::IModule *sender, const std::string &md5, const std::string &signature, bool isAccepted);
1358 // a message to validate a user component file waiting to be loaded
1359 void loadUserComponentFileAccepted(NLNET::IModule *sender, const std::string &md5, bool ok);
1360 // send the header of a multi-part message
1361 void multiPartMsgHead(NLNET::IModule *sender, const std::string &msgName, uint32 nbPacket, uint32 size);
1362 // send a part of a multi-part message
1363 void multiPartMsgBody(NLNET::IModule *sender, uint32 partId, uint32 packetSize);
1364 // send the footer of a multi-part message
1365 void multiPartMsgFoot(NLNET::IModule *sender);
1366 // send an ack messag to the client
1367 void ackMsg(NLNET::IModule *sender, uint32 msgId, bool ok);
1368 // The start of a test has been requested
1370 // This is the broadcast version of the method.
1371 template < class ProxyIterator >
1372 static void broadcast_startingScenario(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender, uint32 charId)
1374 NLNET::CMessage message;
1376 // create the message to send to multiple dest
1377 buildMessageFor_startingScenario(message , charId);
1379 for (; first != last; ++first)
1381 NLNET::IModuleProxy *proxy = *first;
1383 proxy->sendModuleMessage(sender, message);
1387 // A Scenario has started
1389 // This is the broadcast version of the method.
1390 template < class ProxyIterator >
1391 static void broadcast_startScenario(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender, bool ok, uint32 startingAct, const std::string &errorMsg)
1393 NLNET::CMessage message;
1395 // create the message to send to multiple dest
1396 buildMessageFor_startScenario(message , ok, startingAct, errorMsg);
1398 for (; first != last; ++first)
1400 NLNET::IModuleProxy *proxy = *first;
1402 proxy->sendModuleMessage(sender, message);
1406 // A User component has been registered
1408 // This is the broadcast version of the method.
1409 template < class ProxyIterator >
1410 static void broadcast_onUserComponentRegistered(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender, const NLMISC::CHashKeyMD5 &md5)
1412 NLNET::CMessage message;
1414 // create the message to send to multiple dest
1415 buildMessageFor_onUserComponentRegistered(message , md5);
1417 for (; first != last; ++first)
1419 NLNET::IModuleProxy *proxy = *first;
1421 proxy->sendModuleMessage(sender, message);
1425 // The client request to upload an hl ata.
1427 // This is the broadcast version of the method.
1428 template < class ProxyIterator >
1429 static void broadcast_onScenarioUploaded(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender, const R2::CObjectSerializerClient &hlScenario)
1431 NLNET::CMessage message;
1433 // create the message to send to multiple dest
1434 buildMessageFor_onScenarioUploaded(message , hlScenario);
1436 for (; first != last; ++first)
1438 NLNET::IModuleProxy *proxy = *first;
1440 proxy->sendModuleMessage(sender, message);
1444 // The client request to set a node on a hl scenario.
1446 // This is the broadcast version of the method.
1447 template < class ProxyIterator >
1448 static void broadcast_onNodeSet(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender, const std::string &instanceId, const std::string &attrName, const R2::CObjectSerializerClient &value)
1450 NLNET::CMessage message;
1452 // create the message to send to multiple dest
1453 buildMessageFor_onNodeSet(message , instanceId, attrName, value);
1455 for (; first != last; ++first)
1457 NLNET::IModuleProxy *proxy = *first;
1459 proxy->sendModuleMessage(sender, message);
1463 // The ServerEditionMode inserts a node on a hl scenario.
1465 // This is the broadcast version of the method.
1466 template < class ProxyIterator >
1467 static void broadcast_onNodeInserted(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender, const std::string &instanceId, const std::string &attrName, sint32 position, const std::string &key, const R2::CObjectSerializerClient &value)
1469 NLNET::CMessage message;
1471 // create the message to send to multiple dest
1472 buildMessageFor_onNodeInserted(message , instanceId, attrName, position, key, value);
1474 for (; first != last; ++first)
1476 NLNET::IModuleProxy *proxy = *first;
1478 proxy->sendModuleMessage(sender, message);
1482 // The ServerEditionMode erases a node on a hl scenario.
1484 // This is the broadcast version of the method.
1485 template < class ProxyIterator >
1486 static void broadcast_onNodeErased(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender, const std::string &instanceId, const std::string &attrName, sint32 position)
1488 NLNET::CMessage message;
1490 // create the message to send to multiple dest
1491 buildMessageFor_onNodeErased(message , instanceId, attrName, position);
1493 for (; first != last; ++first)
1495 NLNET::IModuleProxy *proxy = *first;
1497 proxy->sendModuleMessage(sender, message);
1501 // The ServerEditionMode a move node on a hl scenario.
1503 // This is the broadcast version of the method.
1504 template < class ProxyIterator >
1505 static void broadcast_onNodeMoved(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender, const std::string &instanceId1, const std::string &attrName1, sint32 position1, const std::string &instanceId2, const std::string &attrName2, sint32 position2)
1507 NLNET::CMessage message;
1509 // create the message to send to multiple dest
1510 buildMessageFor_onNodeMoved(message , instanceId1, attrName1, position1, instanceId2, attrName2, position2);
1512 for (; first != last; ++first)
1514 NLNET::IModuleProxy *proxy = *first;
1516 proxy->sendModuleMessage(sender, message);
1520 // Indicates to the client that an animation has stop (animation, play, test)
1522 // This is the broadcast version of the method.
1523 template < class ProxyIterator >
1524 static void broadcast_onTestModeDisconnected(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender, TSessionId sessionId, uint32 lastActIndex, R2::TScenarioSessionType animationType)
1526 NLNET::CMessage message;
1528 // create the message to send to multiple dest
1529 buildMessageFor_onTestModeDisconnected(message , sessionId, lastActIndex, animationType);
1531 for (; first != last; ++first)
1533 NLNET::IModuleProxy *proxy = *first;
1535 proxy->sendModuleMessage(sender, message);
1539 // Tell to the client that an act begin in nbSeconds
1541 // This is the broadcast version of the method.
1542 template < class ProxyIterator >
1543 static void broadcast_scheduleStartAct(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender, uint32 errorId, uint32 actId, uint32 nbSeconds)
1545 NLNET::CMessage message;
1547 // create the message to send to multiple dest
1548 buildMessageFor_scheduleStartAct(message , errorId, actId, nbSeconds);
1550 for (; first != last; ++first)
1552 NLNET::IModuleProxy *proxy = *first;
1554 proxy->sendModuleMessage(sender, message);
1558 // Tell to the client that he is connected in play mode in an animation session
1560 // This is the broadcast version of the method.
1561 template < class ProxyIterator >
1562 static void broadcast_onAnimationModePlayConnected(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender)
1564 NLNET::CMessage message;
1566 // create the message to send to multiple dest
1567 buildMessageFor_onAnimationModePlayConnected(message );
1569 for (; first != last; ++first)
1571 NLNET::IModuleProxy *proxy = *first;
1573 proxy->sendModuleMessage(sender, message);
1577 // A message that will be printed an client
1579 // This is the broadcast version of the method.
1580 template < class ProxyIterator >
1581 static void broadcast_systemMsg(ProxyIterator first, ProxyIterator last, NLNET::IModule *sender, const std::string &msgType, const std::string &who, const std::string &msg)
1583 NLNET::CMessage message;
1585 // create the message to send to multiple dest
1586 buildMessageFor_systemMsg(message , msgType, who, msg);
1588 for (; first != last; ++first)
1590 NLNET::IModuleProxy *proxy = *first;
1592 proxy->sendModuleMessage(sender, message);
1597 // Message serializer. Return the message received in reference for easier integration
1598 static const NLNET::CMessage &buildMessageFor_startingScenario(NLNET::CMessage &__message, uint32 charId);
1600 // Message serializer. Return the message received in reference for easier integration
1601 static const NLNET::CMessage &buildMessageFor_startScenario(NLNET::CMessage &__message, bool ok, uint32 startingAct, const std::string &errorMsg);
1603 // Message serializer. Return the message received in reference for easier integration
1604 static const NLNET::CMessage &buildMessageFor_onUserComponentRegistered(NLNET::CMessage &__message, const NLMISC::CHashKeyMD5 &md5);
1606 // Message serializer. Return the message received in reference for easier integration
1607 static const NLNET::CMessage &buildMessageFor_onUserComponentUploading(NLNET::CMessage &__message, const NLMISC::CHashKeyMD5 &md5);
1609 // Message serializer. Return the message received in reference for easier integration
1610 static const NLNET::CMessage &buildMessageFor_onScenarioUploaded(NLNET::CMessage &__message, const R2::CObjectSerializerClient &hlScenario);
1612 // Message serializer. Return the message received in reference for easier integration
1613 static const NLNET::CMessage &buildMessageFor_onNodeSet(NLNET::CMessage &__message, const std::string &instanceId, const std::string &attrName, const R2::CObjectSerializerClient &value);
1615 // Message serializer. Return the message received in reference for easier integration
1616 static const NLNET::CMessage &buildMessageFor_onNodeInserted(NLNET::CMessage &__message, const std::string &instanceId, const std::string &attrName, sint32 position, const std::string &key, const R2::CObjectSerializerClient &value);
1618 // Message serializer. Return the message received in reference for easier integration
1619 static const NLNET::CMessage &buildMessageFor_onNodeErased(NLNET::CMessage &__message, const std::string &instanceId, const std::string &attrName, sint32 position);
1621 // Message serializer. Return the message received in reference for easier integration
1622 static const NLNET::CMessage &buildMessageFor_onNodeMoved(NLNET::CMessage &__message, const std::string &instanceId1, const std::string &attrName1, sint32 position1, const std::string &instanceId2, const std::string &attrName2, sint32 position2);
1624 // Message serializer. Return the message received in reference for easier integration
1625 static const NLNET::CMessage &buildMessageFor_onQuotaUpdated(NLNET::CMessage &__message, uint32 maxNpcs, uint32 maxStaticObjects);
1627 // Message serializer. Return the message received in reference for easier integration
1628 static const NLNET::CMessage &buildMessageFor_onCharModeUpdated(NLNET::CMessage &__message, R2::TCharMode mode);
1630 // Message serializer. Return the message received in reference for easier integration
1631 static const NLNET::CMessage &buildMessageFor_onTestModeDisconnected(NLNET::CMessage &__message, TSessionId sessionId, uint32 lastActIndex, R2::TScenarioSessionType animationType);
1633 // Message serializer. Return the message received in reference for easier integration
1634 static const NLNET::CMessage &buildMessageFor_onTpPositionSimulated(NLNET::CMessage &__message, TSessionId sessionId, uint64 characterId64, sint32 x, sint32 y, sint32 z, uint8 scenarioSeason);
1636 // Message serializer. Return the message received in reference for easier integration
1637 static const NLNET::CMessage &buildMessageFor_onKicked(NLNET::CMessage &__message, uint32 timeBeforeDisconnection, bool mustKick);
1639 // Message serializer. Return the message received in reference for easier integration
1640 static const NLNET::CMessage &buildMessageFor_onDisconnected(NLNET::CMessage &__message);
1642 // Message serializer. Return the message received in reference for easier integration
1643 static const NLNET::CMessage &buildMessageFor_scheduleStartAct(NLNET::CMessage &__message, uint32 errorId, uint32 actId, uint32 nbSeconds);
1645 // Message serializer. Return the message received in reference for easier integration
1646 static const NLNET::CMessage &buildMessageFor_onAnimationModePlayConnected(NLNET::CMessage &__message);
1648 // Message serializer. Return the message received in reference for easier integration
1649 static const NLNET::CMessage &buildMessageFor_updateScenarioHeader(NLNET::CMessage &__message, const R2::TScenarioHeaderSerializer &scenarioHeader);
1651 // Message serializer. Return the message received in reference for easier integration
1652 static const NLNET::CMessage &buildMessageFor_updateMissionItemsDescription(NLNET::CMessage &__message, TSessionId sessionId, const std::vector<R2::TMissionItem> &missionItem);
1654 // Message serializer. Return the message received in reference for easier integration
1655 static const NLNET::CMessage &buildMessageFor_updateActPositionDescriptions(NLNET::CMessage &__message, const R2::TActPositionDescriptions &actPositionDescriptions);
1657 // Message serializer. Return the message received in reference for easier integration
1658 static const NLNET::CMessage &buildMessageFor_updateUserTriggerDescriptions(NLNET::CMessage &__message, const R2::TUserTriggerDescriptions &userTriggerDescriptions);
1660 // Message serializer. Return the message received in reference for easier integration
1661 static const NLNET::CMessage &buildMessageFor_onCurrentActIndexUpdated(NLNET::CMessage &__message, uint32 actIndex);
1663 // Message serializer. Return the message received in reference for easier integration
1664 static const NLNET::CMessage &buildMessageFor_updateTalkingAsList(NLNET::CMessage &__message, const std::vector<uint32> &botsId);
1666 // Message serializer. Return the message received in reference for easier integration
1667 static const NLNET::CMessage &buildMessageFor_updateIncarningList(NLNET::CMessage &__message, const std::vector<uint32> &botsId);
1669 // Message serializer. Return the message received in reference for easier integration
1670 static const NLNET::CMessage &buildMessageFor_systemMsg(NLNET::CMessage &__message, const std::string &msgType, const std::string &who, const std::string &msg);
1672 // Message serializer. Return the message received in reference for easier integration
1673 static const NLNET::CMessage &buildMessageFor_onRingAccessUpdated(NLNET::CMessage &__message, const std::string &ringAccess);
1675 // Message serializer. Return the message received in reference for easier integration
1676 static const NLNET::CMessage &buildMessageFor_saveScenarioFileAccepted(NLNET::CMessage &__message, const std::string &md5, const std::string &signature, bool isAccepted);
1678 // Message serializer. Return the message received in reference for easier integration
1679 static const NLNET::CMessage &buildMessageFor_loadScenarioFileAccepted(NLNET::CMessage &__message, const std::string &md5, bool ok);
1681 // Message serializer. Return the message received in reference for easier integration
1682 static const NLNET::CMessage &buildMessageFor_saveUserComponentFileAccepted(NLNET::CMessage &__message, const std::string &md5, const std::string &signature, bool isAccepted);
1684 // Message serializer. Return the message received in reference for easier integration
1685 static const NLNET::CMessage &buildMessageFor_loadUserComponentFileAccepted(NLNET::CMessage &__message, const std::string &md5, bool ok);
1687 // Message serializer. Return the message received in reference for easier integration
1688 static const NLNET::CMessage &buildMessageFor_multiPartMsgHead(NLNET::CMessage &__message, const std::string &msgName, uint32 nbPacket, uint32 size);
1690 // Message serializer. Return the message received in reference for easier integration
1691 static const NLNET::CMessage &buildMessageFor_multiPartMsgBody(NLNET::CMessage &__message, uint32 partId, uint32 packetSize);
1693 // Message serializer. Return the message received in reference for easier integration
1694 static const NLNET::CMessage &buildMessageFor_multiPartMsgFoot(NLNET::CMessage &__message);
1696 // Message serializer. Return the message received in reference for easier integration
1697 static const NLNET::CMessage &buildMessageFor_ackMsg(NLNET::CMessage &__message, uint32 msgId, bool ok);
1703 // Describe an user item in a ring session
1704 /////////////////////////////////////////////////////////////////
1705 // WARNING : this is a generated file, don't change it !
1706 /////////////////////////////////////////////////////////////////
1707 class TCharMappedInfo
1709 protected:
1711 NLMISC::CSheetId _ItemSheet;
1713 ucstring _Name;
1714 public:
1716 const NLMISC::CSheetId &getItemSheet() const
1718 return _ItemSheet;
1721 NLMISC::CSheetId &getItemSheet()
1723 return _ItemSheet;
1727 void setItemSheet(const NLMISC::CSheetId &value)
1731 _ItemSheet = value;
1736 const ucstring &getName() const
1738 return _Name;
1741 ucstring &getName()
1743 return _Name;
1747 void setName(const ucstring &value)
1751 _Name = value;
1756 bool operator == (const TCharMappedInfo &other) const
1758 return _ItemSheet == other._ItemSheet
1759 && _Name == other._Name;
1763 // constructor
1764 TCharMappedInfo()
1769 void serial(NLMISC::IStream &s)
1771 s.serial(_ItemSheet);
1772 s.serial(_Name);
1777 private:
1784 /////////////////////////////////////////////////////////////////
1785 // WARNING : this is a generated file, don't change it !
1786 /////////////////////////////////////////////////////////////////
1787 class CIOSRingItfSkel
1789 public:
1790 /// the interceptor type
1791 typedef NLNET::CInterceptorForwarder < CIOSRingItfSkel> TInterceptor;
1792 protected:
1793 CIOSRingItfSkel()
1795 // do early run time check for message table
1796 getMessageHandlers();
1798 virtual ~CIOSRingItfSkel()
1802 void init(NLNET::IModule *module)
1804 _Interceptor.init(this, module);
1807 // unused interceptors
1808 std::string fwdBuildModuleManifest() const { return std::string(); }
1809 void fwdOnModuleUp(NLNET::IModuleProxy * /* moduleProxy */) {}
1810 void fwdOnModuleDown(NLNET::IModuleProxy * /* moduleProxy */) {}
1811 void fwdOnModuleSecurityChange(NLNET::IModuleProxy * /* moduleProxy */) {}
1813 // process module message interceptor
1814 bool fwdOnProcessModuleMessage(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
1815 private:
1817 typedef void (CIOSRingItfSkel::*TMessageHandler)(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
1818 typedef std::map<std::string, TMessageHandler> TMessageHandlerMap;
1820 const TMessageHandlerMap &getMessageHandlers() const;
1823 void storeItemNamesForAIInstance_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message);
1825 // declare one interceptor member of the skeleton
1826 TInterceptor _Interceptor;
1828 // declare the interceptor forwarder as friend of this class
1829 friend class NLNET::CInterceptorForwarder < CIOSRingItfSkel>;
1830 public:
1831 /////////////////////////////////////////////////////////////////
1832 // WARNING : this is a generated file, don't change it !
1833 /////////////////////////////////////////////////////////////////
1835 // DSS send a list of ring names user item with a AI instance
1836 virtual void storeItemNamesForAIInstance(NLNET::IModuleProxy *sender, uint32 aiInstance, const std::vector < TCharMappedInfo > &itemInfos) =0;
1841 /////////////////////////////////////////////////////////////////
1842 // WARNING : this is a generated file, don't change it !
1843 /////////////////////////////////////////////////////////////////
1844 class CIOSRingItfProxy
1846 /// Smart pointer on the module proxy
1847 NLNET::TModuleProxyPtr _ModuleProxy;
1849 // Pointer on the local module that implement the interface (if the proxy is for a local module)
1850 NLNET::TModulePtr _LocalModule;
1851 // Direct pointer on the server implementation interface for collocated module
1852 CIOSRingItfSkel *_LocalModuleSkel;
1855 public:
1856 CIOSRingItfProxy(NLNET::IModuleProxy *proxy)
1859 _ModuleProxy = proxy;
1861 // initialize collocated servant interface
1862 if (proxy->getModuleDistance() == 0)
1864 _LocalModule = proxy->getLocalModule();
1865 nlassert(_LocalModule != NULL);
1866 CIOSRingItfSkel::TInterceptor *interceptor = NULL;
1867 interceptor = static_cast < NLNET::CModuleBase* >(_LocalModule.getPtr())->getInterceptor(interceptor);
1868 nlassert(interceptor != NULL);
1870 _LocalModuleSkel = interceptor->getParent();
1871 nlassert(_LocalModuleSkel != NULL);
1873 else
1874 _LocalModuleSkel = 0;
1877 virtual ~CIOSRingItfProxy()
1881 NLNET::IModuleProxy *getModuleProxy()
1883 return _ModuleProxy;
1886 // DSS send a list of ring names user item with a AI instance
1887 void storeItemNamesForAIInstance(NLNET::IModule *sender, uint32 aiInstance, const std::vector < TCharMappedInfo > &itemInfos);
1889 // Message serializer. Return the message received in reference for easier integration
1890 static const NLNET::CMessage &buildMessageFor_storeItemNamesForAIInstance(NLNET::CMessage &__message, uint32 aiInstance, const std::vector < TCharMappedInfo > &itemInfos);
1899 #endif