MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / RegisterModule

Method RegisterModule

Source/Editor/Editor.cs:366–377  ·  view source on GitHub ↗
(EditorModule module)

Source from the content-addressed store, hash-verified

364 }
365
366 internal void RegisterModule(EditorModule module)
367 {
368 Log("Register Editor module " + module);
369
370 _modules.Add(module);
371 if (_isAfterInit)
372 _modules.Sort((a, b) => a.InitOrder - b.InitOrder);
373 if (_areModulesInited)
374 module.OnInit();
375 if (_areModulesAfterInitEnd)
376 module.OnEndInit();
377 }
378
379 internal void EndInit()
380 {

Callers

nothing calls this directly

Calls 5

LogFunction · 0.50
AddMethod · 0.45
SortMethod · 0.45
OnInitMethod · 0.45
OnEndInitMethod · 0.45

Tested by

no test coverage detected