2021-02-04 01:24:37 +01:00
|
|
|
#nullable enable
|
2020-05-28 06:22:47 -05:00
|
|
|
using System.Collections.Generic;
|
2021-02-04 01:24:37 +01:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
2020-05-28 06:22:47 -05:00
|
|
|
using Content.Shared.GameObjects.Components.PDA;
|
2021-02-11 01:13:03 -08:00
|
|
|
using Robust.Shared.GameObjects;
|
2021-02-04 01:24:37 +01:00
|
|
|
using Robust.Shared.Map;
|
2020-05-28 06:22:47 -05:00
|
|
|
|
|
|
|
|
namespace Content.Server.Interfaces.PDA
|
|
|
|
|
{
|
|
|
|
|
public interface IPDAUplinkManager
|
|
|
|
|
{
|
2021-02-04 01:24:37 +01:00
|
|
|
public IReadOnlyDictionary<string, UplinkListingData> FetchListings { get; }
|
2020-08-25 18:13:19 +02:00
|
|
|
|
2020-05-28 06:22:47 -05:00
|
|
|
void Initialize();
|
2020-08-25 18:13:19 +02:00
|
|
|
|
2020-05-28 06:22:47 -05:00
|
|
|
public bool AddNewAccount(UplinkAccount acc);
|
|
|
|
|
|
|
|
|
|
public bool ChangeBalance(UplinkAccount acc, int amt);
|
|
|
|
|
|
2021-02-04 01:24:37 +01:00
|
|
|
public bool TryPurchaseItem(
|
|
|
|
|
UplinkAccount? acc,
|
|
|
|
|
string itemId,
|
|
|
|
|
EntityCoordinates spawnCoords,
|
|
|
|
|
[NotNullWhen(true)] out IEntity? purchasedItem);
|
2020-05-28 06:22:47 -05:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|