Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 688 Bytes

mbobjectmanager.md

File metadata and controls

26 lines (19 loc) · 688 Bytes

MBObjectManager

The object manager is something that you will be using a lot in the modding of Bannerlord, so it is important to familiarize yourself with it.

The MBObjectManager can be used to get any object in the game that is currently loaded from the XMLs.

These include:

  • BasicCharacterObjects
  • CharacterAttributes
  • CraftingPieces
  • CraftingTemplates
  • Cultures
  • ItemModifierGroups
  • ItemCategories
  • ItemComponents
  • ItemObjects
  • SkillObjects
  • SiegeEngineTypes

Example of getting a BasicCharacterObject:

MBObjectManager.Instance.GetObject<BasicCharacterObject>("example_troop_id");