~starkingdoms/starkingdoms

ref: 6cccb902b13a62f2c2f8990ab13dab51a3f5488a starkingdoms/crates/unified/src/thrust.rs -rw-r--r-- 451 bytes
6cccb902 — core feat: actually send the event 25 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
use std::collections::BTreeSet;
use bevy::prelude::{Entity, Resource};
use serde::{Deserialize, Serialize};

/// 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(Serialize, Deserialize, Eq, PartialEq, Debug, Clone, Resource)]
pub struct ThrustSolution {
    pub thrusters_on: BTreeSet<Entity>,
    pub converged: bool
}