示例#1
0
        private void Rotate(string identifier)
        {
            var movement = MovementRepository.Get(identifier) ?? throw new Exception($"Unknown rotation: {identifier}");

            DoRotation(movement);
        }
示例#2
0
        public void Rotate(CubeSlice slice, MoveDirection direction = MoveDirection.Single)
        {
            var movement = MovementRepository.Get(slice, direction) ?? throw new Exception($"Unknown rotation: {slice} {direction}");

            DoRotation(movement);
        }
示例#3
0
 private MovementRepository()
 {
     _movementRepository = this;
 }