~starkingdoms/starkingdoms

ref: 1bcde11a581ededd03b6e60e8e97048f7556ad66 starkingdoms/crates/unified/src/shared/net/planet.rs -rw-r--r-- 485 bytes
1bcde11a — core netcode: part updates (mystery performance issue, probably related to lots of malloc()) 8 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use bevy::prelude::{Entity, Message, Transform, TypePath};
use serde::{Deserialize, Serialize};
use crate::shared::config::planet::Planet;

#[derive(Serialize, Deserialize, Message, TypePath, Debug, Clone)]
pub struct PlanetUpdatePacket {
    pub updated_planets: Vec<PlanetDto>
}

#[derive(Serialize, Deserialize, TypePath, Debug, Clone)]
pub struct PlanetDto {
    pub server_entity: Entity,

    pub planet: Planet,
    pub planet_data_changed: bool,

    pub transform: Transform
}