Function rlbot::run_bot [−][src]
pub fn run_bot<B: Bot>(bot: B) -> Result<(), Box<Error>>
Runs a bot under control of the RLBot framework.
This function assumes the app was launched by the framework. It will establish a connection to the framework, enter a game loop, and never return.
Errors
This function returns an error if it cannot communicate with the framework.
Example
struct MyBot; impl rlbot::Bot for MyBot { // ... } rlbot::run_bot(MyBot);
See examples/bot
for a complete example.