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

Method SetLocked

internal/scripting/room_func.go:348–357  ·  view source on GitHub ↗
(exitName string, lockIt bool)

Source from the content-addressed store, hash-verified

346}
347
348func (r ScriptRoom) SetLocked(exitName string, lockIt bool) {
349
350 if exitInfo, ok := r.roomRecord.GetExitInfo(exitName); ok {
351
352 if exitInfo.HasLock() {
353 r.roomRecord.SetExitLock(exitName, lockIt)
354 }
355
356 }
357}
358
359// Returns a list of userIds found to have the questId
360// if userIdParty is specified, will only check users in the party of the user.

Callers 1

LockMethod · 0.45

Calls 3

GetExitInfoMethod · 0.80
SetExitLockMethod · 0.80
HasLockMethod · 0.45

Tested by

no test coverage detected