|
|
@@ -4,7 +4,8 @@ import com.adealink.frame.aab.util.getCompatString
|
|
|
import com.adealink.frame.frame.BaseFrame
|
|
|
import com.adealink.weparty.cocosgame.data.Game
|
|
|
import com.adealink.weparty.module.game.GameModule
|
|
|
-import com.adealink.weparty.module.game.data.GameShowConfig
|
|
|
+import com.adealink.weparty.module.game.data.ActivityType
|
|
|
+import com.adealink.weparty.module.game.data.CommonActivityRewardInfoReq
|
|
|
import com.adealink.weparty.module.level.data.LuckyGameLevel
|
|
|
import com.adealink.weparty.module.music.MusicModule
|
|
|
import com.adealink.weparty.module.music.data.MusicEntrance
|
|
|
@@ -39,34 +40,27 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
//房间玩法
|
|
|
private var showRoulette = false
|
|
|
private var showPK = false
|
|
|
- private var showFishing = false
|
|
|
- private var fishingGameUrl: String? = null
|
|
|
- private var showPyramidSlots = false
|
|
|
- private var teenPattiShowConfig: GameShowConfig? = null
|
|
|
- private var slotProShowConfig: GameShowConfig? = null
|
|
|
- private var greedyBoxShowConfig: GameShowConfig? = null
|
|
|
+ private var showLuckyGameRank = false
|
|
|
+
|
|
|
private var showLuckyFruitGame = false
|
|
|
+ private var showLuckyProGame = false
|
|
|
private var showGreedyPro = false
|
|
|
+ private var showJackpotSlot= false
|
|
|
+ private var showGreedyBox = false
|
|
|
+ private var showTeenPatti = false
|
|
|
+ private var showDragonTigerFight = false
|
|
|
+ private var showRussianTurnTable = false
|
|
|
+ private var showTexasCowboy = false
|
|
|
private var showJackpotGame = false
|
|
|
- private var showLuckyGameRank = false
|
|
|
- private var showLuckyProGame = false
|
|
|
|
|
|
private var playCenterRoomId: Long? = null
|
|
|
private var lastPullTime = 0L
|
|
|
- private var pyramidSlotsGameDecor: GameShowConfig? = null
|
|
|
|
|
|
override fun getPlayCenterData(roomId: Long, forceNet: Boolean, firstLoad: Boolean) {
|
|
|
launch {
|
|
|
if (firstLoad) {
|
|
|
if (roomId != playCenterRoomId) {
|
|
|
- showRoulette = false
|
|
|
- showPK = false
|
|
|
- showFishing = false
|
|
|
- showPyramidSlots = false
|
|
|
- teenPattiShowConfig = null
|
|
|
- slotProShowConfig = null
|
|
|
- greedyBoxShowConfig = null
|
|
|
- pyramidSlotsGameDecor = null
|
|
|
+ clear()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -83,16 +77,17 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
val reqList = listOf(
|
|
|
DecorType.SUPER_WINNER.value,
|
|
|
DecorType.ROOM_PK_CONFIG.value,
|
|
|
- DecorType.FISHING_GAME.value,
|
|
|
- DecorType.TEEN_PATTI.value,
|
|
|
- DecorType.PYRAMID_SLOTS.value,
|
|
|
- DecorType.LUCKY_FRUIT_GAME.value,
|
|
|
- DecorType.LUCKY_FRUIT_GAME_NEW.value,
|
|
|
- DecorType.LUCKY_JACKPOT_GAME.value,
|
|
|
DecorType.GAME_TAB_SWITCH.value,
|
|
|
- DecorType.LUCKY_PRO.value,
|
|
|
- DecorType.SLOT_PRO.value,
|
|
|
- DecorType.GREEDY_BOX.value,
|
|
|
+ DecorType.LUCKY_FRUIT_GAME.value,
|
|
|
+ DecorType.JACKPOT_GAME.value,
|
|
|
+ DecorType.JACKPOT_SLOT_GAME.value,
|
|
|
+ DecorType.GREEDY_BOX_GAME.value,
|
|
|
+ DecorType.TEEN_PATTI_GAME.value,
|
|
|
+ DecorType.DRAGON_TIGER_FIGHT_GAME.value,
|
|
|
+ DecorType.RUSSIAN_TURNTABLE_GAME.value,
|
|
|
+ DecorType.TEXAS_GAME.value,
|
|
|
+ DecorType.LUCKY_PRO_GAME.value,
|
|
|
+ DecorType.GREEDY_PRO_GAME.value,
|
|
|
)
|
|
|
GameModule.isGameShow(reqList)
|
|
|
}
|
|
|
@@ -102,20 +97,18 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
|
|
|
showRoulette = showGame[DecorType.SUPER_WINNER.value]?.show == true
|
|
|
showPK = showGame[DecorType.ROOM_PK_CONFIG.value]?.show == true
|
|
|
- showFishing = showGame[DecorType.FISHING_GAME.value]?.show == true
|
|
|
- fishingGameUrl = showGame[DecorType.FISHING_GAME.value]?.url
|
|
|
- showPyramidSlots = showGame[DecorType.PYRAMID_SLOTS.value]?.show == true
|
|
|
- teenPattiShowConfig = showGame[DecorType.TEEN_PATTI.value]
|
|
|
- slotProShowConfig = showGame[DecorType.SLOT_PRO.value]
|
|
|
- greedyBoxShowConfig = showGame[DecorType.GREEDY_BOX.value]
|
|
|
- if (showGame.isNotEmpty()) {
|
|
|
- pyramidSlotsGameDecor = showGame[DecorType.PYRAMID_SLOTS.value]
|
|
|
- }
|
|
|
- showLuckyFruitGame = showGame[DecorType.LUCKY_FRUIT_GAME.value]?.show == true
|
|
|
- showGreedyPro = showGame[DecorType.LUCKY_FRUIT_GAME_NEW.value]?.show == true
|
|
|
- showJackpotGame = showGame[DecorType.LUCKY_JACKPOT_GAME.value]?.show == true
|
|
|
showLuckyGameRank = showGame[DecorType.GAME_TAB_SWITCH.value]?.show == true
|
|
|
- showLuckyProGame = showGame[DecorType.LUCKY_PRO.value]?.show == true
|
|
|
+
|
|
|
+ showTeenPatti = showGame[DecorType.TEEN_PATTI_GAME.value]?.show == true
|
|
|
+ showJackpotSlot = showGame[DecorType.JACKPOT_SLOT_GAME.value]?.show == true
|
|
|
+ showGreedyBox = showGame[DecorType.GREEDY_BOX_GAME.value]?.show == true
|
|
|
+ showLuckyFruitGame = showGame[DecorType.LUCKY_FRUIT_GAME.value]?.show == true
|
|
|
+ showGreedyPro = showGame[DecorType.GREEDY_PRO_GAME.value]?.show == true
|
|
|
+ showJackpotGame = showGame[DecorType.JACKPOT_GAME.value]?.show == true
|
|
|
+ showLuckyProGame = showGame[DecorType.LUCKY_PRO_GAME.value]?.show == true
|
|
|
+ showDragonTigerFight = showGame[DecorType.DRAGON_TIGER_FIGHT_GAME.value]?.show == true
|
|
|
+ showRussianTurnTable = showGame[DecorType.RUSSIAN_TURNTABLE_GAME.value]?.show == true
|
|
|
+ showTexasCowboy = showGame[DecorType.TEXAS_GAME.value]?.show == true
|
|
|
|
|
|
playCenterRoomId = roomId
|
|
|
lastPullTime = System.currentTimeMillis()
|
|
|
@@ -127,35 +120,35 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
launch {
|
|
|
val showGameDef = async {
|
|
|
val reqList = listOf(
|
|
|
- DecorType.FISHING_GAME.value,
|
|
|
- DecorType.TEEN_PATTI.value,
|
|
|
- DecorType.PYRAMID_SLOTS.value,
|
|
|
- DecorType.LUCKY_FRUIT_GAME.value,
|
|
|
- DecorType.LUCKY_FRUIT_GAME_NEW.value,
|
|
|
- DecorType.LUCKY_JACKPOT_GAME.value,
|
|
|
+ DecorType.SUPER_WINNER.value,
|
|
|
+ DecorType.ROOM_PK_CONFIG.value,
|
|
|
DecorType.GAME_TAB_SWITCH.value,
|
|
|
- DecorType.LUCKY_PRO.value,
|
|
|
- DecorType.SLOT_PRO.value,
|
|
|
- DecorType.GREEDY_BOX.value,
|
|
|
+ DecorType.LUCKY_FRUIT_GAME.value,
|
|
|
+ DecorType.JACKPOT_GAME.value,
|
|
|
+ DecorType.JACKPOT_SLOT_GAME.value,
|
|
|
+ DecorType.GREEDY_BOX_GAME.value,
|
|
|
+ DecorType.TEEN_PATTI_GAME.value,
|
|
|
+ DecorType.DRAGON_TIGER_FIGHT_GAME.value,
|
|
|
+ DecorType.RUSSIAN_TURNTABLE_GAME.value,
|
|
|
+ DecorType.TEXAS_GAME.value,
|
|
|
+ DecorType.LUCKY_PRO_GAME.value,
|
|
|
+ DecorType.GREEDY_PRO_GAME.value,
|
|
|
)
|
|
|
GameModule.isGameShow(reqList)
|
|
|
}
|
|
|
val showGame = showGameDef.await()
|
|
|
|
|
|
- showFishing = showGame[DecorType.FISHING_GAME.value]?.show == true
|
|
|
- fishingGameUrl = showGame[DecorType.FISHING_GAME.value]?.url
|
|
|
- showPyramidSlots = showGame[DecorType.PYRAMID_SLOTS.value]?.show == true
|
|
|
- teenPattiShowConfig = showGame[DecorType.TEEN_PATTI.value]
|
|
|
- slotProShowConfig = showGame[DecorType.SLOT_PRO.value]
|
|
|
- greedyBoxShowConfig = showGame[DecorType.GREEDY_BOX.value]
|
|
|
- if (showGame.isNotEmpty()) {
|
|
|
- pyramidSlotsGameDecor = showGame[DecorType.PYRAMID_SLOTS.value]
|
|
|
- }
|
|
|
+ showTeenPatti = showGame[DecorType.TEEN_PATTI_GAME.value]?.show == true
|
|
|
+ showJackpotSlot = showGame[DecorType.JACKPOT_SLOT_GAME.value]?.show == true
|
|
|
+ showGreedyBox = showGame[DecorType.GREEDY_BOX_GAME.value]?.show == true
|
|
|
showLuckyFruitGame = showGame[DecorType.LUCKY_FRUIT_GAME.value]?.show == true
|
|
|
- showGreedyPro = showGame[DecorType.LUCKY_FRUIT_GAME_NEW.value]?.show == true
|
|
|
- showJackpotGame = showGame[DecorType.LUCKY_JACKPOT_GAME.value]?.show == true
|
|
|
+ showGreedyPro = showGame[DecorType.GREEDY_PRO_GAME.value]?.show == true
|
|
|
+ showJackpotGame = showGame[DecorType.JACKPOT_GAME.value]?.show == true
|
|
|
showLuckyGameRank = showGame[DecorType.GAME_TAB_SWITCH.value]?.show == true
|
|
|
- showLuckyProGame = showGame[DecorType.LUCKY_PRO.value]?.show == true
|
|
|
+ showLuckyProGame = showGame[DecorType.LUCKY_PRO_GAME.value]?.show == true
|
|
|
+ showDragonTigerFight = showGame[DecorType.DRAGON_TIGER_FIGHT_GAME.value]?.show == true
|
|
|
+ showRussianTurnTable = showGame[DecorType.RUSSIAN_TURNTABLE_GAME.value]?.show == true
|
|
|
+ showTexasCowboy = showGame[DecorType.TEXAS_GAME.value]?.show == true
|
|
|
notifyGameRoomDataList(copyRoomGameDataList())
|
|
|
}
|
|
|
}
|
|
|
@@ -164,15 +157,20 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
playCenterRoomId = null
|
|
|
showRoulette = false
|
|
|
showPK = false
|
|
|
- showFishing = false
|
|
|
- showPyramidSlots = false
|
|
|
- teenPattiShowConfig = null
|
|
|
- slotProShowConfig = null
|
|
|
- greedyBoxShowConfig = null
|
|
|
+ showLuckyGameRank = false
|
|
|
+
|
|
|
+ showLuckyFruitGame = false
|
|
|
+ showTeenPatti = false
|
|
|
+ showJackpotSlot = false
|
|
|
+ showGreedyBox = false
|
|
|
+ showGreedyPro = false
|
|
|
+ showJackpotGame = false
|
|
|
+ showLuckyProGame = false
|
|
|
+ showDragonTigerFight = false
|
|
|
+ showRussianTurnTable = false
|
|
|
+ showTexasCowboy = false
|
|
|
|
|
|
- playCenterRoomId = null
|
|
|
lastPullTime = 0L
|
|
|
- pyramidSlotsGameDecor = null
|
|
|
}
|
|
|
|
|
|
override fun updateAdminPlayCenterList(roomData: RoomPlayerCenterData, isAdd: Boolean, addRoomDataBefore: RoomPlayerCenterData?) {
|
|
|
@@ -189,12 +187,11 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
playCenterDataList.add(RoomGameCenterEntrance(RoomPlayCenterType.LUDO_TEAM, Game.LUDO))
|
|
|
playCenterDataList.add(RoomGameCenterEntrance(RoomPlayCenterType.CARROM, Game.CARROM))
|
|
|
playCenterDataList.add(RoomGameCenterEntrance(RoomPlayCenterType.UNO, Game.UNO))
|
|
|
-// playCenterDataList.add(RoomGameCenterEntrance(RoomPlayCenterType.DOMINO, Game.DOMINO))
|
|
|
val luckyGameList = mutableListOf<RoomPlayerCenterData>()
|
|
|
val operatorList = mutableListOf<RoomPlayCenterTitleOperator>()
|
|
|
if (showLuckyGameRank) {
|
|
|
val gameRewardInfoAwait = async {
|
|
|
- GameModule.getActivityGameRewardInfo(com.adealink.weparty.module.game.data.CommonActivityRewardInfoReq(requestType = com.adealink.weparty.module.game.data.ActivityType.TYPE_GAME.type))
|
|
|
+ GameModule.getActivityGameRewardInfo(CommonActivityRewardInfoReq(requestType = ActivityType.TYPE_GAME.type))
|
|
|
}
|
|
|
val gameLevelInfoAwait = async {
|
|
|
GameModule.getUserGameLevelInfo(listOf(ProfileModule.getMyUid()))
|
|
|
@@ -221,72 +218,7 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
)
|
|
|
)
|
|
|
}
|
|
|
-
|
|
|
- if (showLuckyFruitGame) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(RoomPlayCenterType.FRUIT_MACHINE, url = urlConfigService.getH5Url(
|
|
|
- H5Page.LUCKY_FRUIT))
|
|
|
- )
|
|
|
- }
|
|
|
-
|
|
|
- if (showLuckyProGame) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(RoomPlayCenterType.LUCKY_PRO, url = urlConfigService.getH5Url(H5Page.LUCKY_PRO))
|
|
|
- )
|
|
|
- }
|
|
|
-
|
|
|
- if (showGreedyPro) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(RoomPlayCenterType.FRUIT_MACHINE_NEW, url = urlConfigService.getH5Url(H5Page.GREEDY_PRO))
|
|
|
- )
|
|
|
- }
|
|
|
-// if (greedyBoxShowConfig?.show == true) {
|
|
|
-// luckyGameList.add(
|
|
|
-// RoomPlayCenterEntrance(
|
|
|
-// type = RoomPlayCenterType.GREEDY_BOX,
|
|
|
-// loadingUrl = greedyBoxShowConfig?.loadingUrl,
|
|
|
-// offlineUrl = greedyBoxShowConfig?.offlineUrl
|
|
|
-// )
|
|
|
-// )
|
|
|
-// }
|
|
|
- if (slotProShowConfig?.show == true) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(
|
|
|
- type = RoomPlayCenterType.SLOT_PRO,
|
|
|
- loadingUrl = slotProShowConfig?.loadingUrl,
|
|
|
- url = slotProShowConfig?.url
|
|
|
- )
|
|
|
- )
|
|
|
- }
|
|
|
- if (showJackpotGame) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(RoomPlayCenterType.TIGER_MACHINE, url = urlConfigService.getH5Url(H5Page.JACKPOT))
|
|
|
- )
|
|
|
- }
|
|
|
-// if (teenPattiShowConfig?.show == true) {
|
|
|
-// luckyGameList.add(
|
|
|
-// RoomPlayCenterEntrance(
|
|
|
-// RoomPlayCenterType.TEEN_PATTI, loadingUrl = teenPattiShowConfig?.loadingUrl,
|
|
|
-// offlineUrl = teenPattiShowConfig?.offlineUrl
|
|
|
-// )
|
|
|
-// )
|
|
|
-// }
|
|
|
- if (showPyramidSlots && pyramidSlotsGameDecor?.show == true) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(
|
|
|
- RoomPlayCenterType.PYRAMID_SLOTS,
|
|
|
- url = pyramidSlotsGameDecor?.url
|
|
|
- )
|
|
|
- )
|
|
|
- }
|
|
|
-// if (showFishing) {
|
|
|
-// luckyGameList.add(
|
|
|
-// RoomPlayCenterEntrance(
|
|
|
-// RoomPlayCenterType.FISHING,
|
|
|
-// url = fishingGameUrl
|
|
|
-// )
|
|
|
-// )
|
|
|
-// }
|
|
|
+ addGameList(luckyGameList)
|
|
|
if (luckyGameList.isNotEmpty()) {
|
|
|
luckyGameList.add(
|
|
|
0,
|
|
|
@@ -310,7 +242,6 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
val storeList = mutableListOf<RoomPlayerCenterData>().also {
|
|
|
it.add(RoomPlayCenterTitle(getCompatString(R.string.room_market)))
|
|
|
it.add(RoomPlayCenterEntrance(RoomPlayCenterType.STORE))
|
|
|
- //it.add(RoomPlayCenterEntrance(RoomPlayCenterType.LOVE_STORE))
|
|
|
it.add(RoomPlayCenterEntrance(RoomPlayCenterType.BACKPACK))
|
|
|
}
|
|
|
//房间玩法
|
|
|
@@ -339,14 +270,9 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
}
|
|
|
|
|
|
gameCenterList.add(RoomPlayCenterEntrance(RoomPlayCenterType.LUCK_NUMBER))
|
|
|
-// // 婚礼福利
|
|
|
-// gameCenterList.add(RoomPlayCenterEntrance(RoomPlayCenterType.WEDDING_PRIVILEGE))
|
|
|
if (showRoulette) {
|
|
|
gameCenterList.add(RoomPlayCenterEntrance(RoomPlayCenterType.ROULETTE))
|
|
|
}
|
|
|
-// if (GameModule.isShowSuperGift()) {
|
|
|
-// gameCenterList.add(RoomPlayCenterEntrance(RoomPlayCenterType.SUPER_GIFT))
|
|
|
-// }
|
|
|
|
|
|
if (roomType == RoomType.CHAT && MusicModule.showRoomMusicEntrance(MusicEntrance.CHAT_MORE_FUNCTION)) {
|
|
|
gameCenterList.add(RoomPlayCenterEntrance(RoomPlayCenterType.MUSIC))
|
|
|
@@ -385,78 +311,7 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
)
|
|
|
|
|
|
}
|
|
|
-
|
|
|
- if (showLuckyFruitGame) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(RoomPlayCenterType.FRUIT_MACHINE, url = urlConfigService.getH5Url(H5Page.LUCKY_FRUIT))
|
|
|
- )
|
|
|
- }
|
|
|
-
|
|
|
- if (showLuckyProGame) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(RoomPlayCenterType.LUCKY_PRO, url = urlConfigService.getH5Url(H5Page.LUCKY_PRO))
|
|
|
- )
|
|
|
- }
|
|
|
-
|
|
|
- if (showGreedyPro) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(RoomPlayCenterType.FRUIT_MACHINE_NEW, url = urlConfigService.getH5Url(H5Page.GREEDY_PRO))
|
|
|
- )
|
|
|
- }
|
|
|
-
|
|
|
-// if (greedyBoxShowConfig?.show == true) {
|
|
|
-// luckyGameList.add(
|
|
|
-// RoomPlayCenterEntrance(
|
|
|
-// type = RoomPlayCenterType.GREEDY_BOX,
|
|
|
-// loadingUrl = greedyBoxShowConfig?.loadingUrl,
|
|
|
-// offlineUrl = greedyBoxShowConfig?.offlineUrl
|
|
|
-// )
|
|
|
-// )
|
|
|
-// }
|
|
|
-
|
|
|
- if (slotProShowConfig?.show == true) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(
|
|
|
- RoomPlayCenterType.SLOT_PRO,
|
|
|
- loadingUrl = slotProShowConfig?.loadingUrl,
|
|
|
- url = slotProShowConfig?.url
|
|
|
- )
|
|
|
- )
|
|
|
- }
|
|
|
-
|
|
|
- if (showJackpotGame) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(RoomPlayCenterType.TIGER_MACHINE, url = urlConfigService.getH5Url(H5Page.JACKPOT))
|
|
|
- )
|
|
|
- }
|
|
|
-
|
|
|
-// if (teenPattiShowConfig?.show == true) {
|
|
|
-// luckyGameList.add(
|
|
|
-// RoomPlayCenterEntrance(
|
|
|
-// RoomPlayCenterType.TEEN_PATTI, loadingUrl = teenPattiShowConfig?.loadingUrl,
|
|
|
-// offlineUrl = teenPattiShowConfig?.offlineUrl
|
|
|
-// )
|
|
|
-// )
|
|
|
-// }
|
|
|
-
|
|
|
- if (showPyramidSlots && pyramidSlotsGameDecor?.show == true) {
|
|
|
- luckyGameList.add(
|
|
|
- RoomPlayCenterEntrance(
|
|
|
- RoomPlayCenterType.PYRAMID_SLOTS,
|
|
|
- url = pyramidSlotsGameDecor?.url
|
|
|
- )
|
|
|
- )
|
|
|
- }
|
|
|
-
|
|
|
-// if (showFishing) {
|
|
|
-// luckyGameList.add(
|
|
|
-// RoomPlayCenterEntrance(
|
|
|
-// RoomPlayCenterType.FISHING,
|
|
|
-// url = fishingGameUrl
|
|
|
-// )
|
|
|
-// )
|
|
|
-// }
|
|
|
-
|
|
|
+ addGameList(luckyGameList)
|
|
|
if (luckyGameList.isNotEmpty()) {
|
|
|
luckyGameList.add(
|
|
|
0,
|
|
|
@@ -467,9 +322,6 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
//活动工具
|
|
|
val activityToolList = mutableListOf<RoomPlayerCenterData>().also {
|
|
|
it.add(RoomPlayCenterTitle(getCompatString(R.string.room_activity_tool)))
|
|
|
@@ -498,6 +350,49 @@ class PlayCenterManager : BaseFrame<IPlayCenterListener>(), IPlayCenterManager {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ private fun addGameList(luckyGameList: MutableList<RoomPlayerCenterData>) {
|
|
|
+ if (showLuckyFruitGame) {
|
|
|
+ luckyGameList.add(
|
|
|
+ RoomPlayCenterEntrance(RoomPlayCenterType.LUCKY_FRUIT, url = urlConfigService.getH5Url(H5Page.LUCKY_FRUIT))
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
+ if (showLuckyProGame) {
|
|
|
+ luckyGameList.add(
|
|
|
+ RoomPlayCenterEntrance(RoomPlayCenterType.LUCKY_PRO, url = urlConfigService.getH5Url(H5Page.LUCKY_PRO))
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
+ if (showGreedyPro) {
|
|
|
+ luckyGameList.add(
|
|
|
+ RoomPlayCenterEntrance(RoomPlayCenterType.GREEDY_PRO, url = urlConfigService.getH5Url(H5Page.GREEDY_PRO))
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
+ if (showGreedyBox) {
|
|
|
+ luckyGameList.add(
|
|
|
+ RoomPlayCenterEntrance(type = RoomPlayCenterType.GREEDY_BOX)
|
|
|
+ )
|
|
|
+ }
|
|
|
+ if (showJackpotSlot) {
|
|
|
+ luckyGameList.add(
|
|
|
+ RoomPlayCenterEntrance(type = RoomPlayCenterType.JACKPOT_SLOT)
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
+ if (showJackpotGame) {
|
|
|
+ luckyGameList.add(
|
|
|
+ RoomPlayCenterEntrance(RoomPlayCenterType.JACKPOT, url = urlConfigService.getH5Url(H5Page.JACKPOT))
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
+ if (showTeenPatti) {
|
|
|
+ luckyGameList.add(
|
|
|
+ RoomPlayCenterEntrance(RoomPlayCenterType.TEEN_PATTI)
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private fun notifyPlayCenterDataList(dataList: List<RoomPlayerCenterData>) {
|
|
|
dispatch {
|
|
|
it.onGetPlayCenterData(dataList)
|