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

Method onSave

modules/mudmail/mudmail.go:143–147  ·  view source on GitHub ↗

onSave persists all currently loaded inboxes.

()

Source from the content-addressed store, hash-verified

141
142// onSave persists all currently loaded inboxes.
143func (m *MudmailModule) onSave() {
144 for userId, inbox := range m.inboxes {
145 m.save(userId, inbox)
146 }
147}
148
149// onPlayerSpawn loads the user's inbox into memory and migrates legacy data.
150func (m *MudmailModule) onPlayerSpawn(e events.Event) events.ListenerReturn {

Callers

nothing calls this directly

Calls 1

saveMethod · 0.95

Tested by

no test coverage detected