Ejemplo n.º 1
0
        public static StatisticsEntryList FromReader(IMinecraftDataReader reader)
        {
            var count = reader.ReadVarInt();

            var value = new StatisticsEntryList();
            for (int i = 0; i < count; i++)
                value[i] = new StatisticsEntry { StatisticsName = reader.ReadString(), Value = reader.ReadVarInt() };
            

            return value;
        }
Ejemplo n.º 2
0
        public static StatisticsEntryList FromReader(IMinecraftDataReader reader)
        {
            var count = reader.ReadVarInt();

            var value = new StatisticsEntryList();

            for (int i = 0; i < count; i++)
            {
                value[i] = new StatisticsEntry {
                    StatisticsName = reader.ReadString(), Value = reader.ReadVarInt()
                }
            }
            ;


            return(value);
        }