Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SendAuthTicket()

void Terraria.Social.Steam.NetClientSocialModule.SendAuthTicket ( CSteamID address)
inlineprivate

Definition at line 249 of file NetClientSocialModule.cs.

250 {
251 //IL_0011: Unknown result type (might be due to invalid IL or missing references)
252 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
253 //IL_0037: Unknown result type (might be due to invalid IL or missing references)
254 //IL_003c: Unknown result type (might be due to invalid IL or missing references)
255 //IL_008e: Unknown result type (might be due to invalid IL or missing references)
256 WeGameHelper.WriteDebugString(" SendAuthTicket");
257 if (_authTicket == HAuthTicket.Invalid)
258 {
259 _authTicket = SteamUser.GetAuthSessionTicket(_authData, _authData.Length, ref _authDataLength);
260 }
261 int num = (int)(_authDataLength + 3);
262 byte[] array = new byte[num];
263 array[0] = (byte)((uint)num & 0xFFu);
264 array[1] = (byte)((uint)(num >> 8) & 0xFFu);
265 array[2] = 93;
266 for (int i = 0; i < _authDataLength; i++)
267 {
268 array[i + 3] = _authData[i];
269 }
270 SteamNetworking.SendP2PPacket(address, array, (uint)num, (EP2PSend)2, 1);
271 }
static void WriteDebugString(string format, params object[] args)

References Terraria.Social.Steam.NetClientSocialModule._authData, Terraria.Social.Steam.NetClientSocialModule._authDataLength, Terraria.Social.Steam.NetClientSocialModule._authTicket, and Terraria.Social.WeGame.WeGameHelper.WriteDebugString().

Referenced by Terraria.Social.Steam.NetClientSocialModule.OnLobbyEntered().