source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/CleanTheLab/src/res/server/actor/server.s3d_actor @ 2453

Revision 2453, 6.4 KB checked in by szirmay, 17 years ago (diff)
Line 
1///////////////////////////////////////////////////////////////////////////////
2//
3//      ##  ######
4//       ######  ###
5//  ## ###############        Shark 3D Engine (www.shark3d.com)
6//   ########## # # #
7//    ########                Copyright (c) 1996-2006 Spinor GmbH.
8//   ######### # # #          All rights reserved.
9//  ##   ##########
10//      ##
11//
12///////////////////////////////////////////////////////////////////////////////
13
14// This file describes the server.
15
16// The server has an own namespace:
17actor_ident "kit_base.capsule"
18actor_param
19{
20    active 1
21    scope "server"
22    local_name "capsule"
23    deleg_target "dispatch_export"
24    child_ident "kit_base.group"
25    child_param
26    {
27        active 1
28        child_array
29        {
30            // Dispatcher handling messages from outside the server.
31            ident "kit_base.dispatch"
32            param
33            {
34                name "dispatch_export"
35                entry_array
36                {
37                    // Create local player (not via networking):
38                    cmds "produce_player"
39                    targets "universe"
40                }
41            }
42        }
43        {
44            ident "kit_base.dispatch"
45            param
46            {
47                name "dispatch"
48                entry_array
49            }
50        }
51        {
52            // Dispatcher handling messages from the universe.
53            ident "kit_base.dispatch"
54            param
55            {
56                name "dispatch_universe"
57                entry_array
58                {
59                    cmds "get_basesuppl"
60                    targets "sersuppl"
61                    newcmd "get_obj"
62                }
63                {
64                    cmds "ignore_frmtime"
65                    targets "^root"
66                }
67                {
68                    cmds "cfg_access_int_info"
69                    targets "^cfg"
70                    newcmd "access_int_info"
71                }
72                {
73                    cmds "cfg_access_float_info"
74                    targets "^cfg"
75                    newcmd "access_float_info"
76                }
77                {
78                    cmds "cfg_access_str_info"
79                    targets "^cfg"
80                    newcmd "access_str_info"
81                }
82                {
83                    cmds "cfg_access_chunk_info"
84                    targets "^cfg"
85                    newcmd "access_chunk_info"
86                }
87                {
88                    cmds "universe_cfg_access_int_info"
89                    targets "universe_cfg"
90                    newcmd "access_int_info"
91                }
92                {
93                    cmds "universe_cfg_access_float_info"
94                    targets "universe_cfg"
95                    newcmd "access_float_info"
96                }
97                {
98                    cmds "universe_cfg_access_str_info"
99                    targets "universe_cfg"
100                    newcmd "access_str_info"
101                }
102                {
103                    cmds "universe_cfg_access_chunk_info"
104                    targets "universe_cfg"
105                    newcmd "access_chunk_info"
106                }
107            }
108        }
109        {
110            ident "kit_perch.mgr"
111            param
112            {
113                name "perchmgr"
114            }
115        }
116        {
117            ident "kit_snk.data"
118            param
119            {
120                name "universe_cfg"
121                val
122                {
123                    server 1
124                }
125            }
126        }
127        {
128            ident "kit_base.sersuppl"
129            param
130            {
131                name "sersuppl"
132                child "^basesuppl"
133            }
134        }
135        {
136            ident "kit_base.onaction"
137            param
138            {
139                active 1
140                name "poll_recv_onaction"
141                target "link_set"
142                cmd "poll_recv"
143            }
144        }
145        {
146            // Event queue
147            ident "kit_base.evtmgr"
148            param
149            {
150                active 1
151                name "evtmgr"
152                extcfg_actor "^cfg"
153                extcfg_entry_log "log.evtmgr"
154            }
155        }
156        {
157            // Include the universe definition:
158            ident "kit_engbase.extern"
159            param
160            {
161                active 1
162                name "universe_extern"
163                deleg_name "universe"
164                allow_no_target 1
165                res "universe/actor/universe.s3d_actor_run"
166                net_imprint 1
167            }
168        }
169        {
170            // External file describing the structure of each link:
171            ident "kit_base.extern"
172            param
173            {
174                // Delegate action calls to the child:
175                active 1
176                res "server/actor/serverlink.s3d_actor_run"
177            }
178        }
179        {
180            // Create a network engine.
181            ident "kit_io.neteng"
182            param
183            {
184                active 1
185                name "neteng"
186                // Get parameters from the actor "cfg",
187                // which is defined above.
188                extcfg_actor "^cfg"
189                // Get the parameters from the "network" entry.
190                extcfg_entry_param "network"
191                given_array
192                {
193                    item "^env"
194                    given_ident "env"
195                }
196            }
197        }
198        {
199            // Actor waiting for connections from clients:
200            ident "kit_engbase.pluglisten"
201            param
202            {
203                name "pluglisten"
204                neteng "neteng"
205                link_producer "link_producer"
206                extcfg_actor "^cfg"
207                extcfg_entry_addr "server.addr"
208            }
209        }
210        {
211            ident "kit_base.onaction"
212            param
213            {
214                active 1
215                name "check_pluglisten_onaction"
216                target "pluglisten"
217                cmd "check"
218            }
219        }
220        {
221            ident "kit_base.onaction"
222            param
223            {
224                active 1
225                name "poll_send_onaction"
226                target "link_set"
227                cmd "poll_send"
228            }
229        }
230    }
231}
Note: See TracBrowser for help on using the repository browser.