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

◆ OnLobbyChatMessage()

virtual void Terraria.Social.Steam.NetSocialModule.OnLobbyChatMessage ( LobbyChatMsg_t result)
inlineprotectedvirtualinherited

Definition at line 89 of file NetSocialModule.cs.

90 {
91 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
92 //IL_0019: Unknown result type (might be due to invalid IL or missing references)
93 //IL_0023: Unknown result type (might be due to invalid IL or missing references)
94 //IL_0042: Unknown result type (might be due to invalid IL or missing references)
95 //IL_007b: Unknown result type (might be due to invalid IL or missing references)
96 //IL_007d: Unknown result type (might be due to invalid IL or missing references)
97 //IL_008f: Unknown result type (might be due to invalid IL or missing references)
98 if (result.m_ulSteamIDLobby != _lobby.Id.m_SteamID || result.m_eChatEntryType != 1 || result.m_ulSteamIDUser != _lobby.Owner.m_SteamID)
99 {
100 return;
101 }
102 byte[] message = _lobby.GetMessage((int)result.m_iChatID);
103 if (message.Length == 0)
104 {
105 return;
106 }
107 using MemoryStream memoryStream = new MemoryStream(message);
108 using BinaryReader binaryReader = new BinaryReader(memoryStream);
109 byte b = binaryReader.ReadByte();
110 if (b != 1)
111 {
112 return;
113 }
114 CSteamID val = default(CSteamID);
115 while (message.Length - memoryStream.Position >= 8)
116 {
117 ((CSteamID)(ref val))._002Ector(binaryReader.ReadUInt64());
118 if (val != SteamUser.GetSteamID())
119 {
121 }
122 }
123 }
byte[] GetMessage(int index)
Definition Lobby.cs:77
void SetPlayedWith(CSteamID userId)
Definition Lobby.cs:128

References Terraria.Social.Steam.NetSocialModule._lobby, Terraria.Social.Steam.Lobby.GetMessage(), Terraria.Social.Steam.Lobby.Id, Terraria.Social.Steam.Lobby.Owner, and Terraria.Social.Steam.Lobby.SetPlayedWith().

Referenced by Terraria.Social.Steam.NetSocialModule.Initialize().