~starkingdoms/starkingdoms

ref: 59f6ec971f5951a53c3d90340e170eef187e4dd7 starkingdoms/crates/unified/src/shared/thrust.rs -rw-r--r-- 431 bytes
59f6ec97ghostly_zsh netcode fix: dumb stupid interpolation works when there's no inconsistent delay or loss or reordering of packets 6 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
use std::collections::BTreeSet;
use bevy::prelude::{Component, Entity, Message, Resource};

/// A thrust solution, found by the thrust solver on the client.
/// `thrusters_on` is the set of thrusters that should be on.
/// Any thrusters not in this set should be off.
#[derive(Eq, PartialEq, Debug, Clone, Resource, Component, Message)]
pub struct ThrustSolution {
    pub thrusters_on: BTreeSet<Entity>,
    pub converged: bool
}