-
-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
333 additions
and
557 deletions.
There are no files selected for viewing
Submodule CUE4Parse
updated
5 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using CUE4Parse.UE4.Assets.Exports.Texture; | ||
using CUE4Parse.UE4.Versions; | ||
using FModel.Framework; | ||
using FModel.ViewModels; | ||
using FModel.ViewModels.ApiEndpoints.Models; | ||
|
||
namespace FModel.Settings; | ||
|
||
public class DirectorySettings : ViewModel | ||
{ | ||
private string _gameName; | ||
public string GameName | ||
{ | ||
get => _gameName; | ||
set => SetProperty(ref _gameName, value); | ||
} | ||
|
||
private string _gameDirectory; | ||
public string GameDirectory | ||
{ | ||
get => _gameDirectory; | ||
set => SetProperty(ref _gameDirectory, value); | ||
} | ||
|
||
private bool _isManual; | ||
public bool IsManual | ||
{ | ||
get => _isManual; | ||
set => SetProperty(ref _isManual, value); | ||
} | ||
|
||
private EGame _ueVersion = EGame.GAME_UE4_LATEST; | ||
public EGame UeVersion | ||
{ | ||
get => _ueVersion; | ||
set => SetProperty(ref _ueVersion, value); | ||
} | ||
|
||
private ETexturePlatform _texturePlatform = ETexturePlatform.DesktopMobile; | ||
public ETexturePlatform TexturePlatform | ||
{ | ||
get => _texturePlatform; | ||
set => SetProperty(ref _texturePlatform, value); | ||
} | ||
|
||
private AesResponse _aesKeys; | ||
public AesResponse AesKeys | ||
{ | ||
get => _aesKeys; | ||
set => SetProperty(ref _aesKeys, value); | ||
} | ||
|
||
private VersioningSettings _versioning = new (); | ||
public VersioningSettings Versioning | ||
{ | ||
get => _versioning; | ||
set => SetProperty(ref _versioning, value); | ||
} | ||
|
||
private FEndpoint[] _endpoints = { new (), new () }; | ||
public FEndpoint[] Endpoints | ||
{ | ||
get => _endpoints; | ||
set => SetProperty(ref _endpoints, value); | ||
} | ||
|
||
private IList<CustomDirectory> _directories = new List<CustomDirectory>(); | ||
public IList<CustomDirectory> Directories | ||
{ | ||
get => _directories; | ||
set => SetProperty(ref _directories, value); | ||
} | ||
|
||
private bool Equals(DirectorySettings other) | ||
{ | ||
return GameDirectory == other.GameDirectory && UeVersion == other.UeVersion; | ||
} | ||
|
||
public override bool Equals(object obj) | ||
{ | ||
return obj is DirectorySettings other && Equals(other); | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
return HashCode.Combine(GameDirectory, (int) UeVersion); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.