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/>.
20 #ifndef RY_MSG_GPM_SERVICE_H
21 #define RY_MSG_GPM_SERVICE_H
23 #include "nel/misc/types_nl.h"
24 #include "nel/misc/time_nl.h"
25 #include "nel/misc/stream.h"
26 #include "nel/misc/sheet_id.h"
27 #include "nel/misc/entity_id.h"
28 #include "nel/net/unified_network.h"
29 #include "nel/net/transport_class.h"
31 #include "game_share/ryzom_entity_id.h"
32 #include "game_share/base_types.h"
33 #include "game_share/synchronised_message.h"
36 /****************************************************************\
37 ****************************************************************
38 Messages definitions for GPM Service
39 ****************************************************************
40 \****************************************************************/
45 NLMISC::CEntityId EntityId
;
46 NLMISC::CSheetId SheetId
;
48 CEntitySheetId(NLMISC::CEntityId
&eid
, NLMISC::CSheetId
&sheet
) : EntityId(eid
), SheetId(sheet
) {}
50 void serial(NLMISC::IStream
&f
) { f
.serial(EntityId
, SheetId
); }
54 class CGPMPlayerPrivilege
: public CMirrorTransportClass
60 Player
= 0, // basic player, no particular rights
66 TDataSetRow PlayerIndex
;
69 virtual void description ()
71 className("CGPMPlayerPrivilege");
72 property("PlayerIndex", PropDataSetRow
, TDataSetRow(), PlayerIndex
);
73 property("Type", PropUInt32
, (uint32
)Player
, Type
);
76 virtual void callback (const std::string
&name
, NLNET::TServiceId id
) {}
80 #endif // RY_MSG_GPM_SERVICE_H
82 /* End of msg_gpm_service.h */