]> git.mxchange.org Git - flightgear.git/commit
Initial work on dynamic subsystem creation.
authorJames Turner <zakalawe@mac.com>
Sun, 30 Sep 2012 15:34:51 +0000 (16:34 +0100)
committerJames Turner <zakalawe@mac.com>
Sun, 30 Sep 2012 15:34:51 +0000 (16:34 +0100)
commit8608a480736651999c5ea31a489343ee097ee915
tree7042a347a01ad12dde7d54f26de693e6c5891dd9
parent3b6c2c426d8fa1b72b7563383cecbba8eb0ff018
Initial work on dynamic subsystem creation.

Make subsystems create-able and removable from commands. Only some subsystems are supported so far, since many have non-default constructors or other complexities.

With this, change, it's possible to dynamically add and remove the traffic-manager at runtime, for example: fgcommand("add-subsystem", props.Node.new({ "subsystem": "traffic-manager", "name":"traffic-manager", "do-bind-init":1}));
src/Main/CMakeLists.txt
src/Main/fg_commands.cxx
src/Main/main.cxx
src/Main/subsystemFactory.cxx [new file with mode: 0644]
src/Main/subsystemFactory.hxx [new file with mode: 0644]