public static void Serialize(Stream stream, GameSessionInfo instance)
 {
     if (instance.HasStartTime)
     {
         stream.WriteByte(24);
         ProtocolParser.WriteUInt32(stream, instance.StartTime);
     }
     if (instance.HasLocation)
     {
         stream.WriteByte(34);
         ProtocolParser.WriteUInt32(stream, instance.Location.GetSerializedSize());
         GameSessionLocation.Serialize(stream, instance.Location);
     }
     if (instance.HasHasBenefactor)
     {
         stream.WriteByte(40);
         ProtocolParser.WriteBool(stream, instance.HasBenefactor);
     }
     if (instance.HasIsUsingIgr)
     {
         stream.WriteByte(48);
         ProtocolParser.WriteBool(stream, instance.IsUsingIgr);
     }
     if (instance.HasParentalControlsActive)
     {
         stream.WriteByte(56);
         ProtocolParser.WriteBool(stream, instance.ParentalControlsActive);
     }
 }
Beispiel #2
0
 public void Serialize(Stream stream)
 {
     GameSessionLocation.Serialize(stream, this);
 }