forked from Mutagen-Modding/Mutagen
-
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
50 changed files
with
18,753 additions
and
34 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
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
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
30 changes: 30 additions & 0 deletions
30
Mutagen.Bethesda.Starfield.Generator/Mutagen.Bethesda.Starfield.Generator.csproj
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,30 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFrameworks>net6.0;net7.0</TargetFrameworks> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Autofac" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Mutagen.Bethesda.Generation\Mutagen.Bethesda.Generation.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Update="Program.cs"> | ||
<CodeLanguage>cs</CodeLanguage> | ||
<DefaultPackFolder>content</DefaultPackFolder> | ||
<BuildAction>Compile</BuildAction> | ||
</Compile> | ||
<Compile Update="SkyrimGenerationConstructor.cs"> | ||
<CodeLanguage>cs</CodeLanguage> | ||
<DefaultPackFolder>content</DefaultPackFolder> | ||
<BuildAction>Compile</BuildAction> | ||
</Compile> | ||
</ItemGroup> | ||
</Project> |
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,21 @@ | ||
using Autofac; | ||
using Mutagen.Bethesda.Generation.Generator; | ||
using System.Diagnostics; | ||
|
||
ContainerBuilder builder = new(); | ||
builder.RegisterModule<GeneratorAutofacModule>(); | ||
builder.RegisterAssemblyTypes(typeof(Program).Assembly) | ||
.AsSelf() | ||
.AsImplementedInterfaces(); | ||
var cont = builder.Build(); | ||
var runner = cont.Resolve<GenerationRunner>(); | ||
|
||
#if DEBUG | ||
var detector = cont.Resolve<GenerationLineDetector>(); | ||
detector.LineDetected.Subscribe(x => | ||
{ | ||
Debugger.Break(); | ||
}); | ||
#endif | ||
|
||
await runner.Generate(); |
8 changes: 8 additions & 0 deletions
8
Mutagen.Bethesda.Starfield.Generator/SkyrimGenerationConstructor.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,8 @@ | ||
using Mutagen.Bethesda.Generation.Generator; | ||
|
||
namespace Mutagen.Bethesda.Starfield.Generator; | ||
|
||
public class StarfieldGenerationConstructor : IRecordGeneration | ||
{ | ||
public string Name => "Starfield"; | ||
} |
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,10 @@ | ||
[*.cs] | ||
|
||
# CS0108: // Member hides inherited member; missing new keyword | ||
dotnet_diagnostic.CS0108.severity = silent | ||
|
||
# CS0109: // Member does not hide an inherited member; new keyword is not required | ||
dotnet_diagnostic.CS0109.severity = silent | ||
|
||
# CS0162: // Unreachable code detected | ||
dotnet_diagnostic.CS0162.severity = silent |
14 changes: 14 additions & 0 deletions
14
Mutagen.Bethesda.Starfield/Assets/StarfieldModelAssetType.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 @@ | ||
using Mutagen.Bethesda.Assets; | ||
|
||
namespace Mutagen.Bethesda.Starfield.Assets; | ||
|
||
public class StarfieldModelAssetType : IAssetType | ||
{ | ||
#if NET7_0_OR_GREATER | ||
public static IAssetType Instance { get; } = new StarfieldModelAssetType(); | ||
#else | ||
public static readonly StarfieldModelAssetType Instance = new(); | ||
#endif | ||
public string BaseFolder => "Meshes"; | ||
public IEnumerable<string> FileExtensions => new []{".nif"}; | ||
} |
10 changes: 10 additions & 0 deletions
10
Mutagen.Bethesda.Starfield/Documentation/AspectInterfaceDocumentation_Generated.md
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,10 @@ | ||
# Aspect Interfaces | ||
Aspect Interfaces expose common aspects of records. For example, `INamed` are implemented by all records that have a `Name`. | ||
|
||
Functions can then be written that take in `INamed`, allowing any record that has a name to be passed in. | ||
## Interfaces to Concrete Classes | ||
### IModeled | ||
- Weapon | ||
## Concrete Classes to Interfaces | ||
### Weapon | ||
- IModeled |
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,9 @@ | ||
namespace Mutagen.Bethesda.Starfield; | ||
|
||
/// <summary> | ||
/// Different categories of Group records | ||
/// </summary> | ||
public enum GroupTypeEnum | ||
{ | ||
Type = 0, | ||
} |
17 changes: 17 additions & 0 deletions
17
Mutagen.Bethesda.Starfield/GameEnvironmentMixIn_Generated.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,17 @@ | ||
using Mutagen.Bethesda.Starfield; | ||
using Mutagen.Bethesda.Environments; | ||
using Mutagen.Bethesda.Plugins.Cache; | ||
|
||
namespace Mutagen.Bethesda | ||
{ | ||
public static class GameEnvironmentMixIn | ||
{ | ||
public static IGameEnvironment<IStarfieldMod, IStarfieldModGetter> Starfield( | ||
this GameEnvironment env, | ||
LinkCachePreferences? linkCachePrefs = null) | ||
{ | ||
return env.Construct<IStarfieldMod, IStarfieldModGetter>(GameRelease.Starfield, linkCachePrefs); | ||
} | ||
|
||
} | ||
} |
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,25 @@ | ||
using System.Collections.Generic; | ||
using Mutagen.Bethesda.Plugins; | ||
using Mutagen.Bethesda.Plugins.Implicit; | ||
using Mutagen.Bethesda.Starfield; | ||
|
||
namespace Mutagen.Bethesda | ||
{ | ||
public static class ImplicitsMixIn | ||
{ | ||
public static IReadOnlyCollection<ModKey> Starfield(this ImplicitBaseMasters _) | ||
{ | ||
return Implicits.Get(GameRelease.Starfield).BaseMasters; | ||
} | ||
|
||
public static IReadOnlyCollection<ModKey> Starfield(this ImplicitListings _) | ||
{ | ||
return Implicits.Get(GameRelease.Starfield).Listings; | ||
} | ||
|
||
public static IReadOnlyCollection<FormKey> Starfield(this ImplicitRecordFormKeys _) | ||
{ | ||
return Implicits.Get(GameRelease.Starfield).RecordFormKeys; | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
Mutagen.Bethesda.Starfield/Interfaces/Aspect/AspectInterfaceMapping_Generated.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,32 @@ | ||
/* | ||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
* Autogenerated by Loqui. Do not manually change. | ||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
*/ | ||
using System; | ||
using System.Collections.Generic; | ||
using Mutagen.Bethesda.Plugins.Records.Mapping; | ||
using Mutagen.Bethesda.Plugins.Aspects; | ||
using Loqui; | ||
|
||
namespace Mutagen.Bethesda.Starfield | ||
{ | ||
internal class StarfieldAspectInterfaceMapping : IInterfaceMapping | ||
{ | ||
public IReadOnlyDictionary<Type, InterfaceMappingResult> InterfaceToObjectTypes { get; } | ||
|
||
public GameCategory GameCategory => GameCategory.Starfield; | ||
|
||
public StarfieldAspectInterfaceMapping() | ||
{ | ||
var dict = new Dictionary<Type, InterfaceMappingResult>(); | ||
dict[typeof(IModeled)] = new InterfaceMappingResult(true, new ILoquiRegistration[] | ||
{ | ||
Weapon_Registration.Instance, | ||
}); | ||
dict[typeof(IModeledGetter)] = dict[typeof(IModeled)] with { Setter = false }; | ||
InterfaceToObjectTypes = dict; | ||
} | ||
} | ||
} | ||
|
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,19 @@ | ||
using Mutagen.Bethesda.Plugins.Records; | ||
|
||
namespace Mutagen.Bethesda.Starfield; | ||
|
||
/// <summary> | ||
/// Common interface for records that have a model | ||
/// </summary> | ||
public interface IModeled : IModeledGetter, IMajorRecordQueryable | ||
{ | ||
new Model? Model { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Common interface for records that have a model | ||
/// </summary> | ||
public interface IModeledGetter : IMajorRecordQueryableGetter | ||
{ | ||
IModelGetter? Model { get; } | ||
} |
25 changes: 25 additions & 0 deletions
25
Mutagen.Bethesda.Starfield/Interfaces/InheritingInterfaceMapping_Generated.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,25 @@ | ||
/* | ||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
* Autogenerated by Loqui. Do not manually change. | ||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
*/ | ||
using System; | ||
using System.Collections.Generic; | ||
using Mutagen.Bethesda.Plugins.Records.Mapping; | ||
using Loqui; | ||
|
||
namespace Mutagen.Bethesda.Starfield; | ||
|
||
internal class StarfieldInheritingInterfaceMapping : IInterfaceMapping | ||
{ | ||
public IReadOnlyDictionary<Type, InterfaceMappingResult> InterfaceToObjectTypes { get; } | ||
|
||
public GameCategory GameCategory => GameCategory.Starfield; | ||
|
||
public StarfieldInheritingInterfaceMapping() | ||
{ | ||
var dict = new Dictionary<Type, InterfaceMappingResult>(); | ||
InterfaceToObjectTypes = dict; | ||
} | ||
} | ||
|
Oops, something went wrong.