1#ifndef COASTLINE_NETWORKRACE_H
2#define COASTLINE_NETWORKRACE_H
void EnableNetworkReceive(void)
Enable processing of messages received from the network session.
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.
void RemoveNetworkPlayerById(int slotIndex)
Remove a departed network player from its racer slot.
int PopJoinedPlayerSlot(void)
Pop the slot of a player that joined, under the mutex of the stack.
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.
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.
int g_dwNetworkDataReceived
Whether network data was received since the last pause-menu update.
void ProcessPendingNetworkNotifications(void)
Process pending notifications from the network session.
void SendNetworkMessage6ToSession(void)
Send message 6 of the game naming the local player, when there is one.
int GetLocalPlayerIndex(void)
Get the slot of the local player of a network game.
void DisableNetworkReceive(void)
Stop processing the messages received.
DWORD GetDirectPlaySessionPlayerCount(void)
Count players in the network session.
void CheckNetworkRaceStartTime(void)
Mark the network race started when its start frame has arrived.
void AddNetworkPlayerSlot(int slotIndex)
Add a network player to its racer slot.