Пример #1
0
 /// <summary>
 /// Serialize global and vessel data to files. BeforeSerialized and OnSerialize callbacks are used.
 /// </summary>
 public virtual void Serialize()
 {
     BeforeSerialized();
     AutoSerialization.Serialize(this, module_name.Replace(' ', '_'),
                                 KSPUtil.ApplicationRootPath + "GameData/AtmosphereAutopilot/designs/" + vessel.vesselName + ".txt",
                                 typeof(VesselSerializable), OnSerialize);
     AutoSerialization.Serialize(this, module_name.Replace(' ', '_'),
                                 KSPUtil.ApplicationRootPath + "GameData/AtmosphereAutopilot/Global_settings.txt",
                                 typeof(GlobalSerializable), OnSerialize);
 }
Пример #2
0
 /// <summary>
 /// Serialize global and vessel data to files. BeforeSerialized and OnSerialize callbacks are used.
 /// </summary>
 public virtual void Serialize()
 {
     BeforeSerialized();
     AutoSerialization.Serialize(this, module_name.Replace(' ', '_'),
                                 "designs", vessel.vesselName + ".txt",
                                 typeof(VesselSerializable), OnSerialize);
     AutoSerialization.Serialize(this, module_name.Replace(' ', '_'),
                                 "Global_settings.txt",
                                 typeof(GlobalSerializable), OnSerialize);
 }
Пример #3
0
 public void Serialize()
 {
     AutoSerialization.Serialize(this, "settings_wnd", KSPUtil.ApplicationRootPath + "GameData/AtmosphereAutopilot/Global_settings.txt",
                                 typeof(GlobalSerializable), OnSerialize);
 }
Пример #4
0
 public void Serialize()
 {
     AutoSerialization.Serialize(this, "settings_wnd", "Global_settings.txt",
                                 typeof(GlobalSerializable), OnSerialize);
 }
 /// <summary>
 /// Serialize window position
 /// </summary>
 public void Serialize()
 {
     AutoSerialization.Serialize(this, "hotkey_manager",
                                 "Global_settings.txt",
                                 typeof(GlobalSerializable));
 }
Пример #6
0
 /// <summary>
 /// Serialize window position
 /// </summary>
 public void Serialize()
 {
     AutoSerialization.Serialize(this, "hotkey_manager",
                                 KSPUtil.ApplicationRootPath + "GameData/AtmosphereAutopilot/Global_settings.txt",
                                 typeof(GlobalSerializable));
 }