mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Add support for MKDLore rows
This commit is contained in:
parent
193d321103
commit
880add5ab3
2 changed files with 20 additions and 0 deletions
|
|
@ -309,6 +309,12 @@ internal unsafe class UnlockState : IInternalDisposableService, IUnlockState
|
||||||
return this.IsUnlockLinkUnlocked(row.UnlockLink);
|
return this.IsUnlockLinkUnlocked(row.UnlockLink);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public bool IsMKDLoreUnlocked(MKDLore row)
|
||||||
|
{
|
||||||
|
return this.IsUnlockLinkUnlocked(row.Unknown2);
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public bool IsMountUnlocked(Mount row)
|
public bool IsMountUnlocked(Mount row)
|
||||||
{
|
{
|
||||||
|
|
@ -493,6 +499,9 @@ internal unsafe class UnlockState : IInternalDisposableService, IUnlockState
|
||||||
if (rowRef.TryGetValue<MJILandmark>(out var mjiLandmarkRow))
|
if (rowRef.TryGetValue<MJILandmark>(out var mjiLandmarkRow))
|
||||||
return this.IsMJILandmarkUnlocked(mjiLandmarkRow);
|
return this.IsMJILandmarkUnlocked(mjiLandmarkRow);
|
||||||
|
|
||||||
|
if (rowRef.TryGetValue<MKDLore>(out var mkdLoreRow))
|
||||||
|
return this.IsMKDLoreUnlocked(mkdLoreRow);
|
||||||
|
|
||||||
if (rowRef.TryGetValue<McGuffin>(out var mcGuffinRow))
|
if (rowRef.TryGetValue<McGuffin>(out var mcGuffinRow))
|
||||||
return this.IsMcGuffinUnlocked(mcGuffinRow);
|
return this.IsMcGuffinUnlocked(mcGuffinRow);
|
||||||
|
|
||||||
|
|
@ -599,6 +608,7 @@ internal unsafe class UnlockState : IInternalDisposableService, IUnlockState
|
||||||
this.UpdateUnlocksForSheet<InstanceContentSheet>(fireEvent);
|
this.UpdateUnlocksForSheet<InstanceContentSheet>(fireEvent);
|
||||||
this.UpdateUnlocksForSheet<Item>(fireEvent);
|
this.UpdateUnlocksForSheet<Item>(fireEvent);
|
||||||
this.UpdateUnlocksForSheet<MJILandmark>(fireEvent);
|
this.UpdateUnlocksForSheet<MJILandmark>(fireEvent);
|
||||||
|
this.UpdateUnlocksForSheet<MKDLore>(fireEvent);
|
||||||
this.UpdateUnlocksForSheet<McGuffin>(fireEvent);
|
this.UpdateUnlocksForSheet<McGuffin>(fireEvent);
|
||||||
this.UpdateUnlocksForSheet<Mount>(fireEvent);
|
this.UpdateUnlocksForSheet<Mount>(fireEvent);
|
||||||
this.UpdateUnlocksForSheet<NotebookDivision>(fireEvent);
|
this.UpdateUnlocksForSheet<NotebookDivision>(fireEvent);
|
||||||
|
|
@ -772,6 +782,9 @@ internal class UnlockStatePluginScoped : IInternalDisposableService, IUnlockStat
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public bool IsMJILandmarkUnlocked(MJILandmark row) => this.unlockStateService.IsMJILandmarkUnlocked(row);
|
public bool IsMJILandmarkUnlocked(MJILandmark row) => this.unlockStateService.IsMJILandmarkUnlocked(row);
|
||||||
|
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public bool IsMKDLoreUnlocked(MKDLore row) => this.unlockStateService.IsMKDLoreUnlocked(row);
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public bool IsMountUnlocked(Mount row) => this.unlockStateService.IsMountUnlocked(row);
|
public bool IsMountUnlocked(Mount row) => this.unlockStateService.IsMountUnlocked(row);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -206,6 +206,13 @@ public interface IUnlockState
|
||||||
/// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns>
|
/// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns>
|
||||||
bool IsMJILandmarkUnlocked(MJILandmark row);
|
bool IsMJILandmarkUnlocked(MJILandmark row);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Determines whether the specified MKDLore (Occult Record) is unlocked.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="row">The MKDLore row to check.</param>
|
||||||
|
/// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns>
|
||||||
|
bool IsMKDLoreUnlocked(MKDLore row);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines whether the specified Mount is unlocked.
|
/// Determines whether the specified Mount is unlocked.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue