Пример #1
0
        private Move ParseMove(MoveExcelRow excelMove)
        {
            var move = new Move
            {
                Character       = ParseCharacter(excelMove.Character),
                Damage          = ParseDamage(excelMove.Damage),
                StartUpFrame    = ParseFrames(excelMove.StartUpFrame),
                BlockFrame      = ParseFramesAdvantage(excelMove.BlockFrame),
                HitFrame        = ParseFramesAdvantage(excelMove.HitFrame),
                CounterHitFrame = ParseFramesAdvantage(excelMove.CounterHitFrame),
                HitLevels       = ParseHitLevels(excelMove.HitLevel),
                Notes           = excelMove.Notes,
                MoveProperties  = ParseMovePropertiesFromNotes(excelMove.Notes)
            };
            var inputParser = new InputParser(excelMove.Command);

            inputParser.Parse();
            move.Stance              = inputParser.GetStance();
            move.Commands            = inputParser.GetCommands();
            move.MoveProperties.Rage = inputParser.Rage();
            //TODO if "or" then multiply moves
            return(move);
        }