Tibialyzer.QuestGuideForm.prev C# (CSharp) Метод

prev() приватный Метод

private prev ( ) : bool
Результат bool
        private bool prev()
        {
            currentPage--;
            if (instructionIndex > minInstructions) {
                instructionIndex--;
                if (instructionIndex == 0) {
                    instructionIndex = 1;
                }

                if (this.quest != null) {
                    this.questInstruction = this.questInstructionList[instructionIndex - 1];
                    int ordering = questInstruction.ordering;
                    while (instructionIndex - 2 >= 0 && this.questInstructionList[instructionIndex - 2].ordering == ordering) {
                        instructionIndex--;
                        this.questInstruction = this.questInstructionList[instructionIndex - 1];
                    }
                } else {
                    this.direction = this.hunt.directions[instructionIndex - 1];
                    int ordering = direction.ordering;
                    while (instructionIndex - 2 >= 0 && this.hunt.directions[instructionIndex - 2].ordering == ordering) {
                        instructionIndex--;
                        direction = this.hunt.directions[instructionIndex - 1];
                    }
                }
                return true;
            }
            return false;
        }