Hello everyone!
I looked around but couldn’t find an answer online or on the forums. I have been getting back into creating simple mods. So I am familiar with things like Harmony but also adding menu options in towns.
Now I have run into the problem that I want to add my own custom methods to the InventoryManager (located in TaleWorlds.CampaignSystem). At this moment in time I cant figure out how to do it. Since I cant create my own method with custom logic that sets the private setters in the manager.
InventoryManager.Instance._currentMode = InventoryMode.Default;
InventoryManager.Instance._inventoryLogic = new InventoryLogic(Campaign.Current, (PartyBase) null);
Those are two examples that are currently set inside the class but I cant extend or overwrite those in a custom class. Does anyone have a solution?
Kind regards,
Zervion
I looked around but couldn’t find an answer online or on the forums. I have been getting back into creating simple mods. So I am familiar with things like Harmony but also adding menu options in towns.
Now I have run into the problem that I want to add my own custom methods to the InventoryManager (located in TaleWorlds.CampaignSystem). At this moment in time I cant figure out how to do it. Since I cant create my own method with custom logic that sets the private setters in the manager.
InventoryManager.Instance._currentMode = InventoryMode.Default;
InventoryManager.Instance._inventoryLogic = new InventoryLogic(Campaign.Current, (PartyBase) null);
Those are two examples that are currently set inside the class but I cant extend or overwrite those in a custom class. Does anyone have a solution?
Kind regards,
Zervion