Struct spn_rust_bot::api::ipc::IpcServerConfig
source · [−]#[repr(C)]#[repr(align(4))]pub struct IpcServerConfig {Show 14 fields
pub snake_boost_steps: u32,
pub snake_turn_radius_factor: f32,
pub snake_pull_factor: f32,
pub snake_conversion_factor: f32,
pub snake_segment_distance_factor: f32,
pub snake_segment_distance_exponent: f32,
pub snake_consume_range: f32,
pub snake_boost_loss_factor: f32,
pub snake_survival_loss_factor: f32,
pub snake_self_kill_mass_threshold: f32,
pub food_decay_step: f32,
pub log_credits_per_frame: f32,
pub log_initial_credits: f32,
pub log_max_credits: f32,
}
Expand description
IPC representation of the static server and world configuration.
Please note that this struct is filled once before bot startup, so if you (accidentally) modify them, they stay that way until your bot restarts.
Fields
snake_boost_steps: u32
Number of steps a snake moves per frame while boosting
snake_turn_radius_factor: f32
Multiplied with your segment radius to determine the inner turn radius
snake_pull_factor: f32
Pull-together factor (determines how fast segments move to the center of a loop)
snake_conversion_factor: f32
how much of a snake’s mass is converted to food when it dies
snake_segment_distance_factor: f32
segment distance = (mass * factor)^exponent
snake_segment_distance_exponent: f32
segment distance = (mass * factor)^exponent
snake_consume_range: f32
consume range multiplier (multiplied with segment radius)
snake_boost_loss_factor: f32
Multiplied with the snakes mass to determine how much mass is lost per frame while boosting
snake_survival_loss_factor: f32
This part of your mass is dropped every frame (to limit snake growth)
snake_self_kill_mass_threshold: f32
Mass below which a snake dies through starvation
food_decay_step: f32
Food decays by this value each frame
log_credits_per_frame: f32
How many log messages you can send per frame
log_initial_credits: f32
How many log messages you can send right after startup
log_max_credits: f32
You can send at most this many messages in a row