63 lines
2.3 KiB
Go
63 lines
2.3 KiB
Go
package plugin
|
|
|
|
import (
|
|
"mongo.games.com/game/gamesrv/slotspkg/internal/generic/global"
|
|
"mongo.games.com/game/gamesrv/slotspkg/slots/plugin/cashmania"
|
|
"mongo.games.com/game/gamesrv/slotspkg/slots/plugin/fortunedragon"
|
|
"mongo.games.com/game/gamesrv/slotspkg/slots/plugin/fortunemouse"
|
|
"mongo.games.com/game/gamesrv/slotspkg/slots/plugin/fortuneox"
|
|
"mongo.games.com/game/gamesrv/slotspkg/slots/plugin/fortunerabbit"
|
|
"mongo.games.com/game/gamesrv/slotspkg/slots/plugin/fortunetiger"
|
|
"mongo.games.com/game/gamesrv/slotspkg/slots/plugin/gatesofolympus"
|
|
"mongo.games.com/game/gamesrv/slotspkg/slots/plugin/sugarrush"
|
|
"mongo.games.com/game/gamesrv/slotspkg/slots/plugin/test"
|
|
"mongo.games.com/game/gamesrv/slotspkg/slots/reg"
|
|
)
|
|
|
|
// Init registers all theme plugins to machine
|
|
func Init() {
|
|
reg.Register(fortuneox.Plugins...)
|
|
reg.Register(fortunetiger.Plugins...)
|
|
reg.Register(fortunerabbit.Plugins...)
|
|
reg.Register(fortunedragon.Plugins...)
|
|
reg.Register(fortunemouse.Plugins...)
|
|
reg.Register(cashmania.Plugins...)
|
|
reg.Register(gatesofolympus.Plugins...)
|
|
reg.Register(sugarrush.Plugins...)
|
|
reg.Register(test.Plugins...)
|
|
|
|
if global.Mock {
|
|
reg.Register(fortuneox.SimulatorPlugins...)
|
|
reg.Register(fortunetiger.SimulatorPlugins...)
|
|
reg.Register(fortunerabbit.SimulatorPlugins...)
|
|
reg.Register(fortunedragon.SimulatorPlugins...)
|
|
reg.Register(cashmania.SimulatorPlugins...)
|
|
reg.Register(gatesofolympus.SimulatorPlugins...)
|
|
reg.Register(sugarrush.SimulatorPlugins...)
|
|
reg.Register(test.SimulatorPlugins...)
|
|
}
|
|
}
|
|
|
|
// Close unregisters all theme plugins from machine
|
|
func Close() {
|
|
reg.Deregister(fortuneox.Plugins...)
|
|
reg.Deregister(fortunetiger.Plugins...)
|
|
reg.Deregister(fortunerabbit.Plugins...)
|
|
reg.Deregister(fortunedragon.Plugins...)
|
|
reg.Deregister(fortunemouse.Plugins...)
|
|
reg.Deregister(cashmania.Plugins...)
|
|
reg.Deregister(gatesofolympus.Plugins...)
|
|
reg.Deregister(sugarrush.Plugins...)
|
|
reg.Deregister(test.Plugins...)
|
|
if global.Mock {
|
|
reg.Deregister(fortuneox.SimulatorPlugins...)
|
|
reg.Deregister(fortunetiger.SimulatorPlugins...)
|
|
reg.Deregister(fortunerabbit.SimulatorPlugins...)
|
|
reg.Deregister(fortunedragon.SimulatorPlugins...)
|
|
reg.Deregister(cashmania.SimulatorPlugins...)
|
|
reg.Deregister(gatesofolympus.SimulatorPlugins...)
|
|
reg.Deregister(sugarrush.SimulatorPlugins...)
|
|
reg.Deregister(test.SimulatorPlugins...)
|
|
}
|
|
}
|