Ejemplo n.º 1
0
    public override void SetConfig(NotebookConfig config)
    {
        base.SetConfig(config);

        // If the acronym is not the same length as the notes, rebuild the notes
        if (config.Acronym.Length != acronymNotes.Count)
        {
            acronymNotes.Clear();

            // Add an empty string for every character
            foreach (char _ in config.Acronym)
            {
                acronymNotes.Add("");
            }
        }
        // Unlock each initial item
        foreach (ItemID item in config.InitiallyUnlockedItems)
        {
            UnlockItem(item);
        }

        // Set config for each sub-module
        research.SetConfig(config);
        observations.SetConfig(config);
        concepts.SetConfig(config);
        testAndMetrics.SetConfig(config);
        reports.SetConfig(config);
    }