Skip to content

Registering Shop Items with REPOLib

NOTE

This page assumes you have a Harmony project setup for R.E.P.O. modding.
If not, first follow the guide in Harmony Project Setup.

Registering an item:

c#
using REPOLib.Objects.Sdk;

private void Awake()
{
    REPOLib.BundleLoader.LoadBundle("your_assetbundle_file_path", assetBundle =>
    {
        var item = assetBundle.LoadAsset<ItemContent>("your_item_content");
        REPOLib.Modules.Items.RegisterItem(item);
    });
}