r2mods/ilspy_dump/ror2_csproj/RoR2.Networking/ClientAuthData.cs

40 lines
951 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using Unity;
using UnityEngine.Networking;
namespace RoR2.Networking;
public class ClientAuthData : MessageBase
{
public PlatformID platformId = PlatformID.nil;
public byte[] authTicket;
public string[] entitlements;
public string password;
public string version;
public string modHash;
public override void Serialize(NetworkWriter writer)
{
GeneratedNetworkCode._WritePlatformID_None(writer, platformId);
writer.WriteBytesFull(authTicket);
GeneratedNetworkCode._WriteArrayString_None(writer, entitlements);
writer.Write(password);
writer.Write(version);
writer.Write(modHash);
}
public override void Deserialize(NetworkReader reader)
{
platformId = GeneratedNetworkCode._ReadPlatformID_None(reader);
authTicket = reader.ReadBytesAndSize();
entitlements = GeneratedNetworkCode._ReadArrayString_None(reader);
password = reader.ReadString();
version = reader.ReadString();
modHash = reader.ReadString();
}
}