[2270] | 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 | actor_ident "kit_base.group"
|
---|
| 15 | actor_param
|
---|
| 16 | {
|
---|
| 17 | // Delegate action calls to the children.
|
---|
| 18 | active 1
|
---|
| 19 | child_array
|
---|
| 20 | {
|
---|
| 21 | // Dispatcher handling messages for the level root.
|
---|
| 22 | ident "kit_base.dispatch"
|
---|
| 23 | param
|
---|
| 24 | {
|
---|
| 25 | name "dispatch_export"
|
---|
| 26 | entry_array
|
---|
| 27 | {
|
---|
| 28 | cmds "rawproduce_player"
|
---|
| 29 | targets "player_rawproducer"
|
---|
| 30 | newcmd "produce"
|
---|
| 31 | }
|
---|
| 32 | {
|
---|
| 33 | cmds "find_player"
|
---|
| 34 | targets "player_set"
|
---|
| 35 | newcmd "search_noinform"
|
---|
| 36 | }
|
---|
| 37 | {
|
---|
| 38 | cmds "net_traverse"
|
---|
| 39 | targets
|
---|
| 40 | "player_producer"
|
---|
| 41 | "player_appear"
|
---|
| 42 | "level_extern"
|
---|
| 43 | newcmd "traverse"
|
---|
| 44 | }
|
---|
| 45 | {
|
---|
| 46 | cmds "store_pre"
|
---|
| 47 | targets "player_set"
|
---|
| 48 | }
|
---|
| 49 | {
|
---|
| 50 | cmds "goto"
|
---|
| 51 | "goto_level0" "goto_level1"
|
---|
| 52 | "goto_level2" "goto_level3"
|
---|
| 53 | "goto_level4" "goto_level5"
|
---|
| 54 | "goto_level6" "goto_level7"
|
---|
| 55 | "goto_level8" "goto_level9"
|
---|
| 56 | "goto_level10" "goto_level11"
|
---|
| 57 | "goto_level12" "goto_level13"
|
---|
| 58 | "goto_level14" "goto_level15"
|
---|
| 59 | "goto_level16" "goto_level17"
|
---|
| 60 | "goto_level18" "goto_level19"
|
---|
| 61 | "goto_level20" "goto_level21"
|
---|
| 62 | targets "levelmgr"
|
---|
| 63 | }
|
---|
| 64 | }
|
---|
| 65 | }
|
---|
| 66 | {
|
---|
| 67 | ident "kit_base.dispatch"
|
---|
| 68 | param
|
---|
| 69 | {
|
---|
| 70 | name "dispatch"
|
---|
| 71 | entry_array
|
---|
| 72 | {
|
---|
| 73 | cmds
|
---|
| 74 | "notice_level_load_pre"
|
---|
| 75 | "notice_level_load_post"
|
---|
| 76 | targets "outside"
|
---|
| 77 | }
|
---|
| 78 | }
|
---|
| 79 | }
|
---|
| 80 | {
|
---|
| 81 | // Stub object for the cfg actor.
|
---|
| 82 | // Delegates the commands to the real cfg actor
|
---|
| 83 | // outside the universe.
|
---|
| 84 | ident "kit_base.dispatch"
|
---|
| 85 | param
|
---|
| 86 | {
|
---|
| 87 | name "cfg"
|
---|
| 88 | entry_array
|
---|
| 89 | {
|
---|
| 90 | cmds "access_int_info"
|
---|
| 91 | targets "outside"
|
---|
| 92 | newcmd "cfg_access_int_info"
|
---|
| 93 | }
|
---|
| 94 | {
|
---|
| 95 | cmds "access_float_info"
|
---|
| 96 | targets "outside"
|
---|
| 97 | newcmd "cfg_access_float_info"
|
---|
| 98 | }
|
---|
| 99 | {
|
---|
| 100 | cmds "access_str_info"
|
---|
| 101 | targets "outside"
|
---|
| 102 | newcmd "cfg_access_str_info"
|
---|
| 103 | }
|
---|
| 104 | {
|
---|
| 105 | cmds "access_chunk_info"
|
---|
| 106 | targets "outside"
|
---|
| 107 | newcmd "cfg_access_chunk_info"
|
---|
| 108 | }
|
---|
| 109 | }
|
---|
| 110 | }
|
---|
| 111 | {
|
---|
| 112 | // Stub object for the cfg actor.
|
---|
| 113 | // Delegates the commands to the real cfg actor
|
---|
| 114 | // outside the universe.
|
---|
| 115 | ident "kit_base.dispatch"
|
---|
| 116 | param
|
---|
| 117 | {
|
---|
| 118 | name "setting_cfg"
|
---|
| 119 | entry_array
|
---|
| 120 | {
|
---|
| 121 | cmds "access_int_info"
|
---|
| 122 | targets "outside"
|
---|
| 123 | newcmd "universe_cfg_access_int_info"
|
---|
| 124 | }
|
---|
| 125 | {
|
---|
| 126 | cmds "access_float_info"
|
---|
| 127 | targets "outside"
|
---|
| 128 | newcmd "universe_cfg_access_float_info"
|
---|
| 129 | }
|
---|
| 130 | {
|
---|
| 131 | cmds "access_str_info"
|
---|
| 132 | targets "outside"
|
---|
| 133 | newcmd "universe_cfg_access_str_info"
|
---|
| 134 | }
|
---|
| 135 | {
|
---|
| 136 | cmds "access_chunk_info"
|
---|
| 137 | targets "outside"
|
---|
| 138 | newcmd "universe_cfg_access_chunk_info"
|
---|
| 139 | }
|
---|
| 140 | }
|
---|
| 141 | }
|
---|
| 142 | {
|
---|
| 143 | ident "kit_base.env"
|
---|
| 144 | param
|
---|
| 145 | {
|
---|
| 146 | name "env"
|
---|
| 147 | }
|
---|
| 148 | }
|
---|
| 149 | {
|
---|
| 150 | ident "kit_base.envcompsuppl"
|
---|
| 151 | param
|
---|
| 152 | {
|
---|
| 153 | name "envcompsuppl"
|
---|
| 154 | }
|
---|
| 155 | }
|
---|
| 156 | {
|
---|
| 157 | ident "kit_base.dispatch"
|
---|
| 158 | param
|
---|
| 159 | {
|
---|
| 160 | name "basesuppl"
|
---|
| 161 | entry_array
|
---|
| 162 | {
|
---|
| 163 | cmds "get_obj"
|
---|
| 164 | targets "outside"
|
---|
| 165 | newcmd "get_basesuppl"
|
---|
| 166 | }
|
---|
| 167 | }
|
---|
| 168 | }
|
---|
| 169 | {
|
---|
| 170 | ident "kit_perch.mgr"
|
---|
| 171 | param
|
---|
| 172 | {
|
---|
| 173 | name "perchmgr"
|
---|
| 174 | }
|
---|
| 175 | }
|
---|
| 176 | {
|
---|
| 177 | ident "kit_snk.childif"
|
---|
| 178 | param
|
---|
| 179 | {
|
---|
| 180 | extcfg_actor "setting_cfg"
|
---|
| 181 | extcfg_entry_switch "server"
|
---|
| 182 | then_child_ident "kit_base.onaction"
|
---|
| 183 | then_child_param
|
---|
| 184 | {
|
---|
| 185 | active 1
|
---|
| 186 | target "player_set"
|
---|
| 187 | cmd "check_level"
|
---|
| 188 | }
|
---|
| 189 | else_child_ident ""
|
---|
| 190 | else_child_param
|
---|
| 191 | {
|
---|
| 192 | }
|
---|
| 193 | }
|
---|
| 194 | }
|
---|
| 195 | {
|
---|
| 196 | // Extern actor loading and holding the current level.
|
---|
| 197 | ident "kit_engbase.extern"
|
---|
| 198 | param
|
---|
| 199 | {
|
---|
| 200 | active 1
|
---|
| 201 | name "level_extern"
|
---|
| 202 | deleg_name "level"
|
---|
| 203 | res ""
|
---|
| 204 | allow_no_target 1
|
---|
| 205 | notify_target "dispatch"
|
---|
| 206 | notify_pre_cmd "notice_level_load_pre"
|
---|
| 207 | notify_post_cmd "notice_level_load_post"
|
---|
| 208 | }
|
---|
| 209 | }
|
---|
| 210 | {
|
---|
| 211 | ident "kit_base.dispatch"
|
---|
| 212 | param
|
---|
| 213 | {
|
---|
| 214 | name "levelloader"
|
---|
| 215 | entry_array
|
---|
| 216 | {
|
---|
| 217 | cmds "goto"
|
---|
| 218 | targets "level_extern"
|
---|
| 219 | newcmd "load"
|
---|
| 220 | }
|
---|
| 221 | }
|
---|
| 222 | }
|
---|
| 223 | {
|
---|
| 224 | // External files describing all levels:
|
---|
| 225 | ident "kit_base.extern"
|
---|
| 226 | param
|
---|
| 227 | {
|
---|
| 228 | // Delegate action calls to the child:
|
---|
| 229 | active 1
|
---|
| 230 | res "universe/actor/levels.s3d_actor_run"
|
---|
| 231 | }
|
---|
| 232 | }
|
---|
| 233 | {
|
---|
| 234 | // External file describing the structure of each player:
|
---|
| 235 | ident "kit_base.extern"
|
---|
| 236 | param
|
---|
| 237 | {
|
---|
| 238 | // Delegate action calls to the child:
|
---|
| 239 | active 1
|
---|
| 240 | res "universe/actor/settingplayer.s3d_actor_run"
|
---|
| 241 | }
|
---|
| 242 | }
|
---|
| 243 | {
|
---|
| 244 | ident "kit_engbase.netproducer"
|
---|
| 245 | param
|
---|
| 246 | {
|
---|
| 247 | name "player_producer"
|
---|
| 248 | produce_target "player_rawproducer"
|
---|
| 249 | produce_cmd "produce"
|
---|
| 250 | net_traverse_cmd "net_traverse"
|
---|
| 251 | }
|
---|
| 252 | }
|
---|
| 253 | {
|
---|
| 254 | ident "kit_engbase.netappear"
|
---|
| 255 | param
|
---|
| 256 | {
|
---|
| 257 | name "player_appear"
|
---|
| 258 | appear_target "player_set"
|
---|
| 259 | appear_cmd "net_appear"
|
---|
| 260 | }
|
---|
| 261 | }
|
---|
| 262 | } |
---|