예제 #1
0
        public virtual void Serialize(GenericWriter writer)
        {
            writer.Write((int)1);

            writer.Write(PlayerTable.Count);

            PlayerTable.ForEach(entry =>
            {
                writer.Write(entry.Player);
                entry.Serialize(writer);
            });
        }
예제 #2
0
        public virtual void Serialize(GenericWriter writer)
        {
            writer.Write((int)1);

            writer.Write(PlayerTable.Count);

            PlayerTable.ForEach(entry =>
            {
                writer.Write(entry.Player);
                entry.Serialize(writer);
            });
            // Old version 0, now is stored in PointsEntry for more flexibility in newer systems

            /*writer.Write(PlayerTable.Count);
             *
             * foreach (KeyValuePair<PlayerMobile, double> kvp in PlayerTable)
             * {
             *  writer.Write(kvp.Key);
             *  writer.Write(kvp.Value);
             * }*/
        }