示例#1
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(fileChecksum);
            sw.Write(playerName);
            sw.Write(offlineScoreChecksum);
            sw.Write(count300);
            sw.Write(count100);
            sw.Write(count50);
            sw.Write(countGeki);
            sw.Write(countKatu);
            sw.Write(countMiss);
            sw.Write(totalScore);
            sw.Write(maxCombo);
            sw.Write(perfect);
            sw.Write((int)enabledMods);

            sw.Write(GetGraphFormatted());

            if (rawReplayCompressed == null)
            {
                rawReplayCompressed = new byte[0];
            }

            sw.WriteByteArray(rawReplayCompressed);
            sw.Write(date);

            sw.AddToInfo(info);
        }
示例#2
0
        //Serialization function.
        public void GetObjectData(SerializationInfo info, StreamingContext ctxt)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(nXYZ);
            sw.AddToInfo(info);
        }
示例#3
0
        public virtual void GetObjectData(SerializationInfo info, StreamingContext ctx)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            GetObjectData(sw);
            sw.AddToInfo(info);
        }
示例#4
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(beatLength);
            sw.Write(offset);

            sw.AddToInfo(info);
        }
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(MZHigh);
            sw.Write(MZLow);
            sw.Write(Points);
            sw.AddToInfo(info);
        }
示例#6
0
        public virtual void GetObjectData(SerializationInfo info, StreamingContext ctx)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            GetObjectData(sw);
            sw.AddToInfo(info);

            info.AddValue("_FrontendManager", _FrontendManager);
            info.AddValue("_Chat", _Chat);
        }
示例#7
0
        public virtual void GetObjectData(SerializationInfo info, StreamingContext ctx)
        {
            if (info == null)
            {
                throw new ArgumentNullException("info");
            }

            SerializationWriter sw = SerializationWriter.GetWriter();

            GetObjectData(sw);
            sw.AddToInfo(info);
        }
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(MZ);
            sw.Write(RT);
            sw.Write(Intensity);
            sw.Write(ScanNumber);
            sw.Write(Charge);
            sw.Write(IsFullScan);
            sw.AddToInfo(info);
        }
示例#9
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(Artist);
            sw.Write(Title);
            sw.Write(Creator);
            sw.Write(Version);
            sw.Write(AudioFilename);
            sw.Write(BeatmapChecksum);
            sw.Write(Filename);
            sw.Write((byte)submissionStatus);
            sw.Write(countNormal);
            sw.Write(countSlider);
            sw.Write(countSpinner);
            sw.Write(DateModified);
            sw.Write(DifficultyCircleSize);
            sw.Write(DifficultyHpDrainRate);
            sw.Write(DifficultyOverall);
            sw.Write(DifficultySliderMultiplier);
            sw.Write(DrainLength);
            sw.Write(TotalLength);
            sw.Write(PreviewTime);
            sw.Write(TimingPoints);
            sw.Write(BeatmapId);
            sw.Write(BeatmapSetId);
            sw.Write(BeatmapTopicId);
            sw.Write((byte)PlayerRank);
            sw.Write((short)PlayerOffset);
            sw.Write(StackLeniency);
            sw.Write((byte)Mode);
            sw.Write(Source);
            sw.Write(Tags);

            sw.AddToInfo(info);
        }