cyphesis/server/ServerRouting.cpp
Al Riddoch c9ed4bce26 * Added handling of Get operation from client before login, to
determine game type, status and other info.

Al
2001-02-19 18:50:53 +00:00

31 lines
936 B
C++

// This file may be redistributed and modified only under the terms of
// the GNU Lesser General Public License (See COPYING for details).
// Copyright (C) 2000 Alistair Riddoch
#include <Atlas/Message/Object.h>
#include <Atlas/Objects/Root.h>
#include <Atlas/Objects/Operation/Login.h>
#include "ServerRouting.h"
#include <common/persistance.h>
ServerRouting::ServerRouting(CommServer * server, const string & name) :
comm_server(server), svr_name(name)
{
fullid = name;
id_dict[fullid] = this;
world=new WorldRouter(this); //game world;
BaseEntity * obj=add_object((BaseEntity*)Persistance::load_admin_account());
//obj->server=this;
obj->world=world;
}
void ServerRouting::addObject(Object * obj) const
{
Object::MapType & omap = obj->AsMap();
omap["server"] = "cyphesis";
omap["ruleset"] = svr_name;
// We could add all sorts of stats here, but I don't know exactly what yet.
}