| 1 |
Copyright © 2007-2008 Diggory Hardy |
|---|
| 2 |
License: GNU General Public License version 2 or later (see COPYING) |
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
Map of what happens in static CTORs (excluding creating loggers). From August 2008. |
|---|
| 6 |
|
|---|
| 7 |
mde |
|---|
| 8 |
-> imde |
|---|
| 9 |
-> input.Input |
|---|
| 10 |
-> input.Config |
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
* means shouldn't affect anything else done by static ctors |
|---|
| 14 |
|
|---|
| 15 |
imde { |
|---|
| 16 |
input = new Input(); |
|---|
| 17 |
mainSchedule = new Scheduler;* |
|---|
| 18 |
} |
|---|
| 19 |
|
|---|
| 20 |
font.FontTexture.OptionsFont {* |
|---|
| 21 |
fontOpts = new OptionsFont; |
|---|
| 22 |
Options.addOptionsClass (fontOpts, "font"); |
|---|
| 23 |
} |
|---|
| 24 |
|
|---|
| 25 |
gui.WidgetManager {* |
|---|
| 26 |
gui = new WidgetManager ("gui"); |
|---|
| 27 |
} |
|---|
| 28 |
|
|---|
| 29 |
input.Config.Config {* |
|---|
| 30 |
loadedFiles = new TreeBag!(char[]); |
|---|
| 31 |
} |
|---|
| 32 |
|
|---|
| 33 |
input.Input.Input {* |
|---|
| 34 |
es_b_fcts = [ ES_B.OUT : &es_b_out ]; |
|---|
| 35 |
es_a_fcts = [ ES_A.OUT : &es_a_out, ES_A.REVERSE : &es_a_reverse ]; |
|---|
| 36 |
es_m_fcts = [ ES_M.OUT : &es_m_out ]; |
|---|
| 37 |
} |
|---|
| 38 |
|
|---|
| 39 |
lookup.Options.OptionsMisc {* |
|---|
| 40 |
miscOpts = new OptionsMisc; |
|---|
| 41 |
Options.addOptionsClass (miscOpts, "misc"); |
|---|
| 42 |
} |
|---|
| 43 |
|
|---|
| 44 |
setup.Init {? |
|---|
| 45 |
Logger root = Log.root; |
|---|
| 46 |
debug root.level(Logger.Trace); |
|---|
| 47 |
else root.level(Logger.Info); |
|---|
| 48 |
root.add(new AppendConsole); |
|---|
| 49 |
} |
|---|
| 50 |
|
|---|
| 51 |
setup.init2 {* |
|---|
| 52 |
init.addFunc (&initInput, "initInput"); |
|---|
| 53 |
init.addFunc (&guiLoad, "guiLoad"); |
|---|
| 54 |
} |
|---|
| 55 |
|
|---|
| 56 |
setup.sdl {* |
|---|
| 57 |
init.addFunc (&initSdlAndGl, "initSdlAndGl"); |
|---|
| 58 |
} |
|---|
| 59 |
|
|---|
| 60 |
setup.sdl.OptionsVideo {* |
|---|
| 61 |
vidOpts = new OptionsVideo; |
|---|
| 62 |
Options.addOptionsClass (vidOpts, "video"); |
|---|
| 63 |
} |
|---|