coastline 0.0.4
Loading...
Searching...
No Matches
networkrace.h File Reference
#include <stdbool.h>
#include <windows.h>
Include dependency graph for networkrace.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void SendNetworkMessage6ToSession (void)
 Send message 6 of the game naming the local player, when there is one.
void TickNetworkUnpauseRequest (void)
 Tick a pending request to end the pause of a network race.
bool RequestNetworkUnpause (void)
 Request the end of a pause from the other players of a network game, when no request waits.
void DisableNetworkReceive (void)
 Stop processing the messages received.
void CheckNetworkRaceStartTime (void)
 Mark the network race started when its start frame has arrived.
void ProcessPendingNetworkNotifications (void)
 Process pending notifications from the network session.
void RemoveNetworkPlayerById (int slotIndex)
 Remove a departed network player from its racer slot.
int PopDepartedPlayerSlot (void)
 Pop the slot of a player that departed, under the mutex of the stack.
bool ResetNetworkState (void)
 Reset the network session state.
void EnableNetworkReceive (void)
 Enable processing of messages received from the network session.
int GetLocalPlayerIndex (void)
 Get the slot of the local player of a network game.
unsigned WaitForPlayerIdAssignment (void)
 Wait until the local player receives a slot.
void CopyPlayerNameToSlotBuffer (int slotIndex, const char *name)
 Copy a player's name into the buffer of its network slot.
DWORD GetDirectPlaySessionPlayerCount (void)
 Count players in the network session.
void AddNetworkPlayerSlot (int slotIndex)
 Add a network player to its racer slot.
int PopJoinedPlayerSlot (void)
 Pop the slot of a player that joined, under the mutex of the stack.

Variables

int g_dwNetworkDataReceived
 Whether network data was received since the last pause-menu update.

Function Documentation

◆ SendNetworkMessage6ToSession()

void SendNetworkMessage6ToSession ( void )

Send message 6 of the game naming the local player, when there is one.

Ghidra address:
BRD3D: 0x1003dae0
Ghidra address:
BRGlide: 0x10037180

◆ TickNetworkUnpauseRequest()

void TickNetworkUnpauseRequest ( void )

Tick a pending request to end the pause of a network race.

Ghidra address:
BRD3D: 0x10005090
Ghidra address:
BRGlide: 0x10005400

◆ RequestNetworkUnpause()

bool RequestNetworkUnpause ( void )

Request the end of a pause from the other players of a network game, when no request waits.

Returns
Always true.
Ghidra address:
BRD3D: 0x10004c20
Ghidra address:
BRGlide: 0x10004f90

◆ DisableNetworkReceive()

void DisableNetworkReceive ( void )

Stop processing the messages received.

Ghidra address:
BRD3D: 0x100060c0
Ghidra address:
BRGlide: 0x10006430

◆ CheckNetworkRaceStartTime()

void CheckNetworkRaceStartTime ( void )

Mark the network race started when its start frame has arrived.

Ghidra address:
BRD3D: 0x10006160
Ghidra address:
BRGlide: 0x100064d0

◆ ProcessPendingNetworkNotifications()

void ProcessPendingNetworkNotifications ( void )

Process pending notifications from the network session.

Ghidra address:
BRD3D: 0x100060f0
Ghidra address:
BRGlide: 0x10006460

◆ RemoveNetworkPlayerById()

void RemoveNetworkPlayerById ( int slotIndex)

Remove a departed network player from its racer slot.

Parameters
slotIndexThe slot of the departed player.
Ghidra address:
BRD3D: 0x1002f230
Ghidra address:
BRGlide: 0x1001c7a0

◆ PopDepartedPlayerSlot()

int PopDepartedPlayerSlot ( void )

Pop the slot of a player that departed, under the mutex of the stack.

Returns
The slot, or -1 when the stack is empty.
Ghidra address:
BRD3D: 0x10005d90
Ghidra address:
BRGlide: 0x10006100

◆ ResetNetworkState()

bool ResetNetworkState ( void )

Reset the network session state.

Returns
Always true.
Ghidra address:
BRD3D: 0x10005960
Ghidra address:
BRGlide: 0x10005cd0

◆ EnableNetworkReceive()

void EnableNetworkReceive ( void )

Enable processing of messages received from the network session.

Ghidra address:
BRD3D: 0x10006090
Ghidra address:
BRGlide: 0x10006400

◆ GetLocalPlayerIndex()

int GetLocalPlayerIndex ( void )

Get the slot of the local player of a network game.

Returns
The slot, or -1 before one is assigned.
Ghidra address:
BRD3D: 0x10005d30
Ghidra address:
BRGlide: 0x100060a0

◆ WaitForPlayerIdAssignment()

unsigned WaitForPlayerIdAssignment ( void )

Wait until the local player receives a slot.

Returns
Whether the last player-join packet was sent successfully.
Ghidra address:
BRD3D: 0x10004a90
Ghidra address:
BRGlide: 0x10004e00

◆ CopyPlayerNameToSlotBuffer()

void CopyPlayerNameToSlotBuffer ( int slotIndex,
const char * name )

Copy a player's name into the buffer of its network slot.

Parameters
slotIndexThe slot.
nameThe player name.
Ghidra address:
BRD3D: 0x10005ee0
Ghidra address:
BRGlide: 0x10006250

◆ GetDirectPlaySessionPlayerCount()

DWORD GetDirectPlaySessionPlayerCount ( void )

Count players in the network session.

Returns
The count, or 0xffff when the session description is unavailable.
Ghidra address:
BRD3D: 0x1000c670
Ghidra address:
BRGlide: 0x10009ba0

◆ AddNetworkPlayerSlot()

void AddNetworkPlayerSlot ( int slotIndex)

Add a network player to its racer slot.

Parameters
slotIndexThe slot.
Ghidra address:
BRD3D: 0x1002f130
Ghidra address:
BRGlide: 0x1001c6a0

◆ PopJoinedPlayerSlot()

int PopJoinedPlayerSlot ( void )

Pop the slot of a player that joined, under the mutex of the stack.

Returns
The slot, or -1 when the stack is empty.
Ghidra address:
BRD3D: 0x10005d40
Ghidra address:
BRGlide: 0x100060b0

Variable Documentation

◆ g_dwNetworkDataReceived

int g_dwNetworkDataReceived
extern

Whether network data was received since the last pause-menu update.

Ghidra address:
BRD3D: 0x106909d8
Ghidra address:
BRGlide: 0x105ccb80