示例#1
0
		public UnitResponse ProcessCommand(object _command)
		{ 
			var command = Compatibility.Check<IDWMCommand>(this,_command);
			if (command.DifWheelMovement == null) return UnitResponse.Denied();
			this.movement = command.DifWheelMovement;
			return UnitResponse.Accepted(command.DifWheelMovement.Duration);
		}
示例#2
0
文件: DWMUnit.cs 项目: FoKycHuK/CVARC
        public UnitResponse ProcessCommand(object _command)
        {
            var command = Compatibility.Check <IDWMCommand>(this, _command);

            if (command.DifWheelMovement == null)
            {
                return(UnitResponse.Denied());
            }
            this.movement = command.DifWheelMovement;
            return(UnitResponse.Accepted(command.DifWheelMovement.Duration));
        }