Ejemplo n.º 1
0
        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);
        }