MCPcopy
hub / github.com/EngoEngine/engo / closeEvent

Function closeEvent

engo.go:283–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281}
282
283func closeEvent() {
284 sceneMutex.RLock()
285 for _, scenes := range scenes {
286 if exiter, ok := scenes.scene.(Exiter); ok {
287 exiter.Exit()
288 }
289 }
290 sceneMutex.RUnlock()
291
292 if !opts.OverrideCloseAction {
293 Exit()
294 } else {
295 log.Println("[WARNING] default close action set to false, please make sure you manually handle this")
296 }
297}
298
299func runHeadless(defaultScene Scene) {
300 runLoop(defaultScene, true)

Callers 7

MobileStopFunction · 0.85
runLoopFunction · 0.85
runLoopFunction · 0.85
runLoopFunction · 0.85
runLoopFunction · 0.85
runLoopFunction · 0.85
runLoopFunction · 0.85

Calls 2

ExitFunction · 0.85
ExitMethod · 0.65

Tested by

no test coverage detected