Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 2.59 KB

File metadata and controls

47 lines (33 loc) · 2.59 KB

Shop module

Shop controller, items, bundles, currency, inventory integration, and purchase UI. Scripts in Scripts/Shop/.

Since version 8.5.0: stable string-ids for items, JSON profile save (ShopProfileData), bundles, categories, multi-currency, and an optional Inventory link via the ShopInventoryGrantBridge component.

Entry pages

Page Description
Shop Main shop controller, save behavior, and purchase flow
ShopItemData Item asset: id, category, currency override, optional inventory link
ShopBundleData Bundle of items sold for a single price
ButtonPrice Shop button view states and price presentation
Money Currency component, reactive values, and save behavior
ShopListView Optional category/filter view that creates and reuses ShopItem cells
ShopCategoryButton NoCode category tab for ShopListView
Russian Shop docs Full Russian per-component documentation

Dynamic Storefront Views

Recommended setup for category stores: keep one Shop for catalog, save, currency, and purchases; disable Auto Spawn Items on that Shop; then let one or more ShopListView components own the visible lists.

Tests

Shop has both EditMode and PlayMode coverage:

  • Assets/Neoxider/Tests/Play/ShopPurchasePlayModeTests.cs — purchases, bundles, runtime prices, Browse / EquipOnly flows, inventory integration, multi-currency, and ShopListView.
  • Assets/Neoxider/Tests/Edit/ShopProfileDataTests.cs — JSON round-trip, sanitize/dedupe, runtime price overrides, and clone.
  • Assets/Neoxider/Tests/Edit/Save/ShopManagerTests.cs — legacy Shop/Save coverage.

Run them through Unity Test Runner → EditMode / PlayMode.

Russian docs (per-component)

Page Description
Shop README Overview
Shop Shop controller
ShopItem, ShopItemData, ShopBundleData Item display, data, and bundles
Money, InterfaceMoney Currency
ButtonPrice, TextMoney UI helpers

See also