Cafu Engine
NetConst.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 /*****************************/
8 /*** Net Message Constants ***/
9 /*****************************/
10 
11 
12 // Dieses Header-File definiert die Konstanten für die Kommunikation zwischen Server und Client.
13 // Die 0 wurde absichtlich freigehalten, um sie später evtl. als ErrorFlag verwenden zu können.
14 
15 // 'connection-less' Message-Types vom Client zum Server
16 const char CS0_NoOperation =1;
17 const char CS0_Ping =2;
18 const char CS0_Connect =3;
19 const char CS0_Info =4;
20 const char CS0_RemoteConsoleCommand=5; ///< A message consisting of a password and a command string that is to be executed by the server console interpreter.
21 
22 // 'connection-less' Message-Types vom Server zum Client
23 const char SC0_ACK =1;
24 const char SC0_NACK =2;
25 const char SC0_RccReply =3; ///< String reply to a CS0_RemoteConsoleCommand message.
26 
27 // 'connection-established' Message-Types vom Client zum Server
28 const char CS1_PlayerCommand =1;
29 const char CS1_Disconnect =2;
30 const char CS1_SayToAll =3;
31 const char CS1_WorldInfoACK =4;
32 const char CS1_FrameInfoACK =5;
33 
34 // 'connection-established' Message-Types vom Server zum Client
35 const char SC1_WorldInfo =1;
36 const char SC1_EntityBaseLine=2;
37 const char SC1_FrameInfo =3;
38 const char SC1_EntityUpdate =4;
39 const char SC1_EntityRemove =5; ///< A special case of the SC1_EntityUpdate message: No data follows, remove the entity from the frame instead.
40 const char SC1_DropClient =6;
41 const char SC1_ChatMsg =7;