forked from FakeFishGames/Barotrauma
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- ModConfig work and resource data contracts.
- Loading branch information
1 parent
942c193
commit 0e34bb9
Showing
8 changed files
with
136 additions
and
32 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
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
12 changes: 12 additions & 0 deletions
12
Barotrauma/BarotraumaShared/SharedSource/LuaCs/Data/IConfigResourceInfo.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,12 @@ | ||
using System.Collections.Immutable; | ||
using System.Globalization; | ||
|
||
namespace Barotrauma.LuaCs.Data; | ||
|
||
public interface IConfigResourceInfo : IResourceInfo | ||
{ | ||
string FilePath { get; init; } | ||
Platform Platforms { get; init; } | ||
Target Targets { get; init; } | ||
ImmutableArray<CultureInfo> SupportedCultures { get; init; } | ||
} |
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
14 changes: 14 additions & 0 deletions
14
Barotrauma/BarotraumaShared/SharedSource/LuaCs/Data/IResourceInfo.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,14 @@ | ||
namespace Barotrauma.LuaCs.Data; | ||
|
||
public interface IResourceInfo | ||
{ | ||
/// <summary> | ||
/// Platforms that these localization files should be loaded for. | ||
/// </summary> | ||
Platform SupportedPlatforms { get; } | ||
|
||
/// <summary> | ||
/// Targets that these localization files should be loaded for. | ||
/// </summary> | ||
Target SupportedTargets { get; init; } | ||
} |
18 changes: 18 additions & 0 deletions
18
Barotrauma/BarotraumaShared/SharedSource/LuaCs/Data/IRunConfig.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,18 @@ | ||
namespace Barotrauma.LuaCs.Data; | ||
|
||
/// <summary> | ||
/// Legacy data contract for the old run configuration system. Should be deprecated | ||
/// once no longer needed. | ||
/// </summary> | ||
public interface IRunConfig | ||
{ | ||
bool UseNonPublicizedAssemblies { get; } | ||
bool AutoGenerated { get; } | ||
bool UseInternalAssemblyName { get; } | ||
string Client { get; } | ||
string Server { get; } | ||
|
||
bool IsForced(); | ||
bool IsStandard(); | ||
bool IsForcedOrStandard(); | ||
} |
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