public void Deserialize(NetDataReader reader)
 {
     this.levelId         = reader.GetString();
     this.songName        = reader.GetString();
     this.songSubName     = reader.GetString();
     this.songAuthorName  = reader.GetString();
     this.levelAuthorName = reader.GetString();
     this.characteristic  = reader.GetString();
     this.difficulty      = (BeatmapDifficulty)reader.GetVarUInt();
 }
    public bool ProcessPacket(NetDataReader reader, TData data)
    {
        if (reader.EndOfData)
        {
            return(false);
        }
        int varUInt = (int)reader.GetVarUInt();

        this.ProcessPacketInternal(reader, varUInt, data);
        return(true);
    }
Пример #3
0
        public void Deserialize(NetDataReader reader)
        {
            this.levelId         = reader.GetString();
            this.songName        = reader.GetString();
            this.songSubName     = reader.GetString();
            this.songAuthorName  = reader.GetString();
            this.levelAuthorName = reader.GetString();
            this.beatsPerMinute  = reader.GetFloat();
            this.songDuration    = reader.GetFloat();

            this.characteristic = reader.GetString();
            this.difficulty     = (BeatmapDifficulty)reader.GetVarUInt();

            this.coverImage = reader.GetBytesWithLength();
            //if (this.coverImage == null || this.coverImage.Length == 0)
            //Plugin.Log?.Debug($"Received a PreviewBeatmapPacket with an empty coverImage.");
        }