Ejemplo n.º 1
0
        public override void Execute(IImpactStageAccess data)
        {
            var stage = _explorer.GetStage(data.StageId);

            switch (data.Access)
            {
            case AccessType.Lock:
                stage.IsUnlock = false;
                break;

            case AccessType.Unlock:
                stage.IsUnlock    = true;
                stage.DailyNumber = _settings.Settings.PlayerSettings.StageDailyNumber;
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
            LogicLog.StageAccess(data.StageId, data.Access);
        }