Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions SatisfactorySaveEditor/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<section name="SatisfactorySaveEditor.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<userSettings>
<SatisfactorySaveEditor.Properties.Settings>
<setting name="WindowWidth" serializeAs="String">
Expand Down
1 change: 0 additions & 1 deletion SatisfactorySaveEditor/Cheats/CrateSummonCheat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using SatisfactorySaveParser.PropertyTypes;
using SatisfactorySaveParser.PropertyTypes.Structs;
using SatisfactorySaveParser.Structures;
using System.Numerics;
using System.Windows;

namespace SatisfactorySaveEditor.Cheats
Expand Down
1 change: 0 additions & 1 deletion SatisfactorySaveEditor/Cheats/KillPlayersCheat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using SatisfactorySaveParser.PropertyTypes;
using SatisfactorySaveParser.PropertyTypes.Structs;
using SatisfactorySaveParser.Structures;
using System.Numerics;
using System.Windows;

namespace SatisfactorySaveEditor.Cheats
Expand Down
1 change: 0 additions & 1 deletion SatisfactorySaveEditor/Cheats/MassDismantleWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
Expand Down
4 changes: 2 additions & 2 deletions SatisfactorySaveEditor/Model/SaveComponentModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Globalization;
using System.Linq;
using System.Windows;
using GalaSoft.MvvmLight.Command;
using Microsoft.Toolkit.Mvvm.Input;
using SatisfactorySaveEditor.View;
using SatisfactorySaveEditor.ViewModel;
using SatisfactorySaveEditor.ViewModel.Property;
Expand All @@ -20,7 +20,7 @@ public class SaveComponentModel : SaveObjectModel
public string ParentEntityName
{
get => parentEntityName;
set { Set(() => ParentEntityName, ref parentEntityName, value); }
set { SetProperty(ref parentEntityName, value); }
}

public RelayCommand FillInventoryCommand => new RelayCommand(FillInventory);
Expand Down
15 changes: 7 additions & 8 deletions SatisfactorySaveEditor/Model/SaveEntityModel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using SatisfactorySaveParser;
using SatisfactorySaveParser.Structures;
using System.Numerics;

namespace SatisfactorySaveEditor.Model
{
Expand All @@ -17,42 +16,42 @@ public class SaveEntityModel : SaveObjectModel
public bool NeedTransform
{
get => needTransform;
set { Set(() => NeedTransform, ref needTransform, value); }
set { SetProperty(ref needTransform, value); }
}

public bool WasPlacedInLevel
{
get => wasPlacedInLevel;
set { Set(() => WasPlacedInLevel, ref wasPlacedInLevel, value); }
set { SetProperty(ref wasPlacedInLevel, value); }
}

public Vector4 Rotation
{
get => rotation;
set { Set(() => Rotation, ref rotation, value); }
set { SetProperty(ref rotation, value); }
}
public Vector3 Position
{
get => position;
set { Set(() => Position, ref position, value); }
set { SetProperty(ref position, value); }
}

public Vector3 Scale
{
get => scale;
set { Set(() => Scale, ref scale, value); }
set { SetProperty(ref scale, value); }
}

public string ParentObjectRoot
{
get => parentObjectRoot;
set { Set(() => ParentObjectRoot, ref parentObjectRoot, value); }
set { SetProperty(ref parentObjectRoot, value); }
}

public string ParentObjectName
{
get => parentObjectName;
set { Set(() => ParentObjectName, ref parentObjectName, value); }
set { SetProperty(ref parentObjectName, value); }
}

public SaveEntityModel(SaveEntity ent) : base(ent)
Expand Down
16 changes: 8 additions & 8 deletions SatisfactorySaveEditor/Model/SaveObjectModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using System.Globalization;
using System.Linq;
using System.Windows;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using Microsoft.Toolkit.Mvvm.ComponentModel;
using Microsoft.Toolkit.Mvvm.Input;
using SatisfactorySaveEditor.Util;
using SatisfactorySaveEditor.View;
using SatisfactorySaveEditor.ViewModel;
Expand All @@ -14,7 +14,7 @@

namespace SatisfactorySaveEditor.Model
{
public class SaveObjectModel : ViewModelBase
public class SaveObjectModel : ObservableObject
{
private string title;
private string rootObject;
Expand Down Expand Up @@ -66,31 +66,31 @@ public List<SaveObjectModel> DescendantSelfViewModel
public string Title
{
get => title;
set { Set(() => Title, ref title, value); }
set { SetProperty(ref title, value); }
}

public string RootObject
{
get => rootObject;
set { Set(() => RootObject, ref rootObject, value); }
set { SetProperty(ref rootObject, value); }
}

public string Type
{
get => type;
set { Set(() => Type, ref type, value); }
set { SetProperty(ref type, value); }
}

public bool IsSelected
{
get => isSelected;
set { Set(() => IsSelected, ref isSelected, value); }
set { SetProperty(ref isSelected, value); }
}

public bool IsExpanded
{
get => isExpanded;
set { Set(() => IsExpanded, ref isExpanded, value); }
set { SetProperty(ref isExpanded, value); }
}

public SaveObject Model { get; }
Expand Down
12 changes: 6 additions & 6 deletions SatisfactorySaveEditor/Model/SaveRootModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,39 +20,39 @@ public class SaveRootModel : SaveObjectModel
public string MapName
{
get => mapName;
set { Set(() => MapName, ref mapName, value); }
set { SetProperty(ref mapName, value); }
}

public string MapOptions
{
get => mapOptions;
set { Set(() => MapOptions, ref mapOptions, value); }
set { SetProperty(ref mapOptions, value); }
}

public string SessionName
{
get => sessionName;
set { Set(() => SessionName, ref sessionName, value); }
set { SetProperty(ref sessionName, value); }
}

public int PlayDuration
{
get => playDuration;
set { Set(() => PlayDuration, ref playDuration, value); }
set { SetProperty(ref playDuration, value); }
}

public bool HasSessionVisibility => HeaderVersion >= SaveHeaderVersion.AddedSessionVisibility;

public ESessionVisibility SessionVisibility
{
get => sessionVisibility;
set { Set(() => SessionVisibility, ref sessionVisibility, value); }
set { SetProperty(ref sessionVisibility, value); }
}

public long SaveDateTime
{
get => saveDateTime;
set { Set(() => SaveDateTime, ref saveDateTime, value); }
set { SetProperty(ref saveDateTime, value); }
}

public SaveRootModel(FSaveHeader header) : base(header.SessionName)
Expand Down
Loading