Module custom

Source
Expand description

§Custom API of MaaFramework.

With the custom API, you can create your own custom components and use them in your application. All you need to do is implement the traits according to your needs. All the trait functions provide an empty default implementation so you can choose to implement only the functions you need.

§Examples

use maa_framework::custom::*;

struct MyCustomController;

impl custom_controller::MaaCustomController for MyCustomController {
    fn connect(&mut self) -> bool {
        // Your implementation here
        true
    }
}

Modules§

custom_actioncustom_action
custom_controllercustom_controller
custom_recognizercustom_recognizer