mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 04:34:16 +01:00
fix formatting
This commit is contained in:
parent
6158b488a9
commit
d78d88e089
2 changed files with 14 additions and 14 deletions
|
|
@ -20,47 +20,47 @@ namespace Dalamud.Game.ClientState.Aetherytes
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///Gets the Aetheryte ID.
|
/// Gets the Aetheryte ID.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public uint AetheryteId => this.data.AetheryteId;
|
public uint AetheryteId => this.data.AetheryteId;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///Gets the Territory ID.
|
/// Gets the Territory ID.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public uint TerritoryId => this.data.TerritoryId;
|
public uint TerritoryId => this.data.TerritoryId;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///Gets the SubIndex used when there can be multiple Aetherytes with the same ID (Private/Shared Estates etc.).
|
/// Gets the SubIndex used when there can be multiple Aetherytes with the same ID (Private/Shared Estates etc.).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public byte SubIndex => this.data.SubIndex;
|
public byte SubIndex => this.data.SubIndex;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///Gets the Ward. Zero if not a Shared Estate.
|
/// Gets the Ward. Zero if not a Shared Estate.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public byte Ward => this.data.Ward;
|
public byte Ward => this.data.Ward;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///Gets the Plot. Zero if not a Shared Estate.
|
/// Gets the Plot. Zero if not a Shared Estate.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public byte Plot => this.data.Plot;
|
public byte Plot => this.data.Plot;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///Gets the Cost in Gil to Teleport to this location.
|
/// Gets the Cost in Gil to Teleport to this location.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public uint GilCost => this.data.GilCost;
|
public uint GilCost => this.data.GilCost;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///Gets if the LocalPlayer has set this Aetheryte as Favorite.
|
/// Gets a value indicating whether the LocalPlayer has set this Aetheryte as Favorite or not.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsFavourite => this.data.IsFavourite != 0;
|
public bool IsFavourite => this.data.IsFavourite != 0;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///Gets if this Aetheryte is a Shared Estate.
|
/// Gets a value indicating whether this Aetheryte is a Shared Estate or not.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsSharedHouse => this.data.IsSharedHouse;
|
public bool IsSharedHouse => this.data.IsSharedHouse;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///Gets if this Aetheryte is an Appartment.
|
/// Gets a value indicating whether this Aetheryte is an Appartment or not.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsAppartment => this.data.IsAppartment;
|
public bool IsAppartment => this.data.IsAppartment;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
using Dalamud.IoC;
|
using Dalamud.IoC;
|
||||||
using Dalamud.IoC.Internal;
|
using Dalamud.IoC.Internal;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
|
|
@ -15,8 +16,6 @@ namespace Dalamud.Game.ClientState.Aetherytes
|
||||||
[InterfaceVersion("1.0")]
|
[InterfaceVersion("1.0")]
|
||||||
public sealed partial class AetheryteList
|
public sealed partial class AetheryteList
|
||||||
{
|
{
|
||||||
private delegate void UpdateAetheryteListDelegate(IntPtr telepo, byte arg1);
|
|
||||||
|
|
||||||
private readonly ClientStateAddressResolver address;
|
private readonly ClientStateAddressResolver address;
|
||||||
private readonly UpdateAetheryteListDelegate updateAetheryteListFunc;
|
private readonly UpdateAetheryteListDelegate updateAetheryteListFunc;
|
||||||
|
|
||||||
|
|
@ -32,6 +31,8 @@ namespace Dalamud.Game.ClientState.Aetherytes
|
||||||
Log.Verbose($"Teleport address 0x{this.address.Telepo.ToInt64():X}");
|
Log.Verbose($"Teleport address 0x{this.address.Telepo.ToInt64():X}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private delegate void UpdateAetheryteListDelegate(IntPtr telepo, byte arg1);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the amount of Aetherytes the local player has unlocked.
|
/// Gets the amount of Aetherytes the local player has unlocked.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -64,7 +65,7 @@ namespace Dalamud.Game.ClientState.Aetherytes
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (index < 0 || index >= Length)
|
if (index < 0 || index >= this.Length)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
@ -95,7 +96,6 @@ namespace Dalamud.Game.ClientState.Aetherytes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed partial class AetheryteList : IReadOnlyCollection<AetheryteEntry>
|
public sealed partial class AetheryteList : IReadOnlyCollection<AetheryteEntry>
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public int Count => this.Length;
|
public int Count => this.Length;
|
||||||
|
|
||||||
|
|
@ -111,7 +111,7 @@ namespace Dalamud.Game.ClientState.Aetherytes
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
IEnumerator IEnumerable.GetEnumerator()
|
IEnumerator IEnumerable.GetEnumerator()
|
||||||
{
|
{
|
||||||
return GetEnumerator();
|
return this.GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue