Skip to content

Commit

Permalink
Mawp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Mar 1, 2024
1 parent 1d74001 commit af6100d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Penumbra/Collections/ResolveData.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
namespace Penumbra.Collections;

public readonly struct ResolveData
public readonly struct ResolveData(ModCollection collection, nint gameObject)
{
public static readonly ResolveData Invalid = new();

private readonly ModCollection? _modCollection;
private readonly ModCollection? _modCollection = collection;

public ModCollection ModCollection
=> _modCollection ?? ModCollection.Empty;

public readonly nint AssociatedGameObject;
public readonly nint AssociatedGameObject = gameObject;

public bool Valid
=> _modCollection != null;
Expand All @@ -18,12 +18,6 @@ public ResolveData()
: this(null!, nint.Zero)
{ }

public ResolveData(ModCollection collection, nint gameObject)
{
_modCollection = collection;
AssociatedGameObject = gameObject;
}

public ResolveData(ModCollection collection)
: this(collection, nint.Zero)
{ }
Expand Down

0 comments on commit af6100d

Please sign in to comment.