* Implement Cargo Console Add to CargoConsoleComponent GalacticBank information for syncing Bank Account Balance. Implement CargoOrderDatabase on the server side and a list of orders in the CargoOrderDatabaseComponent on the client side. This makes it easier to change data on the server side but also utilize the state syncing between components. Implement GalacticMarketComponent. Only productIds get sent. Both client and server create their lists from YAML. Implement basic spawning of items from approved orders in CargoOrderDatabase. * Finish Cargo Console Add validation to make sure Order Amount is one or more. Implement approve and cancel buttons to CargoConsoleMenu orders list row. Add price to CargoConsoleMenu product list row. Implement CargoOrderDataManager to consolidate CargoOrder lists. Refactor CargoOrderDatabaseComponent to use CargoOrderDataManager instead of storing duplicate lists. Implement canceling orders. Implement approving orders. Fix sprite links. Implement Cargo Request Console.
21 lines
637 B
C#
21 lines
637 B
C#
using Content.Server.GameObjects.Components.Cargo;
|
|
using Robust.Shared.Timing;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Content.Server.Cargo
|
|
{
|
|
public interface IGalacticBankManager
|
|
{
|
|
IEnumerable<CargoBankAccount> GetAllBankAccounts();
|
|
|
|
void Shutdown();
|
|
void Update(FrameEventArgs frameEventArgs);
|
|
|
|
void CreateBankAccount(string name, int balance);
|
|
CargoBankAccount GetBankAccount(int id);
|
|
void AddComponent(CargoConsoleComponent cargoConsoleComponent);
|
|
bool TryGetBankAccount(int id, out CargoBankAccount account);
|
|
bool ChangeBalance(int id, int n);
|
|
}
|
|
}
|