private void CachePlanet(PlanetInfo planetInfo) { if (this._cachedPlanet != null) { if (PlanetInfo.AreSame(planetInfo, this._cachedPlanetInfo)) { return; } this._app.ReleaseObject((IGameObject)this._cachedPlanet); this._cachedPlanet = (StellarBody)null; } this._cachedPlanetInfo = planetInfo; this._cachedPlanetReady = false; this._cachedPlanet = Kerberos.Sots.GameStates.StarSystem.CreatePlanet(this._app.Game, Vector3.Zero, planetInfo, Matrix.Identity, 1f, false, Kerberos.Sots.GameStates.StarSystem.TerrestrialPlanetQuality.High); this._cachedPlanet.PostSetProp("AutoDraw", false); }