Skip to main content

EntityDataWriter

Type Alias EntityDataWriter 

Source
pub type EntityDataWriter = fn(&EntityData, &mut Vec<u8>) -> Result<()>;
Expand description

Writer function for serializing entity data to network format.

Takes a reference to the EntityData value and writes it to the buffer. Returns an error if the value doesn’t match the expected serializer type.