MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / EventLoop

Method EventLoop

world.go:703–715  ·  view source on GitHub ↗

Should only handle sending messages out to users

()

Source from the content-addressed store, hash-verified

701
702// Should only handle sending messages out to users
703func (w *World) EventLoop() {
704
705 w.eventRequeue = w.eventRequeue[:0]
706
707 events.ProcessEvents()
708
709 for _, e := range w.eventRequeue {
710 events.AddToQueue(e)
711 }
712
713 clear(w.userInputEventTracker)
714 clear(w.mobInputEventTracker)
715}

Callers 1

MainWorkerMethod · 0.95

Calls 2

ProcessEventsFunction · 0.92
AddToQueueFunction · 0.92

Tested by

no test coverage detected