From fad656e837d12d68a947411dead84915505c6ee8 Mon Sep 17 00:00:00 2001 From: N1Ran <38772205+N1Ran@users.noreply.github.com> Date: Tue, 11 Aug 2020 17:07:32 -0400 Subject: [PATCH] Added new features from SE to UI config page (#398) Co-authored-by: Olatide F Co-authored-by: Jimmacle --- Torch.Server/ViewModels/SessionSettingsViewModel.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Torch.Server/ViewModels/SessionSettingsViewModel.cs b/Torch.Server/ViewModels/SessionSettingsViewModel.cs index 6037485..4498ae0 100644 --- a/Torch.Server/ViewModels/SessionSettingsViewModel.cs +++ b/Torch.Server/ViewModels/SessionSettingsViewModel.cs @@ -303,6 +303,18 @@ namespace Torch.Server.ViewModels [Torch.Views.Display(Description = "Allows super gridding exploit to be used.", Name = "Enable Supergridding", GroupName = "Others")] public bool EnableSupergridding { get => _settings.EnableSupergridding; set => SetValue(ref _settings.EnableSupergridding, value); } + [Torch.Views.Display(Description = "Enables Selective Physics", Name = "Enable Selective Physics", GroupName = "Others")] + public bool EnableSelectivePhysics { get => _settings.EnableSelectivePhysicsUpdates; set => SetValue(ref _settings.EnableSelectivePhysicsUpdates, value); } + + [Torch.Views.Display(Description = "Allows steam's family sharing", Name = "Enable Family Sharing", GroupName = "Players")] + public bool EnableFamilySharing { get => _settings.FamilySharing; set => SetValue(ref _settings.FamilySharing, value); } + + [Torch.Views.Display(Description = "Enables PCU trading", Name = "Enable PCU Trading", GroupName = "Block Limits")] + public bool EnablePCUTrading { get => _settings.EnablePcuTrading; set => SetValue(ref _settings.EnablePcuTrading, value); } + + [Torch.Views.Display(Description = "Enables system for weather", Name = "Enable Weather System", GroupName = "Others")] + public bool EnableWeatherSystem { get => _settings.WeatherSystem; set => SetValue(ref _settings.WeatherSystem, value); } + public SessionSettingsViewModel(MyObjectBuilder_SessionSettings settings) { _settings = settings;