source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/IllumDemo/bin/res/client/actor/display.s3d_actor_run @ 2196

Revision 2196, 5.6 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// Client-side display.
15// The display is a 3D state completely managed on client side
16// to display informations like health points or the inventory.
17
18// The client root actor is a capsule, defining an own local namespace.
19actor_ident "kit_base.capsule"
20actor_param
21{
22    // Delegate the action calls to all children:
23    active 1
24    // Scope name for reporting errors.
25    scope "display"
26    // Name of the capsule actor within its own namespace.
27    // Actors within the capsule can access the capsule
28    // actor itself by this name.
29    local_name "capsule"
30    // Delegate events from outside to.
31    deleg_target "dispatch_export"
32    // The capsule actor encapsulates a group of actors:
33    child_ident "kit_base.group"
34    child_param
35    {
36        // Delegate action calls to the children.
37        active 1
38        child_array
39        {
40            // Central command dispatch actor.
41            // This dispatcher is used internally within the client.
42            ident "kit_base.dispatch"
43            param
44            {
45                name "dispatch_export"
46                entry_array
47                {
48                    cmds "get_gfxmgr"
49                    targets "gfxmgr"
50                    newcmd "get_obj"
51                }
52                {
53                    cmds "get_sndmgr"
54                    targets "sndmgr"
55                    newcmd "get_obj"
56                }
57                {
58                    cmds "get_state"
59                    targets "state"
60                    newcmd "get_obj"
61                }
62                {
63                    cmds "enable_notice_loading"
64                    targets "loading_pos"
65                    newcmd "enable_pos"
66                }
67                {
68                    cmds "disable_notice_loading"
69                    targets "loading_pos"
70                    newcmd "disable_pos"
71                }
72                {
73                    cmds "notice_saving_enable"
74                    targets "saving_pos"
75                    newcmd "enable_pos"
76                }
77                {
78                    cmds "notice_saving_disable"
79                    targets "saving_pos"
80                    newcmd "disable_pos"
81                }
82            }
83        }
84        {
85            ident "kit_base.deleg"
86            param
87            {
88                name ""
89                deleg_name "env"
90                deleg_target "^^env"
91                allow_no_target 0
92                enabled 1
93            }
94        }
95        {
96            ident "kit_base.deleg"
97            param
98            {
99                name ""
100                deleg_name "perchmgr"
101                deleg_target "^perchmgr"
102                allow_no_target 0
103                enabled 1
104            }
105        }
106        {
107            ident "kit_engbase.gfxmgr"
108            param
109            {
110                name "gfxmgr"
111                ident "eng_base.gfxmgr"
112            }
113        }
114        {
115            ident "kit_base.obj"
116            param
117            {
118                name "gfxsuppl"
119                obj_suppl "^^envcompsuppl"
120                obj_ident "eng_base.gfxsuppl"
121                obj_param
122                {
123                    env "^^env"
124                    child_suppl "^^basesuppl"
125               
126                }
127            }
128        }
129        {
130            ident "kit_engbase.gfxassign"
131            param
132            {
133                obj "gfxsuppl"
134                gfxmgr "gfxmgr"
135            }
136        }
137        {
138            ident "kit_engbase.sndmgr"
139            param
140            {
141                name "sndmgr"
142                ident "eng_base.sndmgr"
143            }
144        }
145        {
146            ident "kit_base.obj"
147            param
148            {
149                name "stdsuppl"
150                obj_suppl "^^envcompsuppl"
151                obj_ident "eng_base.sndsuppl"
152                obj_param
153                {
154                    env "^^env"
155                    child_suppl "gfxsuppl"
156                }
157            }
158        }
159        {
160            ident "kit_engbase.sndassign"
161            param
162            {
163                obj "stdsuppl"
164                sndmgr "sndmgr"
165            }
166        }
167        {
168            ident "kit_engbase.clock"
169            param
170            {
171                active 1
172                name "clock"
173                clock_suppl "stdsuppl"
174                clock_ident "clock:"
175            }
176        }
177        {
178            ident "kit_engbase.state"
179            param
180            {
181                name "state"
182                obj_suppl "stdsuppl"
183                obj_ident "state:"
184            }
185        }
186        {
187            // Load the display 3d data:
188            ident "kit_base.extern"
189            param
190            {
191                // Delegate action calls to the child:
192                name "displaystate_extern"
193                res "client/actor/displayworld.s3d_actor_run"
194                watch_target "displaystate_extern"
195                watch_cmd "load_current"
196                active 1
197            }
198        }
199    }
200}
Note: See TracBrowser for help on using the repository browser.