pub struct Snapshot {Show 17 fields
pub tick: Tick,
pub chunk_rev: u64,
pub content_rev: u64,
pub entities: Vec<EntityState>,
pub resource_nodes: Vec<ResourceNodeView>,
pub world_width_m: f32,
pub world_height_m: f32,
pub buildings: Vec<BuildingView>,
pub doors: Vec<DoorView>,
pub npcs: Vec<NpcView>,
pub inventory: Vec<ItemStack>,
pub blueprints: Vec<BlueprintView>,
pub world_clock: WorldClock,
pub terrain_zones: Vec<TerrainZoneView>,
pub ground_drops: Vec<GroundDropView>,
pub placed_containers: Vec<PlacedContainerView>,
pub combat: Option<CombatHud>,
}Expand description
Full state on region enter or reconnect.
Fields§
§tick: Tick§chunk_rev: u64§content_rev: u64Bumped when blueprints, catalog, segment, or settings reload.
entities: Vec<EntityState>§resource_nodes: Vec<ResourceNodeView>§world_width_m: f32Segment play area width in meters (for HUD).
world_height_m: f32§buildings: Vec<BuildingView>§doors: Vec<DoorView>§npcs: Vec<NpcView>§inventory: Vec<ItemStack>§blueprints: Vec<BlueprintView>§world_clock: WorldClock§terrain_zones: Vec<TerrainZoneView>§ground_drops: Vec<GroundDropView>§placed_containers: Vec<PlacedContainerView>§combat: Option<CombatHud>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more