protected virtual void OnSteamLobbyChatMsg(SteamLobbyChatMsgEventArgs e) { if (this.SteamLobbyChatMsg != null) { this.SteamLobbyChatMsg(this, e); } }
private void SteamMatchMakingService_SteamLobbyChatMsg(object sender, SteamLobbyChatMsgEventArgs e) { if (e.Message.m_ulSteamIDLobby != this.SteamIDLobby) { return; } Diagnostics.Log("SteamMatchMakingService_SteamLobbyChatMsg (message id = \"{0}\", from {1})", new object[] { e.Message.m_iChatID, e.Message.m_ulSteamIDUser }); Steamworks.SteamID steamIDUser; int lobbyChatEntry = this.SteamMatchMakingService.SteamMatchMaking.GetLobbyChatEntry(this.SteamIDLobby, e.Message.m_iChatID, out steamIDUser, ref this.buffer); if (lobbyChatEntry != 0) { string @string = Encoding.UTF8.GetString(this.buffer, 0, lobbyChatEntry); this.OnLobbyChatMessage(new LobbyChatMessageEventArgs(@string, steamIDUser)); } }