Struct rlbot::RLBot [−][src]
pub struct RLBot { /* fields omitted */ }
The low-level interface to RLBot. All RLBot calls that are available can be made through this struct.
Methods
impl RLBot
[src]
impl RLBot
pub fn packeteer(&self) -> Packeteer
[src]
pub fn packeteer(&self) -> Packeteer
Returns a Packeteer
object, for conveniently accessing game state
as it occurs.
pub fn update_player_input(
&self,
player_input: PlayerInput,
player_index: c_int
) -> Result<(), RLBotError>
[src]
pub fn update_player_input(
&self,
player_input: PlayerInput,
player_index: c_int
) -> Result<(), RLBotError>
Sends player input to RLBot.
pub fn update_player_input_flatbuffer(
&self,
player_input_buffer: &[u8]
) -> Result<(), RLBotError>
[src]
pub fn update_player_input_flatbuffer(
&self,
player_input_buffer: &[u8]
) -> Result<(), RLBotError>
Sends player input to RLBot using flatbuffers. The buffer must be built
from a flat::PlayerInput
pub fn update_live_data_packet(
&self,
packet: &mut LiveDataPacket
) -> Result<(), RLBotError>
[src]
pub fn update_live_data_packet(
&self,
packet: &mut LiveDataPacket
) -> Result<(), RLBotError>
Grabs the current LiveDataPacket
from RLBot.
Consider using packeteer
instead for a more
convenient interface.
pub fn update_live_data_packet_flatbuffer(&self) -> Option<GameTickPacket>
[src]
pub fn update_live_data_packet_flatbuffer(&self) -> Option<GameTickPacket>
Grabs the current flat::GameTickPacket
from RLBot,
if any. Consider using packeteer
instead for
a more convenient interface.
pub fn update_field_info(
&self,
field_info: &mut FieldInfo
) -> Result<(), RLBotError>
[src]
pub fn update_field_info(
&self,
field_info: &mut FieldInfo
) -> Result<(), RLBotError>
Grabs the current ffi::FieldInfo
from RLBot
pub fn update_field_info_flatbuffer(&self) -> Option<FieldInfo>
[src]
pub fn update_field_info_flatbuffer(&self) -> Option<FieldInfo>
Grabs the current flat::FieldInfo
from RLBot, if any
pub fn set_game_state(
&self,
desired_game_state_buffer: &[u8]
) -> Result<(), RLBotError>
[src]
pub fn set_game_state(
&self,
desired_game_state_buffer: &[u8]
) -> Result<(), RLBotError>
Sets the desired game state. The buffer must be built from a
flat::DesiredGameState
pub fn render_group(&self, render_group_buffer: &[u8]) -> Result<(), RLBotError>
[src]
pub fn render_group(&self, render_group_buffer: &[u8]) -> Result<(), RLBotError>
Render a group of lines/text. The buffer must be built from a
flat::RenderGroup
pub fn send_quick_chat(
&self,
quick_chat_buffer: &[u8]
) -> Result<(), RLBotError>
[src]
pub fn send_quick_chat(
&self,
quick_chat_buffer: &[u8]
) -> Result<(), RLBotError>
Send a quickchat. The buffer must be built from a flat::QuickChat
pub fn start_match(
&self,
match_settings: MatchSettings
) -> Result<(), RLBotError>
[src]
pub fn start_match(
&self,
match_settings: MatchSettings
) -> Result<(), RLBotError>
Tell RLBot to start a match.