diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-05 21:37:33 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-05 21:37:33 +0000 |
| commit | 0fceb1cf1ab9887040f08f0abf646ef318a65ae3 (patch) | |
| tree | f5891363037885b576336f9a44189a7dc9695256 /src/engine/docs/server_op.txt | |
| parent | 61bfe2d70cae6be8c4086a210a5451135ccca9ea (diff) | |
| download | zcatch-0fceb1cf1ab9887040f08f0abf646ef318a65ae3.tar.gz zcatch-0fceb1cf1ab9887040f08f0abf646ef318a65ae3.zip | |
added documentation
Diffstat (limited to 'src/engine/docs/server_op.txt')
| -rw-r--r-- | src/engine/docs/server_op.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/engine/docs/server_op.txt b/src/engine/docs/server_op.txt new file mode 100644 index 00000000..59181e62 --- /dev/null +++ b/src/engine/docs/server_op.txt @@ -0,0 +1,39 @@ +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 |