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 | // Level manager definition.
|
---|
15 | // This includes references to all available levels.
|
---|
16 |
|
---|
17 | actor_ident "kit_base.group"
|
---|
18 | actor_param
|
---|
19 | {
|
---|
20 | // Delegate action calls to the children.
|
---|
21 | active 1
|
---|
22 | child_array
|
---|
23 | {
|
---|
24 | // Actor evaluating level switch commands.
|
---|
25 | ident "kit_base.dispatch"
|
---|
26 | param
|
---|
27 | {
|
---|
28 | name "levelmgr"
|
---|
29 | log 1 // To log level switches.
|
---|
30 | entry_array
|
---|
31 | {
|
---|
32 | cmds "goto_level0"
|
---|
33 | targets "goto_level"
|
---|
34 | newcmd "perform"
|
---|
35 | }
|
---|
36 | {
|
---|
37 | cmds "goto_level1"
|
---|
38 | targets "goto_level"
|
---|
39 | newcmd "perform"
|
---|
40 | }
|
---|
41 | {
|
---|
42 | cmds "goto_level2"
|
---|
43 | targets "goto_level"
|
---|
44 | newcmd "perform"
|
---|
45 | }
|
---|
46 | {
|
---|
47 | cmds "goto_level3"
|
---|
48 | targets "goto_level"
|
---|
49 | newcmd "perform"
|
---|
50 | }
|
---|
51 | {
|
---|
52 | cmds "goto_level4"
|
---|
53 | targets "goto_level"
|
---|
54 | newcmd "perform"
|
---|
55 | }
|
---|
56 | {
|
---|
57 | cmds "goto_level5"
|
---|
58 | targets "goto_level"
|
---|
59 | newcmd "perform"
|
---|
60 | }
|
---|
61 | {
|
---|
62 | cmds "goto_level6"
|
---|
63 | targets "goto_level"
|
---|
64 | newcmd "perform"
|
---|
65 | }
|
---|
66 | {
|
---|
67 | cmds "goto_level7"
|
---|
68 | targets "goto_level"
|
---|
69 | newcmd "perform"
|
---|
70 | }
|
---|
71 | {
|
---|
72 | cmds "goto_level8"
|
---|
73 | targets "goto_level"
|
---|
74 | newcmd "perform"
|
---|
75 | }
|
---|
76 | {
|
---|
77 | cmds "goto_level9"
|
---|
78 | targets "goto_level"
|
---|
79 | newcmd "perform"
|
---|
80 | }
|
---|
81 | }
|
---|
82 | }
|
---|
83 | {
|
---|
84 | ident "kit_base.paramstr"
|
---|
85 | param
|
---|
86 | {
|
---|
87 | name "goto_level"
|
---|
88 | target "levelloader"
|
---|
89 | cmd "goto"
|
---|
90 | param "level/actor/main.s3d_actor_run"
|
---|
91 | }
|
---|
92 | }
|
---|
93 | {
|
---|
94 | ident "kit_snk.childif"
|
---|
95 | param
|
---|
96 | {
|
---|
97 | extcfg_actor "setting_cfg"
|
---|
98 | extcfg_entry_switch "server"
|
---|
99 | then_child_ident "kit_base.oninit"
|
---|
100 | then_child_param
|
---|
101 | {
|
---|
102 | target "levelmgr"
|
---|
103 | cmd "goto_level0"
|
---|
104 | }
|
---|
105 | }
|
---|
106 | }
|
---|
107 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.