gamelock

package
v0.9.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRelockTime = `1 hour`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

type Lock struct {
	Difficulty     uint8  `yaml:"difficulty,omitempty"`       // 0 - no lock. greater than zero = difficulty to unlock.
	UnlockedRound  uint64 `yaml:"-"`                          // What round it was unlocked at, when util.GetRoundCount() > UnlockedUntil, it is relocked (set to zero).
	RelockInterval string `yaml:"relockinterval,omitempty"`   // How long until it relocks if unlocked?
	TrapBuffIds    []int  `yaml:"trapbuffids,omitempty,flow"` // if lockpick is failed, a message is displayed about a trap and these are applied.
}

func (Lock) IsLocked

func (l Lock) IsLocked() bool

func (*Lock) SetLocked

func (l *Lock) SetLocked()

func (*Lock) SetUnlocked

func (l *Lock) SetUnlocked()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL