1
2
3
4
5
6
7
8
9
use super::state_mask::StateMask;

/// An Enum with a variant for every Entity that can be synced between
/// Client/Host
pub trait EntityType {
    /// Read bytes from an incoming packet, updating the Properties which have
    /// been mutated on the Server
    fn read_partial(&mut self, state_mask: &StateMask, bytes: &[u8]);
}