Resolve "Toggle Free Look with Hotkey"
[ryzomcore.git] / ryzom / server / src / ai_data_service / messages.cpp
blobdc35ea660b7cbff2a733c97ed697f7506bed8f9a
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/>.
19 // include files
20 #include "nel/misc/types_nl.h"
22 #include "messages.h"
23 //#include "actor_manager.h"
25 using namespace NLMISC;
26 using namespace NLNET;
29 //-------------------------------------------------------------------------
30 // singleton initialisation and release
32 void CMessages::init()
34 // incoming messages
35 TRANSPORT_CLASS_REGISTER( CMsgAIServiceUp );
36 TRANSPORT_CLASS_REGISTER( CMsgAIManagerUp );
37 TRANSPORT_CLASS_REGISTER( CMsgAIFeedback );
39 TRANSPORT_CLASS_REGISTER( CMsgAICloseMgrs );
40 TRANSPORT_CLASS_REGISTER( CMsgAIBackupMgrs );
43 void CMessages::release()
48 //-------------------------------------------------------------------------
49 // incoming message callbacks
51 void CMsgAIServiceUp::callback (const std::string &serviceName, NLNET::TServiceId sid)
53 nlinfo("AI Service Up: %02d (CPU rating: %f RAMrating %f)", sid.get(), ProcessorAllocation,RamAllocation);
54 for (uint i=0;i<ManagersRunning.size();i++)
55 nlinfo("-- Running Manager: %04d",ManagersRunning[i]);
58 void CMsgAIManagerUp::callback (const std::string &serviceName, NLNET::TServiceId sid)
60 nlinfo("Service %d: Manager Up: %04d",sid.get(), MgrId);
63 void CMsgAIFeedback::callback (const std::string &serviceName, NLNET::TServiceId sid)
65 nlinfo("AI Manager %d: %s",Message.c_str());
68 //-------------------------------------------------------------------------
69 // stub outgoing message callbacks
71 void CMsgAICloseMgrs::callback(const std::string &serviceName, NLNET::TServiceId sid) {}
72 void CMsgAIBackupMgrs::callback(const std::string &serviceName, NLNET::TServiceId sid) {}