source: GTP/trunk/App/Demos/Illum/IBRBillboardCloudTrees/Shark3D/demo_v5x0x7_t164x31u_enterpr_kwin32/src/res/client/actor/display.s3d_actor @ 2330

Revision 2330, 5.8 KB checked in by igarcia, 17 years ago (diff)
Line 
1///////////////////////////////////////////////////////////////////////////////
2//
3//      ##  ######
4//       ######  ###
5//  ## ###############        Shark 3D Engine (www.shark3d.com)
6//   ########## # # #
7//    ########                Copyright (c) 1996-2007 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_display_gfxmgr"
49                    targets "gfxmgr"
50                    newcmd "get_obj"
51                }
52                {
53                    cmds "get_display_sndmgr"
54                    targets "sndmgr"
55                    newcmd "get_obj"
56                }
57                {
58                    cmds "get_display_state"
59                    targets "display_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                    cmds "set_cursor_pos_xyz"
84                    targets "cursor_eye"
85                    newcmd "set_transf_transl_xyz"
86                }
87            }
88        }
89        {
90            ident "kit_base.deleg"
91            param
92            {
93                name ""
94                deleg_name "env"
95                deleg_target "^^env"
96                allow_no_target 0
97                enabled 1
98            }
99        }
100        {
101            ident "kit_base.deleg"
102            param
103            {
104                name ""
105                deleg_name "perchmgr"
106                deleg_target "^perchmgr"
107                allow_no_target 0
108                enabled 1
109            }
110        }
111        {
112            ident "kit_engbase.gfxmgr"
113            param
114            {
115                name "gfxmgr"
116                ident "eng_base.gfxmgr"
117            }
118        }
119        {
120            ident "kit_base.obj"
121            param
122            {
123                name "gfxsuppl"
124                obj_suppl "^^envcompsuppl"
125                obj_ident "eng_base.gfxsuppl"
126                obj_param
127                {
128                    env "^^env"
129                    child_suppl "^^basesuppl"
130               
131                }
132            }
133        }
134        {
135            ident "kit_engbase.gfxassign"
136            param
137            {
138                obj "gfxsuppl"
139                gfxmgr "gfxmgr"
140            }
141        }
142        {
143            ident "kit_engbase.sndmgr"
144            param
145            {
146                name "sndmgr"
147                ident "eng_base.sndmgr"
148            }
149        }
150        {
151            ident "kit_base.obj"
152            param
153            {
154                name "stdsuppl"
155                obj_suppl "^^envcompsuppl"
156                obj_ident "eng_base.sndsuppl"
157                obj_param
158                {
159                    env "^^env"
160                    child_suppl "gfxsuppl"
161                }
162            }
163        }
164        {
165            ident "kit_engbase.sndassign"
166            param
167            {
168                obj "stdsuppl"
169                sndmgr "sndmgr"
170            }
171        }
172        {
173            ident "kit_engbase.clock"
174            param
175            {
176                active 1
177                name "clock"
178                clock_suppl "stdsuppl"
179                clock_ident "clock:"
180            }
181        }
182        {
183            ident "kit_engbase.state"
184            param
185            {
186                name "display_state"
187                obj_suppl "stdsuppl"
188                obj_ident "state:"
189            }
190        }
191        {
192            // Load the display 3d data:
193            ident "kit_base.extern"
194            param
195            {
196                // Delegate action calls to the child:
197                name "displaystate_extern"
198                res "client/actor/displayworld.s3d_actor_run"
199                watch_target "displaystate_extern"
200                watch_cmd "load_current"
201                active 1
202            }
203        }
204    }
205}
Note: See TracBrowser for help on using the repository browser.