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/>.
19 #ifndef RY_MISSION_MESSAGES_H
20 #define RY_MISSION_MESSAGES_H
22 #include "nel/misc/types_nl.h"
23 #include "nel/misc/sheet_id.h"
24 #include "nel/net/transport_class.h"
25 #include "game_share/base_types.h"
26 #include "game_share/synchronised_message.h"
27 #include "game_share/mission_desc.h"
30 * Message send by EGS to AIS to request a dynamic mission
31 * \author Nicolas Brigand
32 * \author Nevrax France
35 /*class CDynMissionRequestMsg : public CMirrorTransportClass
39 /// Id of the request being answered
42 /// the id of the mission giver
43 TDataSetRow MissionGiver;
49 virtual void description ()
51 className ("CDynMissionRequestMsg");
52 property ("RequestId", PropUInt32, (uint32)0,RequestId);
53 property ("MissionGiver", PropDataSetRow, TDataSetRow(),MissionGiver);
54 property ("MissionType", PropUInt8, (uint8)0,MissionType);
55 property ("Difficulty", PropUInt8, (uint8)0,Difficulty);
56 property ("Length", PropUInt8, (uint8)0,Length);
59 virtual void callback (const std::string &name, uint8 id) {}
64 * Message send by AIS to answer an EGS dynamic mission request
65 * \author Nicolas Brigand
66 * \author Nevrax France
69 /*class CDynMissionDescMsg : public CMirrorTransportClass
73 /// Id of the request being answered
77 /// bot ending the step
78 std::vector<TDataSetRow> EndingStepBot;
80 std::vector<uint8> StepTypes;
82 std::vector<NLMISC::CSheetId> StepParamSheet1;
84 std::vector<uint32> StepParamUint1;
85 std::vector<uint32> StepParamUint2;
87 /// type of the reward
89 /// parameter of the reward
92 void addKillCreatureStep( const TDataSetRow & endingBot, const NLMISC::CSheetId & sheet, uint32 quantity )
94 StepTypes.push_back( MISSION_DESC::KillCreature );
95 EndingStepBot.push_back( endingBot );
96 StepParamSheet1.push_back( sheet );
97 StepParamUint1.push_back( quantity );
102 virtual void description ()
104 className ("CMissionDescMsg");
106 property ("RequestId", PropUInt32, (uint32)0, RequestId);
108 propertyCont ("EndingStepBot", PropDataSetRow, EndingStepBot);
109 propertyCont ("StepTypes", PropUInt8,StepTypes);
110 propertyCont ("StepParamSheet1", PropSheetId,StepParamSheet1);
111 propertyCont ("StepParamUint1", PropUInt32,StepParamUint1);
112 propertyCont ("StepParamUint2", PropUInt32,StepParamUint2);
114 property ("RewardParam", PropUInt64, (uint64)0, RewardParam);
115 property ("RewardType", PropUInt8, (uint8)MISSION_DESC::NbReward, RewardType);
118 virtual void callback (const std::string &name, uint8 id) {}
123 #endif // RY_MISSION_MESSAGES_H
125 /* End of mission_messages.h */