private void serializeEquipment(EquipmentItem item, NetworkWriter writer) { if (item == null) { writer.WriteBytesFull(System.Text.Encoding.Default.GetBytes("null")); } else { item.Serialize(writer); } }