Exemple #1
0
        private static unsafe void OnLobbyChatMessageRecievedAPI(LobbyChatMsg_t callback)
        {
            SteamId       steamid       = default;
            ChatEntryType chatEntryType = default;
            var           buffer        = Helpers.TakeMemory();

            var readData = Internal.GetLobbyChatEntry(callback.SteamIDLobby, (int)callback.ChatID, ref steamid, buffer, Helpers.MemoryBufferSize, ref chatEntryType);

            if (readData > 0)
            {
                OnChatMessage?.Invoke(new Lobby(callback.SteamIDLobby), new Friend(steamid), Helpers.MemoryToString(buffer));
            }
        }