This project aims to intercept the Managed (C#) ↔ Native (C++) interface for Mount & Blade II: Bannerlord, allowing you to interact with the game in ways outside the standard modding API.
- See Interfaces for outbound calls from managed to native.
- See Events for inbound calls from native to managed.
NativeManager
is a helper class for interacting with the native interface. In order for the generated APIs/Events to work, you need to run the CollectReferences
method ahead of time. This collects the native references into dictionaries used by the generated code.
CodeGen
generates wrapper code around the native interfaces to enhance the ease of modding. Code within Events
& Interfaces
is auto generated.
Please be aware that this project is not affiliated with or endorsed by the game's developers. Use it at your own risk.
Helpful information:
- Bannerlord Modding Documentation: https://docs.bannerlordmodding.com/
- Harmony Patching Documentation: https://harmony.pardeike.net/articles/patching.html
- TaleWorlds Modding Forums: https://forums.taleworlds.com/index.php?pages/modding/
- Mount and Blade Discord: https://discordapp.com/invite/mountandblade
- TW Forum - Modding Discord: https://discordapp.com/invite/ykFVJGQ