Merge branch 'lua_versions' into main/rendor-staging
[ryzomcore.git] / snowballs2 / server / empty / src / empty_service.h
blob01f2f746f28f37752e274800661ffc676473b2cc
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
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 #ifndef SERVICE_EMPTY_SERVICE_H
18 #define SERVICE_EMPTY_SERVICE_H
20 // This include is mandatory to use NeL. It include NeL types.
21 #include <nel/misc/types_nl.h>
23 // Some other NeL structures that can be used.
24 #include <nel/misc/vector.h>
25 #include <nel/misc/time_nl.h>
27 // And we're also using the NeL Service framework, layer 5.
28 #include <nel/net/service.h>
30 namespace SBSERVICE {
32 class CEmptyService : public NLNET::IService
34 public:
35 virtual void commandStart();
36 virtual void init();
37 virtual bool update();
38 virtual void release();
40 static void msgWater(const std::string service, float water);
41 static void msgFire(NLNET::TServiceId sid, ucstring fire);
43 static void cbSnow(NLNET::CMessage &msgin, const std::string &serviceName, NLNET::TServiceId sid);
44 static void cbIce(NLNET::CMessage &msgin, const std::string &serviceName, NLNET::TServiceId sid);
46 static void cbUp(const std::string &serviceName, NLNET::TServiceId sid, void *arg);
51 #endif /* SERVICE_EMPTY_SERVICE_H */
53 /* end of file */