示例#1
0
        void IStage.Enter()
        {
            _Binder.Bind <ICastSkill>(this);

            _Player.SetSkillVelocity(_Caster.GetShiftDirection(), _Caster.GetShiftSpeed());
            _Player.CastBegin(_Caster.Data.Id);

            _MoveController.Backward   = _Caster.GetBackward();
            _MoveController.Forward    = _Caster.GetForward();
            _MoveController.RunForward = _Caster.GetRunForward();
            _MoveController.TurnLeft   = _Caster.GetTurnLeft();
            _MoveController.TurnRight  = _Caster.GetTurnRight();

            _Binder.Bind <IMoveController>(_MoveController);

            if (_Caster.CanDisarm())
            {
                _Binder.Bind <IBattleSkill>(this);
            }

            _CastTimer.Reset();

            _DatumPosition = _Player.GetPosition();
            var strength = _Player.Strength(-_Caster.Data.StrengthCost);

            _Overdraft = strength < 0.0f;
        }
 void IStage.Enter()
 {
     _Binder.Bind <IEquipmentNotifier>(_Player.Equipment);
     _Binder.Bind <IBagNotifier>(_Player.Bag);
     _Player.ResetProperty();
     _ToDone();
 }
示例#3
0
        void IStage.Enter()
        {
            _Binder.Bind <IBoardData>(_GameZone);

            _Binder.Bind <IPlayer>(_GameZone);

            _Binder.Bind <IPosition>(_GameZone);
        }
示例#4
0
        public override void Enter()
        {
            _Binder.Bind <IInventoryController>(this);
            _Binder.Bind <IMoveController>(_MoveController);
            _Binder.Bind <INormalSkill>(this);

            _Player.Normal();
        }
        void IStage.Enter()
        {
            this._DifferenceNoticer.JoinEvent += this._BroadcastJoin;
            this._DifferenceNoticer.LeftEvent += this._BroadcastLeft;

            this._Gate.Join(this._Player);
            this._Binder.Bind <IPlayerProperys>(this);
            _Binder.Bind <IDevelopActor>(_Player);
            _Binder.Bind <IEmotion>(this);
            _ToSurvival();

            if (_Behavior != null)
            {
                _Updater.Add(_Behavior);
            }
        }
        void IStage.Enter()
        {
            _Player.Make();
            _Formulas = _Player.GetFormulas();

            _Binder.Bind <IMakeSkill>(this);
        }
        private void _Attach(Account account)
        {
            _Binder.Bind <IStorageCompetences>(this);

            if (account.HasCompetnce(Account.COMPETENCE.ACCOUNT_FINDER))
            {
                _Binder.Bind <IAccountFinder>(_Storage);
                _Binder.Bind <IGameRecorder>(_Storage);
            }

            if (account.HasCompetnce(Account.COMPETENCE.ACCOUNT_MANAGER))
            {
                _Binder.Bind <IAccountManager>(_Storage);
            }

            _Binder.Bind <ITradeNotes>(_Storage);
            _Binder.Bind <IFormulaFarmRecorder>(_Storage);
            _Binder.Bind <IFormulaPlayerRecorder>(_Storage);
        }
示例#8
0
 void IBootable.Launch()
 {
     _Binder.BreakEvent += _Quit;
     _Binder.Bind <IAccountStatus>(this);
     _ToVerify();
 }
示例#9
0
文件: Agent.cs 项目: kof1016/DataFlow
 private void _Bind <TSoul>(TSoul soul)
 {
     Binder.Bind(soul);
 }
示例#10
0
 void IBinderProvider.AssignBinder(ISoulBinder binder)
 {
     binder.Return <ITestReturn>(this);
     _Binder = binder;
     _Binder.Bind <ITestGPI>(this);
 }
示例#11
0
        void IStage.Enter()
        {
            _Verify.OnDoneEvent += DoneEvent;

            _Binder.Bind <IVerify>(_Verify);
        }
示例#12
0
 void IStage.Enter()
 {
     _Binder.Bind <IVerify>(this);
 }
示例#13
0
 void IStage.Enter()
 {
     _Binder.Bind <IBoardData>(_GameZone);
     OnDoneEvent?.Invoke(_GameZone);
 }
示例#14
0
 void IStage.Enter()
 {
     _Binder.Bind <IPlayer>(this);
     _FishStage.OnTotalHitResponseEvent += _FishStage_OnTotalHitResponseEvent;
 }
示例#15
0
 void IStage.Enter()
 {
     _Binder.Bind <ILevelSelector>(this);
 }
示例#16
0
 void ICore.AssignBinder(ISoulBinder binder)
 {
     binder.Return<ITestReturn>(this);
     _Binder = binder;
     _Binder.Bind<ITestGPI>(this);
 }
示例#17
0
 void IBootable.Launch()
 {
     _Binder.Bind <IInput>(this);
 }
示例#18
0
 void IStage.Enter()
 {
     _Binder.Bind <IPosition>(_GameZone);
 }
示例#19
0
        private void _StageLoadFinish(List <FishFarmData> obj)
        {
            _FishFarmDatas = obj;

            _Binder.Bind <IFishStageQueryer>(this);
        }
示例#20
0
 private void _GetMap(Realm.Map obj)
 {
     _Map = obj;
     _Binder.Bind <IJumpMap>(this);
 }