Exemplo n.º 1
0
 private void Load(ConfigNode node)
 {
     VabSettings.Load(node.GetNode("VAB"));
     SphSettings.Load(node.GetNode("SPH"));
     WindowPosition = node.GetValue(nameof(WindowPosition))?.ParseNullableVector2() ?? DefaultWindowPosition;
     {
         bool b = false;
         node.TryGetValue("UseSaveGameSettings", ref b);
         UseSaveGameSettings = b;
     }
 }
Exemplo n.º 2
0
        public void Save(ConfigNode node)
        {
            node.SetValue(nameof(WindowPosition), WindowPosition, true);

            var vabNode = new ConfigNode();

            VabSettings.Save(vabNode);
            node.SetNode("VAB", vabNode, true);

            var sphNode = new ConfigNode();

            SphSettings.Save(sphNode);
            node.SetNode("SPH", sphNode, true);
        }
Exemplo n.º 3
0
        private void Save(ConfigNode node)
        {
            node.SetValue(nameof(WindowPosition), WindowPosition, true);

            ConfigNode vabNode = new ConfigNode();

            VabSettings.Save(vabNode);
            node.SetNode("VAB", vabNode, true);

            ConfigNode sphNode = new ConfigNode();

            SphSettings.Save(sphNode);
            node.SetNode("SPH", sphNode, true);

            node.SetValue("UseSaveGameSettings", UseSaveGameSettings, true);
        }
Exemplo n.º 4
0
 public void Load(ConfigNode node)
 {
     VabSettings.Load(node.GetNode("VAB"));
     SphSettings.Load(node.GetNode("SPH"));
     WindowPosition = node.GetValue(nameof(WindowPosition))?.ParseNullableVector2() ?? DefaultWindowPosition;
 }