void LoadConfig() { config = new KerbalWindConfig(); foreach (ConfigNode node in GameDatabase.Instance.GetConfigNodes("KERBAL_WIND")) { if (node.HasNode("LightTurbulence")) { config.LightTurbulence.Load(node.GetNode("LightTurbulence")); } if (node.HasNode("ModerateTurbulence")) { config.ModerateTurbulence.Load(node.GetNode("ModerateTurbulence")); } if (node.HasNode("SevereTurbulence")) { config.SevereTurbulence.Load(node.GetNode("SevereTurbulence")); } if (node.HasNode("AltitudeMultiplier")) { config.AltitudeMultiplier.Load(node.GetNode("AltitudeMultiplier")); } break; } }
public void Init(KerbalWindConfig cfg) { Y_u = Y_v = Y_w = 0f; config = cfg; }