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

Method save

modules/storage/storage.go:159–161  ·  view source on GitHub ↗
(userId int, data StorageData)

Source from the content-addressed store, hash-verified

157}
158
159func (m *StorageModule) save(userId int, data StorageData) {
160 m.plug.WriteStruct(dataKey(userId), data)
161}
162
163func (m *StorageModule) onSave() {
164 for userId, data := range m.storage {

Callers 11

onSaveMethod · 0.95
onPlayerDespawnMethod · 0.95
ConfettiFunction · 0.45
drawSkyFunction · 0.45
drawLineBadgeFunction · 0.45
xterm.4.19.0.jsFile · 0.45
drawLineBadges2dFunction · 0.45
drawLineBadge2dFunction · 0.45
drawZoneBounds2dFunction · 0.45
render2dFunction · 0.45

Calls 2

WriteStructMethod · 0.80
dataKeyFunction · 0.70

Tested by

no test coverage detected