private void _ToGame(IMapFinder map)
        {
            var stage = new GameStage(_Wisdom.GetSoulBinder(), map, _Gate, _Actor, _Wisdom);

            stage.ExitEvent     += _ToDone;
            stage.TransmitEvent += (target) => { };
            _Machine.Push(stage);
        }
示例#2
0
        private void _ToGame(GamePlayerRecord record, Realm.Map map)
        {
            var player = EntityProvider.Create(record.Entity);

            var itemProvider = new ItemProvider();
            var itemAxe      = itemProvider.CreateItem("Axe");

            player.Bag.Add(itemAxe);

            foreach (var item in record.Items)
            {
                player.Bag.Add(item);
            }

            var stage = new GameStage(this._Binder, map.Finder, map.Gate, player);

            stage.ExitEvent     += () => { };
            stage.TransmitEvent += _ToRealm;
            _Machine.Push(stage);
        }
示例#3
0
        private void _ToGame(GamePlayerRecord record , Realm.Map map)
        {
            var player = EntityProvider.Create(record.Entity);

            var itemProvider = new ItemProvider();
            var itemAxe = itemProvider.MakeItem( "Axe1" , 0.5f );
            var itemSword1 = itemProvider.MakeItem("Sword1" , 0.5f);
            var itemSword2 = itemProvider.MakeItem("Sword2" , 0.5f);
            var itemShield1 = itemProvider.MakeItem("Shield1", 0.5f);

            player.Bag.Add(itemAxe);
            player.Bag.Add(itemSword1);
            player.Bag.Add(itemSword2);
            player.Bag.Add(itemShield1);

            foreach (var item in record.Items)
            {
                player.Bag.Add(item);
            }

            var stage = new GameStage(this._Binder, map.Finder, map.Gate, player);
            stage.ExitEvent += () => { };
            stage.TransmitEvent += _ToRealm;
            _Machine.Push(stage);
        }
 private void _ToGame(IMapFinder map)
 {
     var stage = new GameStage(_Wisdom.GetSoulBinder() ,  map , _Gate, _Actor , _Wisdom);
     stage.ExitEvent += _ToDone ;
     stage.TransmitEvent += (target) => { };
     _Machine.Push(stage);
 }