diff --git a/scripts/client/gui/bizmgr.js b/scripts/client/gui/bizmgr.js index 717eda31..27c80221 100644 --- a/scripts/client/gui/bizmgr.js +++ b/scripts/client/gui/bizmgr.js @@ -6,4 +6,80 @@ // FILE: bizmgr.js // DESC: Provides business manager GUI // TYPE: Client (JavaScript) +// =========================================================================== + +/* +class BusinessManagerData { + constructor(businessIndex, name, locked, entranceFee, buyPrice, rentPrice, floorItems, storageItems) { + this.businessIndex = businessIndex; + this.name = name; + this.locked = locked; + this.entranceFee = entranceFee; + this.buyPrice = buyPrice; + this.rentPrice = rentPrice; + this.till = till; + this.ownerName = ownerName; + this.floorItems = floorItems; + this.storageItems = storageItems; + } +} + +// =========================================================================== + +let businessManager = { + window: null, + generalTabButton: null, + floorItemsTab: null, + storageItemsTab: null, + orderItemsTab: null, + data: null, + + // General Tab + businessName: null, + businessOwnerName: null, + businessEntranceFee: null, + businessBuyPrice: null, + businessRentPrice: null, + +}; + +// =========================================================================== + +function initBusinessManagerGUI() { + +} + +// =========================================================================== + +function showBusinessManagerGUI() { + +} + +// =========================================================================== + +function hideBusinessManagerGUI() { + +} + +// =========================================================================== + +function updateBusinessManagerGUIStrings() { + +} + +// =========================================================================== + +function receiveBusinessManagerData(businessIndex, name, locked, entranceFee, buyPrice, rentPrice, floorItems, storageItems) { + let businessManagerData = new BusinessManagerData(businessIndex, name, locked, entranceFee, buyPrice, rentPrice, floorItems, storageItems); + businessManager.data = businessManagerData; + updateBusinessManagerGUIStrings(); +} + +// =========================================================================== + +function saveBusinessData() { + sendNetworkEventToServer("agrp.businessManagerSave", businessManager.data.businessIndex); +} +*/ + // =========================================================================== \ No newline at end of file