mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
40 lines
517 B
Plaintext
40 lines
517 B
Plaintext
|
Title: Server Operation
|
||
|
|
||
|
Section: Init
|
||
|
|
||
|
Section: Running
|
||
|
|
||
|
Here is an graph over how the server operates on each refresh.
|
||
|
|
||
|
(start code)
|
||
|
load map
|
||
|
init mod
|
||
|
|
||
|
while running
|
||
|
if map change then
|
||
|
load new map
|
||
|
shutdown mod <mods_shutdown>
|
||
|
reset clients to init state
|
||
|
init mod <mods_init>
|
||
|
end if
|
||
|
|
||
|
if new tick then
|
||
|
call <mods_tick>
|
||
|
for each client do
|
||
|
create snapshot <mods_snap>
|
||
|
send snapshot
|
||
|
end for
|
||
|
end
|
||
|
|
||
|
process new network messages
|
||
|
end while
|
||
|
|
||
|
unload map
|
||
|
(end)
|
||
|
|
||
|
|
||
|
|
||
|
Section: Reinit
|
||
|
|
||
|
Section: Shutdown
|