Esempio n. 1
0
        protected override void Handle(Client client, CInfoPacket packet)
        {
            if (client.Character == null)
            {
                Miniland miniland = _mapFactory.CreateMiniland();

                miniland.Owner = packet.Name;

                client.Character = new Character(_logger, packet.CharacterId, packet.Name, client)
                {
                    Class  = packet.Class,
                    Gender = packet.Gender
                };

                _eventManager.Emit(new CharacterInitializeEvent(client)
                {
                    Character = client.Character
                });
            }
        }