tes3mp-plugin
A crate for helping you make tes3mp plugins in Rust
How to use
Because Rust won't allow you to re-export symbols from other crates, this crate can't be used like normal crates, the advised manner of using this crate is the following:
||
This will make the plugin
like it's part of your crate, which allows us to export the C symbols
in your Cargo.toml
make sure the following is included
[]
= ["staticlib", "cdylib"]
This will make sure you get a shared library which can be loaded by TES3MP
Using the code is now rather simple, write in your lib.rs
use crate Events;
;
use_events!;
the Events
trait has all the events that exist for the server, implement as needed