예제 #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));
        }