public void Deserialize(byte[] bytes, ref int offset) { this.username = ByteSerializer.DeserializeString(bytes, ref offset); this.position = ByteSerializer.DeserializeVector3(bytes, ref offset); this.pointerMode = (PointerMode)ByteSerializer.DeserializeInt(bytes, ref offset); this.pointerColor = ByteSerializer.DeserializeColor(bytes, ref offset); }
public void Deserialize(byte[] bytes, ref int offset) { this.message = ByteSerializer.DeserializeString(bytes, ref offset); this.username = ByteSerializer.DeserializeString(bytes, ref offset); this.nameColor = ByteSerializer.DeserializeColor(bytes, ref offset); }