コード例 #1
0
 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);
     };
 }
コード例 #2
0
ファイル: Tower.cs プロジェクト: Club559/Travs-Domain-Server
        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);
        }