Beispiel #1
0
        public bool IsTrialCompleted(LabyrinthTrial trialWrapper)
        {
            if (trialWrapper == null)
            {
                throw new ArgumentException($"Argument {nameof(trialWrapper)} should not be null");
            }

            return(TrialPassStates.Get(trialWrapper.Id - 1));
        }
Beispiel #2
0
        public bool IsTrialCompleted(string trialId)
        {
            var trialWrapper = GameController.Instance.Files.LabyrinthTrials.GetLabyrinthTrialByAreaId(trialId);

            if (trialWrapper == null)
            {
                throw new ArgumentException($"Trial with id '{trialId}' is not found. Use WorldArea.Id or LabyrinthTrials.LabyrinthTrialAreaIds[]");
            }

            return(TrialPassStates.Get(trialWrapper.Id - 1));
        }
Beispiel #3
0
        public bool IsTrialCompleted(WorldArea area)
        {
            if (area == null)
            {
                throw new ArgumentException($"Argument {nameof(area)} should not be null");
            }

            var trialWrapper = TheGame.Files.LabyrinthTrials.GetLabyrinthTrialByArea(area);

            if (trialWrapper == null)
            {
                throw new ArgumentException($"Can't find trial wrapper for area '{area.Name}' (seems not a trial area).");
            }

            return(TrialPassStates.Get(trialWrapper.Id - 1));
        }