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

Method save

modules/mudmail/mudmail.go:138–140  ·  view source on GitHub ↗

save writes a user's inbox to the plugin data store.

(userId int, inbox Inbox)

Source from the content-addressed store, hash-verified

136
137// save writes a user's inbox to the plugin data store.
138func (m *MudmailModule) save(userId int, inbox Inbox) {
139 m.plug.WriteStruct(inboxKey(userId), inbox)
140}
141
142// onSave persists all currently loaded inboxes.
143func (m *MudmailModule) onSave() {

Callers 6

onSaveMethod · 0.95
onPlayerDespawnMethod · 0.95
SendMudMailMethod · 0.95
mudmailCommandMethod · 0.95
apiAdminSendMudmailMethod · 0.95
apiAdminDeleteMudmailMethod · 0.95

Calls 2

inboxKeyFunction · 0.85
WriteStructMethod · 0.80

Tested by

no test coverage detected