source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/IllumDemo/src/res/client/actor/snd.s3d_actor @ 2196

Revision 2196, 5.3 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// Definition of the snd output.
15// This includes the snd engine object and the sndport.
16
17// The client root actor is a capsule, defining an own local namespace.
18actor_ident "kit_base.capsule"
19actor_param
20{
21    // Delegate the action calls to all children:
22    active 1
23    // Scope name for reporting errors:
24    scope "snd"
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:
30    deleg_target "dispatch_export"
31    // The capsule actor contains a group of actors:
32    child_ident "kit_base.group"
33    child_param
34    {
35        // Delegate action calls to the children.
36        active 1
37        child_array
38        {
39            // Dispatcher for commands from outside the capsule.
40            ident "kit_base.dispatch"
41            param
42            {
43                name "dispatch_export"
44                entry_array
45                {
46                    cmds "set_sndmgr_level"
47                    targets "sndsect_level"
48                    newcmd "assign_sndmgr"
49                }
50                {
51                    cmds "set_state_display"
52                    targets "sndport_display"
53                    newcmd "assign_state"
54                }
55                {
56                    cmds "set_state_world"
57                    targets "sndport_world"
58                    newcmd "assign_state"
59                }
60                {
61                    cmds "set_state_sky"
62                    targets "sndport_sky"
63                    newcmd "assign_state"
64                }
65                {
66                    // Update camera transformation of world:
67                    cmds "set_camera_efftransf"
68                    targets
69                        "sndport_world"
70                    newcmd "set_transf"
71                }
72                {
73                    cmds "suspend"
74                    targets
75                }
76                {
77                    cmds "update"
78                    targets "sndport_display"
79                    newcmd "perform"
80                }
81            }
82        }
83        {
84            // Snd engine.
85            ident "kit_io.sndeng"
86            param
87            {
88                name "sndeng"
89                active 1
90                extcfg_actor "^^^cfg"
91                extcfg_entry_param "snd"
92                given_array
93                {
94                    item "^ctx"
95                    given_ident "ctx"
96                }
97            }
98        }
99        {
100            // 3D graphics engine:
101            ident "kit_engbase.sndctx"
102            param
103            {
104                name "sndctx"
105                sndeng "sndeng"
106            }
107        }
108        {
109            // 3D graphics engine:
110            ident "kit_engbase.sndsect"
111            param
112            {
113                name "sndsect_display"
114                sndctx "sndctx"
115                sndmgr_actor "^^display"
116                sndmgr_cmd "get_sndmgr"               
117            }
118        }
119        {
120            // 3D graphics engine:
121            ident "kit_engbase.sndsect"
122            param
123            {
124                name "sndsect_level"
125                sndctx "sndctx"
126                sndmgr_actor ""
127                sndmgr_cmd ""
128            }
129        }
130        {
131            // Sndport for sky:
132            ident "kit_engbase.sndport"
133            param
134            {
135                active 1
136                name "sndport_sky"
137                sndctx "sndctx"
138                next ""
139                couple 0
140            }
141        }
142        {
143            // Sndport for world:
144            ident "kit_engbase.sndport"
145            param
146            {
147                active 1
148                name "sndport_world"
149                sndctx "sndctx"
150                next "sndport_sky"
151                couple 1
152            }
153        }
154        {
155            // Sndport for display:
156            ident "kit_engbase.sndport"
157            param
158            {
159                active 1
160                name "sndport_display"
161                sndctx "sndctx"
162                next "sndport_world"
163                couple 0
164                state_actor "^^display"
165                state_cmd "get_state"
166            }
167        }
168       
169        /*{
170            // CD Player:
171            ident "kit_special.s3d_actorplayer"
172            param
173            {
174                name "cdplayer"
175                stop_on_destruct 1
176            }
177        }*/
178        /*{
179            // Start the first track of the CD on startup.
180            ident "kit_base.oninit"
181            param
182            {
183                target "cdplayer"
184                cmd "play_track_one"
185            }
186        }*/
187    }
188}
Note: See TracBrowser for help on using the repository browser.