public bool LoadSettings()
        {
            if (PlanetShield.Storage == null)
            {
                return(false);
            }

            string rawData;
            bool   loadedSomething = false;

            if (PlanetShield.Storage.TryGetValue(Session.Instance.PlanetShieldSettingsGuid, out rawData))
            {
                PlanetShieldSettingsValues loadedSettings = null;
                var base64 = Convert.FromBase64String(rawData);
                loadedSettings = MyAPIGateway.Utilities.SerializeFromBinary <PlanetShieldSettingsValues>(base64);

                if (loadedSettings != null)
                {
                    Settings        = loadedSettings;
                    loadedSomething = true;
                }
                if (Session.Enforced.Debug == 3)
                {
                    Log.Line($"Loaded - PlanetShieldId [{PlanetShield.EntityId}]:\n{Settings.ToString()}");
                }
            }
            return(loadedSomething);
        }
 public DataPlanetShieldSettings(long entityId, PlanetShieldSettingsValues settings) : base(entityId)
 {
     Settings = settings;
 }