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/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(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...) } } // 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...) if global.Mock { reg.Deregister(fortuneox.SimulatorPlugins...) reg.Deregister(fortunetiger.SimulatorPlugins...) reg.Deregister(fortunerabbit.SimulatorPlugins...) reg.Deregister(fortunedragon.SimulatorPlugins...) reg.Deregister(cashmania.SimulatorPlugins...) } }