public static UInt64 GetMemberId(int Index) { if (SteamCore.InOfflineMode()) { return(SteamCore.PlayerId()); } //REMOVE//if ( s_CurrentLobby.m_handle == null ) return 0; CSteamID steamIDLobbyMember = (CSteamID)SteamMatchmaking.GetLobbyMemberByIndex(s_CurrentLobby.m_handle, Index); return((UInt64)steamIDLobbyMember); }
public static void SendChatMsg(string Msg) { if (SteamCore.InOfflineMode()) { s_OnChatMsg.Invoke(Msg, SteamCore.PlayerId(), "player"); return; } //REMOVE//if ( s_CurrentLobby.m_handle == null ) return; var bytes = StringHelper.GetBytes(Msg); SteamMatchmaking.SendLobbyChatMsg(s_CurrentLobby.m_handle, bytes, bytes.Length); }