MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Update

Method Update

menu.go:39–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func (ms *MenuSystem) Update() {
40
41 for _, menu := range ms.ExclusiveMenus {
42 if menu.Opened {
43 menu.Update()
44 return
45 }
46 }
47
48 reversed := append([]*Menu{}, ms.Menus...)
49
50 sort.SliceStable(reversed, func(i, j int) bool {
51 return j < i
52 })
53
54 // Reverse so that menus on top of other ones update first
55 for _, menu := range reversed {
56 menu.Update()
57 }
58
59}
60
61func (ms *MenuSystem) Recreate() {
62 for _, menu := range ms.Menus {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected