~starkingdoms/starkingdoms

ref: 08355656f50d8e095c280962b250178acbd1299f starkingdoms/crates/unified/src/shared/net/planet.rs -rw-r--r-- 493 bytes
08355656 — core netcode: planet updates 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<UpdatedPlanet>
}

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

    pub planet: Planet,
    pub planet_data_changed: bool,

    pub transform: Transform
}