public static Content Deserialize(DataDeserializer reader) { var type = reader.PeekInt(); foreach (var factory in Factories) { var content = factory.Create(type); if (content != null) { content.Read(reader); return(content); } } return(null); }
public static Content Deserialize(DataDeserializer reader) { var type = reader.PeekInt(); foreach (var factory in Factories) { var content = factory.Create(type); if (content != null) { content.Read(reader); return(content); } } return(null); }