Documentation
¶
Index ¶
- func NewEventMessageWidget(root *sws.RootWidget, longdesc string) *sws.MainWidget
- type EventMessageWidget
- type EventPublished
- type EventPublisher
- type EventPublisherService
- type GameCronEvent
- type GameTimer
- func (self *GameTimer) AddCron(day, month, year int32, callback func()) *GameCronEvent
- func (self *GameTimer) AddEvent(evdate time.Time, callback func())
- func (self *GameTimer) Load(game map[string]interface{})
- func (self *GameTimer) RemoveCron(evt *GameCronEvent)
- func (self *GameTimer) Save() string
- type GamerTimerEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventMessageWidget ¶
func NewEventMessageWidget(root *sws.RootWidget, longdesc string) *sws.MainWidget
Types ¶
type EventMessageWidget ¶
type EventMessageWidget struct {
sws.CoreWidget
}
type EventPublished ¶
type EventPublished struct {
sws.CoreWidget
// contains filtered or unexported fields
}
func NewEventPublished ¶
func NewEventPublished(shortdesc string, longdesc string, eventpub *EventPublisher, pos int32) *EventPublished
type EventPublisher ¶
type EventPublisher struct {
// contains filtered or unexported fields
}
func NewEventPublisher ¶
func NewEventPublisher(root *sws.RootWidget) *EventPublisher
func (*EventPublisher) Publish ¶
func (self *EventPublisher) Publish(shortdesc string, longdesc string)
type EventPublisherService ¶
type GameCronEvent ¶
type GameCronEvent struct {
Trigger func()
// contains filtered or unexported fields
}
type GameTimer ¶
type GameTimer struct {
CurrentTime time.Time // current day
TimerClock func() // method to call when we switch to a new day
// contains filtered or unexported fields
}
func NewGameTimer ¶
func NewGameTimer() *GameTimer
NewGameTimer create a timer object starting at 1/1/1990
func (*GameTimer) AddCron ¶
func (self *GameTimer) AddCron(day, month, year int32, callback func()) *GameCronEvent
func (*GameTimer) RemoveCron ¶
func (self *GameTimer) RemoveCron(evt *GameCronEvent)
Click to show internal directories.
Click to hide internal directories.