47 lines
1.4 KiB
Go
47 lines
1.4 KiB
Go
package generic
|
|
|
|
import "mongo.games.com/game/gamesrv/slotspkg/slots/intf"
|
|
|
|
// PluginBase implements a default plugin for Plugin.
|
|
type PluginBase struct{}
|
|
|
|
// Theme is called to get feature theme
|
|
func (p *PluginBase) Theme() string { return "" }
|
|
|
|
// Customs is called to get feature customs
|
|
func (p *PluginBase) Customs() []interface{} { return []interface{}{} }
|
|
|
|
// OnInit is called on initializing a theme
|
|
func (p *PluginBase) OnInit(intf.Master) {}
|
|
|
|
// OnStepBegin is called on initializing a step
|
|
func (p *PluginBase) OnStepBegin(m intf.Master) {}
|
|
|
|
// OnEnterNode is called after entering a node
|
|
func (p *PluginBase) OnEnterNode(intf.Master) {}
|
|
|
|
// BeforeSpin is called before spin
|
|
func (p *PluginBase) BeforeSpin(intf.Master) {}
|
|
|
|
// BeforeDisplay is called before display
|
|
func (p *PluginBase) BeforeDisplay(intf.Master) {}
|
|
|
|
// AfterDisplay is called after display
|
|
func (p *PluginBase) AfterDisplay(intf.Master) {}
|
|
|
|
// AfterSpin is called after spin
|
|
func (p *PluginBase) AfterSpin(intf.Master) {}
|
|
|
|
// OnLeaveNode is called before leaving a node
|
|
func (p *PluginBase) OnLeaveNode(intf.Master) {}
|
|
|
|
// OnStepEnd is called on finalizing a step
|
|
func (p *PluginBase) OnStepEnd(intf.Master) {}
|
|
|
|
// OnSummary is called on simulator summary
|
|
func (p *PluginBase) OnSummary(intf.Master) {}
|
|
|
|
// OnStay is called to do something out of normal step
|
|
func (p *PluginBase) OnStay(m intf.Master) {
|
|
}
|