package db // 玩家相关表初始化 func initMapPlayerTables(playerID int64) { initMapPlayerStorageTable(playerID) initMapPlayerReportTable(playerID) } func initMapPlayerStorageTable(playerID int64) { mapPlayerStorageTable := newMapPlayerStorageTable(playerID) mapPlayerStorageTableCache.Put(playerID, mapPlayerStorageTable) mapPlayerStorageTable.Save2Queue() } func initMapPlayerReportTable(playerID int64) { mapPlayerReportTable := newMapPlayerReportTable(playerID) mapPlayerReportTableCache.Put(playerID, mapPlayerReportTable) mapPlayerReportTable.Save2Queue() } // 联盟相关表初始化 func InitMapLeagueTables(leagueID int64) { initMapLeagueMemberTable(leagueID) // 联盟成员列表 initMapLeagueStorageTable(leagueID) // 联盟仓库 initMapLeagueMailTable(leagueID) // 联盟邮件表 initMapLeagueLogTable(leagueID) // 联盟日志表 initMapLeagueReportTable(leagueID) // 联盟战报表 } func initMapLeagueMemberTable(leagueID int64) { mapLeagueMemberTable := NewMapLeagueMemberTable(leagueID) mapLeagueMemberTableCache.Put(leagueID, mapLeagueMemberTable) mapLeagueMemberTable.Save2Queue() } func initMapLeagueStorageTable(leagueID int64) { mapLeagueStorageTable := NewMapLeagueStorageTable(leagueID) mapLeagueStorageTableCache.Put(leagueID, mapLeagueStorageTable) mapLeagueStorageTable.Save2Queue() } func initMapLeagueMailTable(leagueID int64) { mapLeagueMailTable := NewMapLeagueMailTable(leagueID) mapLeagueMailTableCache.Put(leagueID, mapLeagueMailTable) mapLeagueMailTable.Save2Queue() } func initMapLeagueLogTable(leagueID int64) { mapLeagueLogTable := NewMapLeagueLogTable(leagueID) mapLeagueLogTableCache.Put(leagueID, mapLeagueLogTable) mapLeagueLogTable.Save2Queue() } func initMapLeagueReportTable(leagueID int64) { mapLeagueReportTable := NewMapLeagueReportTable(leagueID) mapLeagueReportTableCache.Put(leagueID, mapLeagueReportTable) mapLeagueReportTable.Save2Queue() }