
ShopAPI
от Xerren
Выставляет простой в использовании API для добавления пользовательских предметов в игровой магазин.
- Обычный
- 67,1 тыс. скачиваний
- Версия 1.3.0
- Обновлён 22 ноября 2025
- Предметы
- Инструменты
- Библиотека
- Переводы
О моде ShopAPI
ShopAPI — мод для Content Warning (Контент Варнинг) от автора Xerren. Выставляет простой в использовании API для добавления пользовательских предметов в игровой магазин.
Его скачали 67,1 тыс. раз: это 107-е место среди модов Content Warning в нашем каталоге, редкость — «обычный» (нижняя половина по скачиваниям). Мод обновлялся в течение года, актуальная версия — 1.3.0.
Для работы ему нужны: BepInExPack.
Полное описание ShopAPI
Текст автора на языке оригинала
Content Warning Shop API
Exposes an easy-to-use API to add custom items to the in-game shop in Content Warning.
See the mod's GitHub repository for detailed setup instructions and usage information.
Features
- Custom items: Opens up the in-game shop to allow custom items to be added. This includes automatically synchronising item prices between players, and registering custom
ItemDataEntrytypes defined in your mod to interface with the game's built-in item synchroniser. - Synchronisation: Easily synchronise any arbitrary settings between players in a lobby using Steam Lobby Metadata keys via the
SynchronisedMetadataclass. - Localisation: Extends and opens up the game's localisation system to allow items to be translated to the supported locales by patching item and shop related localised methods.
Integration
DO NOT bundle the mod's DLL with your own. Ensure that no ShopAPI.dll is included with your build.
Depending on your publishing target, you should instead require it as a dependency on your publishing platform:
Steam Workshop
When publishing on the Steam Workshop, add this Workshop Item as your item's dependency via the "Add/Remove Required Items" option (on your mod's page right hand side panel).
Steam will ensure that the dependency will load before your mod when the game is launched.
Thunderstore (BepInEx)
When building a BepInEx plugin, add this mod as a dependency to your plugin's main file:
[BepInDependency(ShopApiPlugin.MOD_GUID)]
public class YourCustomPlugin : BaseUnityPlugin
{
// ...
}
If a specific version is needed, pass ShopApiPlugin.MOD_VER after the GUID.
When publishing on Thunderstore, add the mod's Dependency String to the manifest.json file, so mod managers can automatically fetch it.
Usage
Once added as a reference to your project, all classes are available under the ContentWarningShop namespace.