MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / initialiseModule

Method initialiseModule

radiantcore/map/EditingStopwatch.cpp:51–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void EditingStopwatch::initialiseModule(const IApplicationContext& ctx)
52{
53 _mapSignal = GlobalMapModule().signal_mapEvent().connect(
54 sigc::mem_fun(*this, &EditingStopwatch::onMapEvent)
55 );
56
57 GlobalMapInfoFileManager().registerInfoFileModule(
58 std::make_shared<EditingStopwatchInfoFileModule>()
59 );
60
61 GlobalMapResourceManager().signal_onResourceExporting().connect(
62 sigc::mem_fun(this, &EditingStopwatch::onResourceExporting)
63 );
64
65 _timer.reset(new util::Timer(TIMER_INTERVAL_SECS * 1000,
66 sigc::mem_fun(*this, &EditingStopwatch::onIntervalReached)));
67}
68
69void EditingStopwatch::shutdownModule()
70{

Callers

nothing calls this directly

Calls 4

signal_mapEventMethod · 0.80
connectMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected