source: GTP/trunk/App/Demos/Geom/Shark3D/clod_head_demo_win32/src/res/client/actor/display.s3d_actor @ 2236

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