Documentation
¶
Index ¶
- type Alarm
- func (alarm *Alarm) Get() float64
- func (alarm *Alarm) IsRunning() bool
- func (alarm Alarm) MarshalBinary() ([]byte, error)
- func (alarm *Alarm) Repeat(ticks float64) bool
- func (alarm *Alarm) Set(ticks float64)
- func (alarm *Alarm) Tick() bool
- func (alarm *Alarm) UnmarshalBinary(data []byte) error
- func (alarm Alarm) UnsafeSnapshotMarshalBinary(buf *bytes.Buffer) error
- func (alarm *Alarm) UnsafeSnapshotUnmarshalBinary(buf *bytes.Buffer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alarm ¶
type Alarm struct {
// contains filtered or unexported fields
}
func (*Alarm) IsRunning ¶
IsRunning will return true if the timer is set and running. When used with Set, it will remain true until Tick() returns true When used with Repeat, it will always remain true after Repeat() is called for the first time.
func (Alarm) MarshalBinary ¶
func (*Alarm) Repeat ¶
Repeat is like to be used for events that repeat every N frames and will return true once N frames are processed
func (*Alarm) UnmarshalBinary ¶
func (Alarm) UnsafeSnapshotMarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.