Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse TMLM #491

Merged
merged 2 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Functions can then be written that take in `INamed`, allowing any record that ha
- Activator
- LeveledItem
- MagicEffect
- TerminalMenu
### IKeywordCommon
- Keyword
### IKeyworded
Expand Down Expand Up @@ -67,6 +68,7 @@ Functions can then be written that take in `INamed`, allowing any record that ha
- ScriptVariableProperty
- Spell
- StaticCollection
- TerminalMenu
### IObjectBounded
- AcousticSpace
- Activator
Expand Down Expand Up @@ -214,6 +216,9 @@ Functions can then be written that take in `INamed`, allowing any record that ha
- IObjectBounded
### StaticPlacement
- IPositionRotation
### TerminalMenu
- IHaveVirtualMachineAdapter
- INamed
### TextureSet
- IObjectBounded
### Transform
Expand Down
16 changes: 16 additions & 0 deletions Mutagen.Bethesda.Starfield/Enums/LockLevel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace Mutagen.Bethesda.Starfield;

public enum LockLevel
{
None = 0,
Novice1 = 1,
Novice25 = 25,
Advanced = 50,
Expert = 75,
Master = 100,
Barred = 251,
RequiresTerminal = 253,
Chained = 252,
Inaccessible = 254,
RequiresKey = 255,
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public StarfieldAspectInterfaceMapping()
Activator_Registration.Instance,
LeveledItem_Registration.Instance,
MagicEffect_Registration.Instance,
TerminalMenu_Registration.Instance,
});
dict[typeof(IKeywordCommon)] = new InterfaceMappingResult(true, new ILoquiRegistration[]
{
Expand Down Expand Up @@ -78,6 +79,7 @@ public StarfieldAspectInterfaceMapping()
Race_Registration.Instance,
Spell_Registration.Instance,
StaticCollection_Registration.Instance,
TerminalMenu_Registration.Instance,
});
dict[typeof(INamedGetter)] = dict[typeof(INamed)] with { Setter = false };
dict[typeof(INamedRequired)] = new InterfaceMappingResult(true, new ILoquiRegistration[]
Expand Down Expand Up @@ -118,6 +120,7 @@ public StarfieldAspectInterfaceMapping()
ScriptVariableProperty_Registration.Instance,
Spell_Registration.Instance,
StaticCollection_Registration.Instance,
TerminalMenu_Registration.Instance,
});
dict[typeof(INamedRequiredGetter)] = dict[typeof(INamedRequired)] with { Setter = false };
dict[typeof(ITranslatedNamed)] = new InterfaceMappingResult(true, new ILoquiRegistration[]
Expand All @@ -137,6 +140,7 @@ public StarfieldAspectInterfaceMapping()
Race_Registration.Instance,
Spell_Registration.Instance,
StaticCollection_Registration.Instance,
TerminalMenu_Registration.Instance,
});
dict[typeof(ITranslatedNamedGetter)] = dict[typeof(ITranslatedNamed)] with { Setter = false };
dict[typeof(ITranslatedNamedRequired)] = new InterfaceMappingResult(true, new ILoquiRegistration[]
Expand All @@ -156,6 +160,7 @@ public StarfieldAspectInterfaceMapping()
Race_Registration.Instance,
Spell_Registration.Instance,
StaticCollection_Registration.Instance,
TerminalMenu_Registration.Instance,
});
dict[typeof(ITranslatedNamedRequiredGetter)] = dict[typeof(ITranslatedNamedRequired)] with { Setter = false };
dict[typeof(IObjectBounded)] = new InterfaceMappingResult(true, new ILoquiRegistration[]
Expand Down
13 changes: 13 additions & 0 deletions Mutagen.Bethesda.Starfield/Mutagen.Bethesda.Starfield.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
<Compile Include="Enums\CompareOperator.cs" />
<Compile Include="Enums\EquipType.cs" />
<Compile Include="Enums\GroupTypeEnum.cs" />
<Compile Include="Enums\LockLevel.cs" />
<Compile Include="Enums\Pronoun.cs" />
<Compile Include="Enums\TargetObjectType.cs" />
<Compile Include="Enums\TimeOfDay.cs" />
Expand Down Expand Up @@ -1991,6 +1992,9 @@
<Compile Include="Records\Major Records\LeveledItem.cs">
<DependentUpon>LeveledItem.xml</DependentUpon>
</Compile>
<Compile Include="Records\Major Records\LockData.cs">
<DependentUpon>TerminalMenu.xml</DependentUpon>
</Compile>
<Compile Include="Records\Major Records\Planet.cs">
<DependentUpon>Planet.xml</DependentUpon>
</Compile>
Expand Down Expand Up @@ -5051,5 +5055,14 @@
<Compile Include="Records\Major Records\FormListConditionalEntry_Generated.cs">
<DependentUpon>FormList.xml</DependentUpon>
</Compile>
<Compile Include="Records\Major Records\TerminalMenuBodyText_Generated.cs">
<DependentUpon>TerminalMenu.xml</DependentUpon>
</Compile>
<Compile Include="Records\Major Records\TerminalMenuItem_Generated.cs">
<DependentUpon>TerminalMenu.xml</DependentUpon>
</Compile>
<Compile Include="Records\Major Records\LockData_Generated.cs">
<DependentUpon>TerminalMenu.xml</DependentUpon>
</Compile>
</ItemGroup>
</Project>
10 changes: 10 additions & 0 deletions Mutagen.Bethesda.Starfield/Records/Major Records/LockData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Mutagen.Bethesda.Starfield;

partial class LockData
{
[Flags]
public enum Flag
{
LeveledLock = 0x1
}
}
Loading
Loading