Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.53 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.53 KB

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: