예제 #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;
        }
예제 #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);
        }
예제 #3
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            StatisticsEntryList = StatisticsEntryList.FromReader(reader);

            return this;
        }