示例#1
0
        void InnerBinWrite(BinaryWriter writer, int verNo)
        {
            verNo = this.VerNo;
            writer.Write((byte)verNo);
            writer.Write((byte)MatchType);
            writer.Write((byte)MapId);
            writer.Write((byte)HomeScore);
            writer.Write((byte)AwayScore);
            HomeManager.BinWrite(writer, verNo);
            AwayManager.BinWrite(writer, verNo);
            int cnt = CntBallResults;

            writer.Write((ushort)cnt);
            if (cnt > 0)
            {
                foreach (var item in BallResults)
                {
                    item.BinWrite(writer, verNo);
                }
            }
        }