Skip to content

Code to hook the Managed/Native interface in Mount & Blade II: Bannerlord.

License

Notifications You must be signed in to change notification settings

JacobPersi/Bannerlord-Native-API

Repository files navigation

M&B 2: Manged/Native Interface

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.cs

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.cs

CodeGen generates wrapper code around the native interfaces to enhance the ease of modding. Code within Events & Interfaces is auto generated.

Note

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:

About

Code to hook the Managed/Native interface in Mount & Blade II: Bannerlord.

Topics

Resources

License

Stars

Watchers

Forks

Languages