-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetstds.cpp
More file actions
59 lines (46 loc) · 1.08 KB
/
Copy pathnetstds.cpp
File metadata and controls
59 lines (46 loc) · 1.08 KB
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
51
52
53
54
55
56
57
58
59
#pragma once
/*
initial (cel world, vse):
FastCont<PhPoint> points; (id, pos, vel, mass)
FastCont<PhLineObst> lineObst;
FastCont<PhLink> links;
FastCont<PhMuscle> muscles;
FastCont<PhLinkObst> linkObst;
FastCont<PhRocketThr> rocketThrs;
FastCont<PhWeight> weights;
FastCont<FuelCont> fuelConts;
double gravity_accel;
double vel_mult_second;
update (na vsake __ sek):
FastCont<PhPoint> points; (pos, vel)
FastCont<PhRocketThr> rocketThrs; (power)
FastCont<PhWeight> weights; (added weight?)
FastCont<FuelCont> fuelConts; (currentFuel)
FastCont<__>:
st(uint32_T), [id, data],...
packet:
HEADER - req/data, type
BODY - data
TRAILER - /
*/
enum {
NETSTD_HEADER_REQUEST,
NETSTD_HEADER_DATA,
};
enum {
NETSTD_INIT,
NETSTD_UPDATE_ALL,
NETSTD_UPDATE_PLAYER_CONTROLS,
NETSTD_PICKUP_ITEM,
NETSTD_LOOT,
NETSTD_DROP_ITEM,
NETSTD_DELETE,
NETSTD_ADD,
NETSTD_BUILD,
NETSTD_SITDOWN,
NETSTD_STANDUP,
NETSTD_PROJECTILE,
NETSTD_INVENTORY,
NETSTD_INVENTORY_DEMO,
NETSTD_BYE,
};