public void Deserialize(NetBuffer reader) { ObjectType = reader.ReadObjectType(); ObjectId = reader.ReadObjectId(); ObjectRole = (ObjectRole)reader.ReadByte(); var additionalDataSize = reader.ReadVariableUInt32(); reader.ReadInto(AdditionalData, (int)additionalDataSize); }