Skip to content

Commit

Permalink
Missing override mask registrations for Fo4/Starfield
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Dec 6, 2024
1 parent 5cab767 commit 8d92b70
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Mutagen.Bethesda.Fallout4/Extensions/ModContextExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ internal static class ModContextExt
SubCellsTimestamp = false,
};

public static readonly Quest.TranslationMask QuestCopyMask = new(true)
{
Timestamp = false,
Unknown = false,
DialogBranches = false,
DialogConditions = false,
Scenes = false,
};

public static readonly DialogTopic.TranslationMask DialogTopicCopyMask = new(true)
{
Timestamp = false,
Unknown = false,
Responses = false
};

public static readonly Landscape.TranslationMask? LandscapeCopyMask = null;

private static readonly string CellObjectKey =
Expand Down
1 change: 1 addition & 0 deletions Mutagen.Bethesda.Fallout4/Mutagen.Bethesda.Fallout4.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<BuildAction>Compile</BuildAction>
</Compile>
<Compile Include="InternalsPermissions.cs" />
<Compile Include="Plugins\Cache\Internals\Fallout4OverrideMaskRegistration.cs" />
<Compile Include="Records\Common Subrecords\ActivateParents.cs">
<DependentUpon>ActivateParents.xml</DependentUpon>
</Compile>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Loqui;
using Mutagen.Bethesda.Plugins.Cache.Internals;

namespace Mutagen.Bethesda.Fallout4;

internal class Fallout4OverrideMaskRegistration : IOverrideMaskRegistration
{
public IEnumerable<(ILoquiRegistration, object)> Masks
{
get
{
yield return (Cell_Registration.Instance, ModContextExt.CellCopyMask);
yield return (Worldspace_Registration.Instance, ModContextExt.WorldspaceCopyMask);
yield return (Quest_Registration.Instance, ModContextExt.QuestCopyMask);
yield return (DialogTopic_Registration.Instance, ModContextExt.DialogTopicCopyMask);
}
}
}
16 changes: 16 additions & 0 deletions Mutagen.Bethesda.Starfield/Extensions/ModContextExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ internal static class ModContextExt
SubCellsTimestamp = false,
};

public static readonly Quest.TranslationMask QuestCopyMask = new(true)
{
Timestamp = false,
Unknown = false,
DialogBranches = false,
DialogConditions = false,
Scenes = false,
};

public static readonly DialogTopic.TranslationMask DialogTopicCopyMask = new(true)
{
Timestamp = false,
Unknown = false,
Responses = false
};

private static readonly string CellObjectKey =
LoquiRegistration.StaticRegister.GetRegister(typeof(ICell)).FullName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
</Compile>
<Compile Include="Interfaces\Link\IStaticTarget_Generated.cs" />
<Compile Include="InternalsPermissions.cs" />
<Compile Include="Plugins\Cache\Internal\StarfieldOverrideMaskRegistration.cs" />
<Compile Include="Records\Common Subrecords\AComponent.cs">
<DependentUpon>Component.xml</DependentUpon>
</Compile>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Loqui;
using Mutagen.Bethesda.Plugins.Cache.Internals;

namespace Mutagen.Bethesda.Starfield;

internal class SkyrimOverrideMaskRegistration : IOverrideMaskRegistration
{
public IEnumerable<(ILoquiRegistration, object)> Masks
{
get
{
yield return (Cell_Registration.Instance, ModContextExt.CellCopyMask);
yield return (Worldspace_Registration.Instance, ModContextExt.WorldspaceCopyMask);
yield return (Quest_Registration.Instance, ModContextExt.QuestCopyMask);
yield return (DialogTopic_Registration.Instance, ModContextExt.DialogTopicCopyMask);
}
}
}

0 comments on commit 8d92b70

Please sign in to comment.