Skip to main content

ShopConfigUtility

A static class in Root.Township, Alta.Customization.

Fetches the shop layout from the Alta shop API, or for shop_admin users from a local file named in the Alta Launcher settings.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for this class.

Methods​

MemberWhat it is
static async Task<ShopPageConfigurationWithBanner> GetCurrentShopConfiguration()Returns the shop page config, from the local override file if there is one, else from the API. Null when logged out.
static async Task<IEnumerable<ShopItemDetailedForUser>> GetCurrentShopConfigurationForUser()Returns shop items with ownership for the user. With a local override, builds them from the file with price 1. Null when logged out.
1 private and internal method
MemberWhat it is
private static string GetCustomFolderPath()For shop_admin users, reads layout from %AppData%\Alta Launcher\Settings.json and returns it if that file exists; else null.