2024-10-28 21:47:51 +00:00
|
|
|
package jesse.keeblarcraft.BankMgr;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import jesse.keeblarcraft.ConfigMgr.ConfigManager;
|
|
|
|
|
2024-11-05 00:45:28 +00:00
|
|
|
// The bank manager takes care of routing any and all transactions throughout the server.
|
|
|
|
// It is a singleton object that is active throughout the mods lifetime and will cache players accounts
|
|
|
|
// when they log in to avoid constant look-ups through JSON (TODO for this).
|
|
|
|
//
|
2024-10-28 21:47:51 +00:00
|
|
|
public class BankManager {
|
2024-11-05 00:45:28 +00:00
|
|
|
ConfigManager config = new ConfigManager();
|
2024-10-28 21:47:51 +00:00
|
|
|
|
|
|
|
|
2024-11-05 00:45:28 +00:00
|
|
|
// Contains all account information for a given bank
|
|
|
|
private class BankAccountInformation {
|
2024-10-28 21:47:51 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-11-05 00:45:28 +00:00
|
|
|
// Structure of all the players banking information across all banks.
|
|
|
|
private class PlayerFinances {
|
2024-10-28 21:47:51 +00:00
|
|
|
|
2024-11-05 00:45:28 +00:00
|
|
|
// Key = Bank UUID
|
|
|
|
// Value = The account information for THIS player
|
|
|
|
HashMap<String, BankAccountInformation> allBanks;
|
2024-10-28 21:47:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-05 00:45:28 +00:00
|
|
|
public BankManager() {
|
2024-10-28 21:47:51 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|