pub struct FightSettings {
pub start_fight_delay_ticks_default: u64,
pub prepare_fight_win_delay_ticks_default: u64,
pub prepare_fight_lose_delay_ticks_default: u64,
pub end_fight_delay_ticks_default: u64,
pub player_start_position: Coordinates,
pub party_start_position: Coordinates,
pub pvp_enemy_start_position: Coordinates,
pub ally_run_speed_mult: f64,
pub wave_entrance_offset_cells: i64,
pub wave_entrance_rush_ms_per_cell: u64,
pub wave_entrance_walk_ms_per_cell: u64,
pub formation_advance_ticks: u64,
}Fields§
§start_fight_delay_ticks_default: u64§prepare_fight_win_delay_ticks_default: u64§prepare_fight_lose_delay_ticks_default: u64§end_fight_delay_ticks_default: u64§player_start_position: Coordinates§party_start_position: Coordinates§pvp_enemy_start_position: Coordinates§ally_run_speed_mult: f64Ally-team run speed multiplier (docs/combat-feel-porting-plan.md [3.4]): scales the
hero’s/allies’ runs — the between-wave advance dash and in-fight repositioning. Kept
separate from the speed attribute on purpose: speed also scales ability cooldowns
(scale_cooldown_for_speed), so it can’t be used to speed movement up alone.
wave_entrance_offset_cells: i64Wave-entrance knobs (docs/combat-grid-migration-plan.md, фаза 1): the former WAVE_ENTRANCE_* Rust constants become config so the entrance feel is tunable without a rebuild. Defaults reproduce the old constants bit-for-bit.
wave_entrance_rush_ms_per_cell: u64§wave_entrance_walk_ms_per_cell: u64§formation_advance_ticks: u64Slot-model formation dash (docs/combat-grid-migration-plan.md §2.7): fixed duration of the hero+formation between-wave run. Read by the slot-model server from фаза 2; until then the value is inert data.
Trait Implementations§
Source§impl Clone for FightSettings
impl Clone for FightSettings
Source§fn clone(&self) -> FightSettings
fn clone(&self) -> FightSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FightSettings
impl Debug for FightSettings
Source§impl<'de> Deserialize<'de> for FightSettings
impl<'de> Deserialize<'de> for FightSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for FightSettings
impl JsonSchema for FightSettings
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more