Skip to content

Commit

Permalink
Fo4 weapon marked as bindable equipment
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Nov 15, 2023
1 parent 146c9e2 commit e8fb455
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ A `FormLink<IItem>` could then point to all those record types by pointing to th
- VoiceType
### IBindableEquipment
- Armor
- Weapon
### IComplexLocation
- Cell
- Worldspace
Expand Down Expand Up @@ -638,6 +639,7 @@ A `FormLink<IItem>` could then point to all those record types by pointing to th
- IPlaceableObject
- IReferenceableObject
### Weapon
- IBindableEquipment
- IConstructibleObjectTarget
- IExplodeSpawn
- IFurnitureAssociation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Mutagen.Bethesda.Fallout4
{
/// <summary>
/// Implemented by: [Armor]
/// Implemented by: [Armor, Weapon]
/// </summary>
public partial interface IBindableEquipment :
IBindableEquipmentGetter,
Expand All @@ -17,7 +17,7 @@ public partial interface IBindableEquipment :
}

/// <summary>
/// Implemented by: [Armor]
/// Implemented by: [Armor, Weapon]
/// </summary>
public partial interface IBindableEquipmentGetter : IFallout4MajorRecordGetter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ public Fallout4LinkInterfaceMapping()
dict[typeof(IBindableEquipment)] = new InterfaceMappingResult(true, new ILoquiRegistration[]
{
Armor_Registration.Instance,
Weapon_Registration.Instance,
});
dict[typeof(IBindableEquipmentGetter)] = dict[typeof(IBindableEquipment)] with { Setter = false };
dict[typeof(IFurnitureAssociation)] = new InterfaceMappingResult(true, new ILoquiRegistration[]
Expand Down
1 change: 1 addition & 0 deletions Mutagen.Bethesda.Fallout4/Records/Fallout4Mod_Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9803,6 +9803,7 @@ public void Remove(
case "IBindableEquipment":
case "IBindableEquipmentGetter":
Remove(obj, keys, typeof(IArmorGetter), throwIfUnknown: throwIfUnknown);
Remove(obj, keys, typeof(IWeaponGetter), throwIfUnknown: throwIfUnknown);
break;
case "IFurnitureAssociation":
case "IFurnitureAssociationGetter":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<UInt8 />
</Fields>
</Gendered>
<Gendered name="WeightSliderEnabled" binary="Custom" byteLength="2" >
<Gendered name="WeightSliderEnabled" binary="Custom" byteLength="2" generateClassMembers="false">
<Fields>
<Bool />
</Fields>
Expand Down
1 change: 1 addition & 0 deletions Mutagen.Bethesda.Fallout4/Records/Major Records/Weapon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
<Enum name="MeleeSpeed" recordType="MASE" enumName="Weapon.MeleeSpeeds" />
</Fields>
<LinkInterface>IObjectId</LinkInterface>
<LinkInterface>IBindableEquipment</LinkInterface>
<LinkInterface>IStaticTarget</LinkInterface>
<LinkInterface>IPlaceableObject</LinkInterface>
<LinkInterface>IReferenceableObject</LinkInterface>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3460,6 +3460,7 @@ void IClearable.Clear()

#region Interface
public partial interface IWeapon :
IBindableEquipment,
IConstructibleObjectTarget,
IExplodeSpawn,
IFallout4MajorRecordInternal,
Expand Down Expand Up @@ -3590,6 +3591,7 @@ public partial interface IWeaponInternal :
public partial interface IWeaponGetter :
IFallout4MajorRecordGetter,
IBinaryItem,
IBindableEquipmentGetter,
IConstructibleObjectTargetGetter,
IExplodeSpawnGetter,
IFormLinkContainerGetter,
Expand Down

0 comments on commit e8fb455

Please sign in to comment.