-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathd_net.h
51 lines (35 loc) · 920 Bytes
/
d_net.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef __D_NET__
#define __D_NET__
#include "d_player.h"
#ifdef __GNUG__
#pragma interface
#endif
// [kg] new gameplay stuff
extern int sv_freeaim;
extern int sv_itemrespawn;
extern int sv_weaponrespawn;
extern int sw_powerrespawn;
extern int sv_superrespawn;
extern int playercount;
extern int net_mobjid;
extern char network_message[512];
//
// Network play related stuff.
// There is a data struct that stores network
// communication related stuff, and another
// one that defines the actual packets to
// be transmitted.
//
// Networking and tick handling related.
#define BACKUPTICS TICRATE
// Create any new ticcmds and broadcast to other players.
void NetUpdate (void);
// Broadcasts special packets to other players
// to notify of game exit
void D_QuitNetGame (void);
//? how many ticks to run?
void TryRunTics (void);
// [kg] network screen
void D_StartNet();
void D_NetDrawer();
#endif