coastline 0.0.4
Loading...
Searching...
No Matches
networkrace.h
Go to the documentation of this file.
1#ifndef COASTLINE_NETWORKRACE_H
2#define COASTLINE_NETWORKRACE_H
3
4#include <stdbool.h>
5
6#include <windows.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
18
25
34
41
48
55
62
69void RemoveNetworkPlayerById(int slotIndex);
70
78
86
93
101
109
117void CopyPlayerNameToSlotBuffer(int slotIndex, const char *name);
118
126
133void AddNetworkPlayerSlot(int slotIndex);
134
142
143#ifdef __cplusplus
144}
145#endif
146
147#endif
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.
typedef DWORD