~starkingdoms/starkingdoms

ref: 8c4a0ccb8c36b1036775c49f1e66f06173c00f97 starkingdoms/crates/unified/src/shared/thrust.rs -rw-r--r-- 523 bytes
8c4a0ccbghostly_zsh ship editor fix: working scrolling 12 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
use std::collections::BTreeSet;
use bevy::{prelude::{Component, Entity, Message, Resource}, reflect::TypePath};
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(Eq, PartialEq, Debug, Clone, Resource, Component, Message, Serialize, Deserialize, TypePath)]
pub struct ThrustSolution {
    pub thrusters_on: BTreeSet<Entity>,
    pub converged: bool
}