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

Function PruneVMs

internal/scripting/scripting.go:150–167  ·  view source on GitHub ↗
(forceClear ...bool)

Source from the content-addressed store, hash-verified

148}
149
150func PruneVMs(forceClear ...bool) {
151
152 if len(forceClear) > 0 && forceClear[0] {
153 ClearRoomVMs()
154 ClearMobVMs()
155 ClearBuffVMs()
156 ClearItemVMs()
157 ClearPetVMs()
158 ClearSpellVMs()
159 } else {
160 PruneRoomVMs()
161 PruneMobVMs()
162 PruneBuffVMs()
163 PruneItemVMs()
164 PruneSpellVMs()
165 }
166
167}

Callers 2

loadAllDataFilesFunction · 0.92
PruneVMsFunction · 0.92

Calls 11

ClearRoomVMsFunction · 0.85
ClearMobVMsFunction · 0.85
ClearBuffVMsFunction · 0.85
ClearItemVMsFunction · 0.85
ClearPetVMsFunction · 0.85
ClearSpellVMsFunction · 0.85
PruneRoomVMsFunction · 0.85
PruneMobVMsFunction · 0.85
PruneBuffVMsFunction · 0.85
PruneItemVMsFunction · 0.85
PruneSpellVMsFunction · 0.85

Tested by

no test coverage detected