public void WriteTo(ref SpanBufferWriter bufferWriter)
 {
     bufferWriter.WriteString(UserId);
     bufferWriter.WriteString(UserName);
     bufferWriter.WriteString(Secret);
     bufferWriter.WriteVarUInt(CurrentPlayerCount);
 }
Beispiel #2
0
 public void WriteTo(ref SpanBufferWriter bufferWriter)
 {
     bufferWriter.WriteUInt8((byte)Platform);
     bufferWriter.WriteString(UserId);
     bufferWriter.WriteString(UserName);
     bufferWriter.WriteVarBytes(SessionToken);
 }
 public void WriteTo(ref SpanBufferWriter bufferWriter)
 {
     bufferWriter.WriteString(UserId);
     bufferWriter.WriteString(UserName);
     bufferWriter.WriteBytes(Random);
     bufferWriter.WriteVarBytes(PublicKey);
     Configuration.WriteTo(ref bufferWriter);
     bufferWriter.WriteString(Secret);
 }
 public void WriteTo(ref SpanBufferWriter bufferWriter)
 {
     bufferWriter.WriteString(UserId);
     bufferWriter.WriteString(UserName);
     bufferWriter.WriteIPEndPoint(RemoteEndPoint);
     bufferWriter.WriteBytes(Random);
     bufferWriter.WriteVarBytes(PublicKey);
     bufferWriter.WriteUInt8((byte)((IsConnectionOwner ? 1 : 0) | (IsDedicatedServer ? 2 : 0)));
 }
 public void WriteTo(ref SpanBufferWriter bufferWriter)
 {
     bufferWriter.WriteString(UserId);
     bufferWriter.WriteString(UserName);
     bufferWriter.WriteBytes(Random);
     bufferWriter.WriteVarBytes(PublicKey);
     bufferWriter.WriteString(Secret);
     bufferWriter.WriteString(Code);
     bufferWriter.WriteString(Password);
     bufferWriter.WriteBool(UseRelay);
 }
Beispiel #6
0
 public void WriteTo(ref SpanBufferWriter bufferWriter)
 {
     bufferWriter.WriteString(ServerName);
     bufferWriter.WriteString(UserId);
     bufferWriter.WriteString(UserName);
     bufferWriter.WriteString(Secret);
     bufferWriter.WriteString(Password);
     bufferWriter.WriteVarInt(CurrentPlayerCount);
     bufferWriter.WriteVarInt(MaximumPlayerCount);
     bufferWriter.WriteUInt8((byte)DiscoveryPolicy);
     bufferWriter.WriteUInt8((byte)InvitePolicy);
     Configuration.WriteTo(ref bufferWriter);
     bufferWriter.WriteBytes(Random);
     bufferWriter.WriteVarBytes(PublicKey);
 }
        public void WriteTo(ref SpanBufferWriter bufferWriter)
        {
            bufferWriter.WriteUInt8((byte)Result);
            if (!Success)
            {
                return;
            }

            bufferWriter.WriteIPEndPoint(RemoteEndPoint);
            bufferWriter.WriteString(Code);
        }
Beispiel #8
0
        public void WriteTo(ref SpanBufferWriter bufferWriter)
        {
            bufferWriter.WriteUInt8((byte)Result);
            if (!Success)
            {
                return;
            }

            bufferWriter.WriteString(UserId);
            bufferWriter.WriteString(UserName);
            bufferWriter.WriteString(Secret);
            bufferWriter.WriteUInt8((byte)DiscoveryPolicy);
            bufferWriter.WriteUInt8((byte)InvitePolicy);
            bufferWriter.WriteVarInt(MaximumPlayerCount);
            Configuration.WriteTo(ref bufferWriter);
            bufferWriter.WriteUInt8((byte)((IsConnectionOwner ? 1 : 0) | (IsDedicatedServer ? 2 : 0)));
            bufferWriter.WriteIPEndPoint(RemoteEndPoint);
            bufferWriter.WriteBytes(Random);
            bufferWriter.WriteVarBytes(PublicKey);
        }
 public void WriteTo(ref SpanBufferWriter bufferWriter)
 {
     bufferWriter.WriteString(UserId);
     bufferWriter.WriteString(UserName);
     bufferWriter.WriteString(Secret);
 }