-
Notifications
You must be signed in to change notification settings - Fork 0
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
3 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
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
33 changes: 33 additions & 0 deletions
33
src/Bannerlord.LauncherManager.Models/ModuleInfoExtendedWithPath.cs
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,33 @@ | ||
using System.Collections.Generic; | ||
using Bannerlord.ModuleManager; | ||
|
||
namespace Bannerlord.LauncherManager.Models; | ||
|
||
public record ModuleInfoExtendedWithPath : ModuleInfoExtended | ||
{ | ||
public string Path { get; set; } = string.Empty; | ||
|
||
public ModuleInfoExtendedWithPath() { } | ||
public ModuleInfoExtendedWithPath(string path, string id, string name, bool isOfficial, ApplicationVersion version, bool isSingleplayerModule, bool isMultiplayerModule, | ||
IReadOnlyList<SubModuleInfoExtended> subModules, IReadOnlyList<DependentModule> dependentModules, IReadOnlyList<DependentModule> modulesToLoadAfterThis, | ||
IReadOnlyList<DependentModule> incompatibleModules, IReadOnlyList<DependentModuleMetadata> dependentModuleMetadatas, string url) | ||
{ | ||
Path = path; | ||
Id = id; | ||
Name = name; | ||
IsOfficial = isOfficial; | ||
Version = version; | ||
IsSingleplayerModule = isSingleplayerModule; | ||
IsMultiplayerModule = isMultiplayerModule; | ||
SubModules = subModules; | ||
DependentModules = dependentModules; | ||
ModulesToLoadAfterThis = modulesToLoadAfterThis; | ||
IncompatibleModules = incompatibleModules; | ||
DependentModuleMetadatas = dependentModuleMetadatas; | ||
Url = url; | ||
} | ||
public ModuleInfoExtendedWithPath(ModuleInfoExtended module, string path) : base(module) | ||
{ | ||
Path = path; | ||
} | ||
} |
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