protected internal override void Resolve(State parent)
 {
     parent.Death += (sender, e) =>
     {
         TowerPortal entity = new TowerPortal(e.Host.Manager, (e.Host.Owner as Tower).Floor + 1);
         entity.Move(e.Host.X, e.Host.Y);
         e.Host.Owner.EnterWorld(entity);
     };
 }
Exemplo n.º 2
0
        protected override void Init()
        {
            base.FromWorldMap(
                typeof (RealmManager).Assembly.GetManifestResourceStream("wServer.realm.worlds.tower.floor" + Floor.ToString() + ".wmap"));

            IntPoint descendPos = GetRandomTile(TileRegion.Spawn);
            TowerPortal descend = new TowerPortal(Manager, Floor - 1);
            descend.Move(descendPos.X + 0.5f, descendPos.Y + 0.5f);
            EnterWorld(descend);
        }