mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-16 05:34:25 +01:00
Mawp.
This commit is contained in:
parent
1d74001281
commit
af6100dfe4
1 changed files with 3 additions and 9 deletions
|
|
@ -1,15 +1,15 @@
|
||||||
namespace Penumbra.Collections;
|
namespace Penumbra.Collections;
|
||||||
|
|
||||||
public readonly struct ResolveData
|
public readonly struct ResolveData(ModCollection collection, nint gameObject)
|
||||||
{
|
{
|
||||||
public static readonly ResolveData Invalid = new();
|
public static readonly ResolveData Invalid = new();
|
||||||
|
|
||||||
private readonly ModCollection? _modCollection;
|
private readonly ModCollection? _modCollection = collection;
|
||||||
|
|
||||||
public ModCollection ModCollection
|
public ModCollection ModCollection
|
||||||
=> _modCollection ?? ModCollection.Empty;
|
=> _modCollection ?? ModCollection.Empty;
|
||||||
|
|
||||||
public readonly nint AssociatedGameObject;
|
public readonly nint AssociatedGameObject = gameObject;
|
||||||
|
|
||||||
public bool Valid
|
public bool Valid
|
||||||
=> _modCollection != null;
|
=> _modCollection != null;
|
||||||
|
|
@ -18,12 +18,6 @@ public readonly struct ResolveData
|
||||||
: this(null!, nint.Zero)
|
: this(null!, nint.Zero)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
public ResolveData(ModCollection collection, nint gameObject)
|
|
||||||
{
|
|
||||||
_modCollection = collection;
|
|
||||||
AssociatedGameObject = gameObject;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ResolveData(ModCollection collection)
|
public ResolveData(ModCollection collection)
|
||||||
: this(collection, nint.Zero)
|
: this(collection, nint.Zero)
|
||||||
{ }
|
{ }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue