// modified by Bevy contributors use crate::entities::Entity; use serde::{Serialize, Serializer}; impl Serialize for Entity { fn serialize(&self, serializer: S) -> Result where S: Serializer, { serializer.serialize_u32(self.id()) } }