Clean up
This commit is contained in:
parent
e6e3a1f297
commit
6dfc18ee6a
17
Shop/IShopWindow.cs
Normal file
17
Shop/IShopWindow.cs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
using System.Numerics;
|
||||||
|
using FFXIVClientStructs.FFXIV.Component.GUI;
|
||||||
|
|
||||||
|
namespace LLib.Shop;
|
||||||
|
|
||||||
|
public interface IShopWindow
|
||||||
|
{
|
||||||
|
public bool IsEnabled { get; }
|
||||||
|
public bool IsOpen { get; set; }
|
||||||
|
public Vector2? Position { get; set; }
|
||||||
|
|
||||||
|
public int GetCurrencyCount();
|
||||||
|
public unsafe void UpdateShopStock(AtkUnitBase* addon);
|
||||||
|
public unsafe void TriggerPurchase(AtkUnitBase* addonShop, int buyNow);
|
||||||
|
public void SaveExternalPluginState();
|
||||||
|
public void RestoreExternalPluginState();
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
namespace Workshoppa.GameData.Shops;
|
namespace LLib.Shop.Model;
|
||||||
|
|
||||||
public sealed class ItemForSale
|
public sealed class ItemForSale
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Workshoppa.GameData.Shops;
|
namespace LLib.Shop.Model;
|
||||||
|
|
||||||
public sealed class PurchaseState
|
public sealed class PurchaseState
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using Dalamud.Game.Addon.Lifecycle;
|
using Dalamud.Game.Addon.Lifecycle;
|
||||||
using Dalamud.Game.Addon.Lifecycle.AddonArgTypes;
|
using Dalamud.Game.Addon.Lifecycle.AddonArgTypes;
|
||||||
@ -6,23 +7,11 @@ using Dalamud.Plugin.Services;
|
|||||||
using FFXIVClientStructs.FFXIV.Client.Game;
|
using FFXIVClientStructs.FFXIV.Client.Game;
|
||||||
using FFXIVClientStructs.FFXIV.Component.GUI;
|
using FFXIVClientStructs.FFXIV.Component.GUI;
|
||||||
using LLib.GameUI;
|
using LLib.GameUI;
|
||||||
using Workshoppa.GameData.Shops;
|
using LLib.Shop.Model;
|
||||||
|
|
||||||
namespace LLib.Shop;
|
namespace LLib.Shop;
|
||||||
|
|
||||||
public interface IShopWindow
|
[SuppressMessage("ReSharper", "ClassCanBeSealed.Global")]
|
||||||
{
|
|
||||||
public bool IsEnabled { get; }
|
|
||||||
public bool IsOpen { get; set; }
|
|
||||||
public Vector2? Position { get; set; }
|
|
||||||
|
|
||||||
public int GetCurrencyCount();
|
|
||||||
public unsafe void UpdateShopStock(AtkUnitBase* addon);
|
|
||||||
public unsafe void TriggerPurchase(AtkUnitBase* addonShop, int buyNow);
|
|
||||||
public void SaveExternalPluginState();
|
|
||||||
public void RestoreExternalPluginState();
|
|
||||||
}
|
|
||||||
|
|
||||||
public class RegularShopBase
|
public class RegularShopBase
|
||||||
{
|
{
|
||||||
private readonly IShopWindow _parentWindow;
|
private readonly IShopWindow _parentWindow;
|
||||||
|
Loading…
Reference in New Issue
Block a user