diff options
| author | lspepinho <162769565+lspepinho@users.noreply.github.com> | 2026-03-02 20:30:22 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-03 06:30:22 +0700 |
| commit | 8b28c20d7adc3824f96fbcc34ad65d778a97a05b (patch) | |
| tree | e61705a557e4e064d707ec542c53dbdac1acbe09 /Minecraft.World | |
| parent | 15129932da9442c2815974c519258345b22d5588 (diff) | |
Fixes for PR #96 (#170)
* Implement basic multiplayer functionality
* Update README.md
---------
Co-authored-by: Slenderman <ssimulpong@outlook.com>
Diffstat (limited to 'Minecraft.World')
| -rw-r--r-- | Minecraft.World/x64headers/extraX64.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Minecraft.World/x64headers/extraX64.h b/Minecraft.World/x64headers/extraX64.h index 2205ae05..b89998ac 100644 --- a/Minecraft.World/x64headers/extraX64.h +++ b/Minecraft.World/x64headers/extraX64.h @@ -215,10 +215,17 @@ public: int GetUserIndex(); void SetCustomDataValue(ULONG_PTR ulpCustomDataValue); ULONG_PTR GetCustomDataValue(); + + BYTE m_smallId; + bool m_isRemote; + bool m_isHostPlayer; + wchar_t m_gamertag[32]; private: ULONG_PTR m_customData; }; +void Win64_SetupRemoteQNetPlayer(IQNetPlayer* player, BYTE smallId, bool isHost, bool isLocal); + const int QNET_GETSENDQUEUESIZE_SECONDARY_TYPE = 0; const int QNET_GETSENDQUEUESIZE_MESSAGES = 0; const int QNET_GETSENDQUEUESIZE_BYTES = 0; @@ -309,9 +316,12 @@ public: bool IsHost(); HRESULT JoinGameFromInviteInfo(DWORD dwUserIndex, DWORD dwUserMask, const INVITE_INFO *pInviteInfo); void HostGame(); - void EndGame(); + void ClientJoinGame(); + void EndGame(); - static IQNetPlayer m_player[4]; + static IQNetPlayer m_player[MINECRAFT_NET_MAX_PLAYERS]; + static DWORD s_playerCount; + static bool s_isHosting; }; #ifdef _DURANGO |
