mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-14 23:58:12 +03:00
Filled out FriendGameInfo
This commit is contained in:
parent
6b9b7da34b
commit
2c4fc82ae2
@ -116,10 +116,22 @@ namespace Steamworks
|
|||||||
{
|
{
|
||||||
internal ulong GameID; // m_gameID class CGameID
|
internal ulong GameID; // m_gameID class CGameID
|
||||||
internal uint GameIP; // m_unGameIP uint32
|
internal uint GameIP; // m_unGameIP uint32
|
||||||
internal ushort GamePort; // m_usGamePort uint16
|
|
||||||
internal ushort QueryPort; // m_usQueryPort uint16
|
|
||||||
internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID
|
internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID
|
||||||
|
|
||||||
|
public int GamePort;
|
||||||
|
public int QueryPort;
|
||||||
|
|
||||||
|
public System.Net.IPAddress IpAddress => Utility.Int32ToIp( GameIP );
|
||||||
|
|
||||||
|
public Lobby? Lobby
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if ( SteamIDLobby == 0 ) return null;
|
||||||
|
return new Lobby( SteamIDLobby );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
internal static FriendGameInfo From( FriendGameInfo_t i )
|
internal static FriendGameInfo From( FriendGameInfo_t i )
|
||||||
{
|
{
|
||||||
return new FriendGameInfo
|
return new FriendGameInfo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user