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) SetUnlocked ¶
func (l *Lock) SetUnlocked()
Click to show internal directories.
Click to hide internal directories.