Mercurial > projects > mde
comparison codeDoc/staticCtors.txt @ 84:e0f1ec7fe73a
Merge plus a few tweaks.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sun, 31 Aug 2008 15:59:17 +0100 |
parents | |
children | 56c0ddd90193 |
comparison
equal
deleted
inserted
replaced
82:ac1e3fd07275 | 84:e0f1ec7fe73a |
---|---|
1 Map of what happens in static CTORs (excluding creating loggers): | |
2 | |
3 mde | |
4 -> imde | |
5 -> input.Input | |
6 -> input.Config | |
7 | |
8 | |
9 * means shouldn't affect anything else done by static ctors | |
10 | |
11 imde { | |
12 input = new Input(); | |
13 mainSchedule = new Scheduler;* | |
14 } | |
15 | |
16 font.FontTexture.OptionsFont {* | |
17 fontOpts = new OptionsFont; | |
18 Options.addOptionsClass (fontOpts, "font"); | |
19 } | |
20 | |
21 gui.WidgetManager {* | |
22 gui = new WidgetManager ("gui"); | |
23 } | |
24 | |
25 input.Config.Config {* | |
26 loadedFiles = new TreeBag!(char[]); | |
27 } | |
28 | |
29 input.Input.Input {* | |
30 es_b_fcts = [ ES_B.OUT : &es_b_out ]; | |
31 es_a_fcts = [ ES_A.OUT : &es_a_out, ES_A.REVERSE : &es_a_reverse ]; | |
32 es_m_fcts = [ ES_M.OUT : &es_m_out ]; | |
33 } | |
34 | |
35 lookup.Options.OptionsMisc {* | |
36 miscOpts = new OptionsMisc; | |
37 Options.addOptionsClass (miscOpts, "misc"); | |
38 } | |
39 | |
40 setup.Init {? | |
41 Logger root = Log.root; | |
42 debug root.level(Logger.Trace); | |
43 else root.level(Logger.Info); | |
44 root.add(new AppendConsole); | |
45 } | |
46 | |
47 setup.init2 {* | |
48 init.addFunc (&initInput, "initInput"); | |
49 init.addFunc (&guiLoad, "guiLoad"); | |
50 } | |
51 | |
52 setup.sdl {* | |
53 init.addFunc (&initSdlAndGl, "initSdlAndGl"); | |
54 } | |
55 | |
56 setup.sdl.OptionsVideo {* | |
57 vidOpts = new OptionsVideo; | |
58 Options.addOptionsClass (vidOpts, "video"); | |
59 } | |
60 |