public DewritoSettings() { Player = new DewritoPlayerSettings(); Video = new DewritoVideoSettings(); Host = new DewritoHostSettings(); Input = new DewritoInputSettings(); }
public void Save(DewritoPlayerSettings settings) { settings.Name = _name; if (settings.Armor == null) { settings.Armor = new DewritoArmorSettings(); } if (settings.Colors == null) { settings.Colors = new DewritoColorSettings(); } _armor.Save(settings.Armor); _colors.Save(settings.Colors); }
public PlayerSettingsViewModel(DewritoPlayerSettings settings) { Load(settings); }
private void Load(DewritoPlayerSettings settings) { _name = settings.Name; _armor = new ArmorSettingsViewModel(settings.Armor ?? new DewritoArmorSettings()); _colors = new ColorSettingsViewModel(settings.Colors ?? new DewritoColorSettings()); }