Пример #1
0
 public void SaveTo(IniFileSection section, bool allowCspOptions)
 {
     section.SetOrRemove("MODEL", CarId);
     if (allowCspOptions && CspOptions.Pack(out var packed))
     {
         section.Set("SKIN", CarSkinId + "/" + packed);
     }
     else
     {
         section.SetOrRemove("SKIN", CarSkinId);
     }
     section.Set("SPECTATOR_MODE", SpectatorMode);
     section.Set("DRIVERNAME", DriverName ?? "");
     section.Set("TEAM", TeamName ?? "");
     section.Set("GUID", Guid ?? "");
     section.Set("BALLAST", Ballast);
     section.Set("RESTRICTOR", Restrictor);
 }
Пример #2
0
 public void SaveTo(IniFileSection section)
 {
     section.SetOrRemove("MODEL", CarId);
     section.SetOrRemove("SKIN", CarSkinId);
     section.SetOrRemove("SPECTATOR_MODE", SpectatorMode);
     section.SetOrRemove("DRIVERNAME", DriverName);
     section.SetOrRemove("TEAM", TeamName);
     section.SetOrRemove("GUID", Guid);
     section.Set("BALLAST", Ballast);
     section.Set("RESTRICTOR", Restrictor);
 }