i6engine  1.0
NetworkChannels.h
Go to the documentation of this file.
1 /*
2  * i6engine
3  * Copyright (2016) Daniel Bonrath, Michael Baer, All rights reserved.
4  *
5  * This file is part of i6engine; i6engine is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef __I6ENGINE_CONFIGS_NETWORKCHANNELS_H__
21 #define __I6ENGINE_CONFIGS_NETWORKCHANNELS_H__
22 
23 #ifdef ISIXE_WITH_NETWORK
24  #include "m2etis/pubsub/config/ChannelName.h"
25 
26  // used for all messages containing information about GameObjects and their components
27  #define OBJECT_CHANNEL m2etis::pubsub::I6ENGINE_Direct_Null_Null_Null_Null_Null_DirectBroadcast_Null_GameMessage_TCP
28 
29  // used for alle position update messages
30  #define POSITION_CHANNEL m2etis::pubsub::I6ENGINE_Direct_Null_Null_Null_Null_Null_DirectBroadcast_Null_GameMessage_TCP
31 
32  // used only by server sending a request for ping to all clients
33  #define PINGREQUEST_CHANNEL m2etis::pubsub::I6ENGINE_Direct_Null_Null_Null_Null_Null_DirectBroadcast_Null_GameMessage_TCP
34 
35  // used only by clients to answer the servers ping request
36  #define PINGANSWER_CHANNEL m2etis::pubsub::I6ENGINE_Direct_Null_Null_Null_Null_Null_DirectBroadcast_Null_GameMessage_TCP
37 
38  // used for all chat messages
39  #define CHAT_CHANNEL m2etis::pubsub::I6ENGINE_Direct_Null_Null_Null_Null_Null_DirectBroadcast_Null_GameMessage_TCP
40 #else /* ISIXE_WITH_NETWORK */
41  // used for all messages containing information about GameObjects and their components
42  #define OBJECT_CHANNEL 0
43 
44  // used for alle position update messages
45  #define POSITION_CHANNEL 0
46 
47  // used only by server sending a request for ping to all clients
48  #define PINGREQUEST_CHANNEL 0
49 
50  // used only by clients to answer the servers ping request
51  #define PINGANSWER_CHANNEL 0
52 
53  // used for all chat messages
54  #define CHAT_CHANNEL 0
55 #endif /* ISIXE_WITH_NETWORK */
56 
57 #endif /* __I6ENGINE_CONFIGS_NETWORKCHANNELS_H__ */