public void LoadNames(Model_SaveData data)
    {
        if (data.namesData == null)
        {
            Debug.Log("There is no names state data to load.");
            return;
        }

        Model_Names names = new Model_Names(
            _Player:                    data.namesData.Player,
            _Ids:                       data.namesData.Ids,
            _Ero:                       data.namesData.Ero,
            _Myne:                      data.namesData.Myne,
            _Eileen:                    data.namesData.Eileen,
            _Ellenia:                   data.namesData.Ellenia,
            _Tedwich:                   data.namesData.Tedwich,
            _Ursie:                     data.namesData.Ursie,
            _Kaffe:                     data.namesData.Kaffe,
            _Latte:                     data.namesData.Latte,
            _KingEclaire:               data.namesData.KingEclaire,
            _Suzette:                   data.namesData.Suzette,
            _Peche:                     data.namesData.Peche,
            _Melba:                     data.namesData.Melba,
            _Moose:                     data.namesData.Moose,
            _Flan:                      data.namesData.Flan
            );

        Script_Names.LoadNames(names);

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(names);
    }
    public override void Load(Model_RunData data)
    {
        if (data.levelsData == null)
        {
            Debug.Log("There is no levels state data to load.");
            return;
        }

        if (data.levelsData.LB20 == null)
        {
            Debug.Log("There is no LB20 state data to load.");
            return;
        }

        Model_LevelBehavior_20 lvlModel = data.levelsData.LB20;

        LB20.isKingIntroCutSceneDone = lvlModel.isKingIntroCutSceneDone;
        LB20.season = lvlModel.season;
        LB20.entranceCutSceneDone = lvlModel.entranceCutSceneDone;
        LB20.isPuzzleComplete     = lvlModel.isPuzzleComplete;
        LB20.didPickUpMasterKey   = lvlModel.didPickUpMasterKey;
        LB20.didUnlockMasterLock  = lvlModel.didUnlockMasterLock;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
Example #3
0
    public override void Load(Model_RunData data)
    {
        Model_LevelBehavior_29 lvlModel = data.levelsData.LB29;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
Example #4
0
    public override void Load(Model_RunData data)
    {
        Model_LevelBehavior_47 lvlModel = data.levelsData.LB47;

        LB47.didPickUpPuppeteerSticker = lvlModel.didPickUpPuppeteerSticker;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
    public override void Load(Model_RunData data)
    {
        Model_LevelBehavior_41 lvlModel = data.levelsData.LB41;

        LB41.didPickUpMelancholyPianoSticker = lvlModel.didPickUpMelancholyPianoSticker;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
    public override void Load(Model_RunData data)
    {
        Model_LevelBehavior_10 lvlModel = data.levelsData.LB10;

        LB10.gotBoarNeedle = lvlModel.gotBoarNeedle;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
Example #7
0
    public override void Load(Model_RunData data)
    {
        Model_LevelBehavior_27 lvlModel = data.levelsData.LB27;

        LB27.GotPsychicDuck = lvlModel.gotPsychicDuck;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
    public override void Load(Model_RunData data)
    {
        Model_LevelBehavior_48 lvlModel = data.levelsData.LB48;

        LB48.IsDone       = lvlModel.isDone;
        LB48.IsFinalRound = lvlModel.isFinalRound;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
Example #9
0
    public override void Load(Model_RunData data)
    {
        Model_LevelBehavior_46 lvlModel = data.levelsData.LB46;

        LB46.isPuzzleComplete = lvlModel.isPuzzleComplete;
        LB46.didPlayFaceOff   = lvlModel.didPlayFaceOff;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
    public override void Load(Model_RunData data)
    {
        Model_LevelBehavior_42 lvlModel = data.levelsData.LB42;

        LB42.didPickUpLastWellMap = lvlModel.didPickUpLastWellMap;
        LB42.didPickUpSpeedSeal   = lvlModel.didPickUpSpeedSeal;
        LB42.isMooseQuestDone     = lvlModel.isMooseQuestDone;
        LB42.didPlayFaceOff       = lvlModel.didPlayFaceOff;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
Example #11
0
    public void LoadPlayerData(Model_SaveData data)
    {
        Model_PlayerState p = new Model_PlayerState(
            data.playerData.spawnX,
            data.playerData.spawnY,
            data.playerData.spawnZ,
            data.playerData.faceDirection
            );

        game.SetPlayerState(p);

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(p);
    }
    public override void Load(Model_RunData data)
    {
        if (data.levelsData == null)
        {
            Debug.Log("There is no levels state data to load.");
            return;
        }

        if (data.levelsData.LB19 == null)
        {
            Debug.Log("There is no LB19 state data to load.");
            return;
        }

        Model_LevelBehavior_19 lvlModel = data.levelsData.LB19;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
    public override void Load(Model_RunData data)
    {
        if (data.levelsData == null)
        {
            Debug.Log("There is no levels state data to load.");
            return;
        }

        if (data.levelsData.LB13 == null)
        {
            Debug.Log("There is no LB13 state data to load.");
            return;
        }

        Model_LevelBehavior_13 lvlModel = data.levelsData.LB13;

        LB13.didPickUpLightSticker = lvlModel.didPickUpLightSticker;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
    public override void Load(Model_RunData data)
    {
        if (data.levelsData == null)
        {
            Debug.Log("There is no levels state data to load.");
            return;
        }

        if (data.levelsData.LB22 == null)
        {
            Debug.Log("There is no LB22 state data to load.");
            return;
        }

        Model_LevelBehavior_22 lvlModel = data.levelsData.LB22;

        LB22.isUrsieCutsceneDone = lvlModel.isUrsieCutsceneDone;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
Example #15
0
    public override void Load(Model_RunData data)
    {
        if (data.levelsData == null)
        {
            Debug.Log("There is no levels state data to load.");
            return;
        }

        if (data.levelsData.LB32 == null)
        {
            Debug.Log("There is no LB32 state data to load.");
            return;
        }

        Model_LevelBehavior_32 lvlModel = data.levelsData.LB32;

        LB32.didStartThought = lvlModel.didStartThought;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
    public void LoadEventCycle(Model_SaveData data)
    {
        if (data.eventCycleData == null)
        {
            Debug.Log($"There is no {this} state data to load.");
            return;
        }

        Model_EventCycleData eventCycle = new Model_EventCycleData(
            _didInteractPositivelyWithIds: data.eventCycleData.didInteractPositivelyWithIds,
            _idsPositiveInteractionCount: data.eventCycleData.idsPositiveInteractionCount,
            _didTalkToElleniaCountdown: data.eventCycleData.didTalkToElleniaCountdown
            );

        eventCycleManager.DidInteractPositivelyWithIds = eventCycle.didInteractPositivelyWithIds;
        eventCycleManager.IdsPositiveInteractionCount  = eventCycle.idsPositiveInteractionCount;
        eventCycleManager.DidTalkToEllenia             = eventCycle.didTalkToElleniaCountdown;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(eventCycle);
    }
    public override void Load(Model_RunData data)
    {
        if (data.levelsData == null)
        {
            Debug.Log("There is no levels state data to load.");
            return;
        }

        if (data.levelsData.LB25 == null)
        {
            Debug.Log("There is no LB25 state data to load.");
            return;
        }

        Model_LevelBehavior_25 lvlModel = data.levelsData.LB25;

        LB25.isPuzzleComplete  = lvlModel.isPuzzleComplete;
        LB25.spokenWithEllenia = lvlModel.spokenWithEllenia;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
    public override void Load(Model_RunData data)
    {
        if (data.levelsData == null)
        {
            Debug.Log("There is no levels state data to load.");
            return;
        }

        if (data.levelsData.LB21 == null)
        {
            Debug.Log("There is no LB21 state data to load.");
            return;
        }

        Model_LevelBehavior_21 lvlModel = data.levelsData.LB21;

        LB21.spokenWithEileen    = lvlModel.spokenWithEileen;
        LB21.didOnEntranceAttack = lvlModel.didOnEntranceAttack;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
    public override void Load(Model_RunData data)
    {
        if (data.levelsData == null)
        {
            Debug.Log("There is no levels state data to load.");
            return;
        }

        if (data.levelsData.LB24 == null)
        {
            Debug.Log("There is no LB24 state data to load.");
            return;
        }

        Model_LevelBehavior_24 lvlModel = data.levelsData.LB24;

        LB24.IsPuzzleComplete     = lvlModel.isPuzzleComplete;
        LB24.didPickUpSpringStone = lvlModel.didPickUpSpringStone;
        LB24.didPlayFaceOff       = lvlModel.didPlayFaceOff;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
    public override void Load(Model_RunData data)
    {
        if (data.levelsData == null)
        {
            Debug.Log("There is no levels state data to load.");
            return;
        }

        if (data.levelsData.LB26 == null)
        {
            Debug.Log("There is no LB26 state data to load.");
            return;
        }

        Model_LevelBehavior_26 lvlModel = data.levelsData.LB26;

        LB26.isPuzzleComplete            = lvlModel.isPuzzleComplete;
        LB26.didActivateDramaticThoughts = lvlModel.didActivateDramaticThoughts;
        LB26.gotIceSpikeSticker          = lvlModel.gotIceSpikeSticker;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }
    public override void Load(Model_RunData data)
    {
        if (data.levelsData == null)
        {
            Debug.Log("There is no levels state data to load.");
            return;
        }

        if (data.levelsData.LB0 == null)
        {
            Debug.Log("There is no LB0 state data to load.");
            return;
        }

        Model_LevelBehavior_0 lvlModel = data.levelsData.LB0;

        LB0.didStartThought = lvlModel.didStartThought;
        LB0.demonSpawns     = lvlModel.demonSpawns;
        LB0.isDone          = lvlModel.isDone;

        Debug.Log($"-------- LOADED {name} --------");
        Script_Utils.DebugToConsole(lvlModel);
    }