game

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxMainEchelonNum    int32 = 4 // 最大队伍主角色数量
	MaxSupportEchelonNum int32 = 2 // 最大队伍支援角色数量
	MaxSkillEchelonNum   int32 = 3 // 最大队伍技能优先释放数量
	MaxCombatStyleNum    int32 = 6 // 战斗风格指数?
)
View Source
const (
	AssistTermRewardPeriodFromSec = 20
	AssistRewardLimit             = 1000000000
	AssistRentRewardDailyMaxCount = 20
	AssistRentalFeeAmount         = 40000
)
View Source
const (
	MaxEquipmentNum = 3000
	MaxFurnitureNum = 3000
)
View Source
const (
	ArenaBattleTime = 60
)
View Source
const (
	MaxMailParcelNum = 700
)

Variables

View Source
var CharacterStarGradeMap = map[int32]int32{
	2: 30,
	3: 80,
	4: 100,
	5: 120,
}
View Source
var MinElapsedRealtime float32 = 10 // 最低战斗时间
View Source
var SupportEchelonNum = map[proto.EchelonType]int32{
	proto.EchelonType_MultiFloorRaid: 4,
}
View Source
var SystemMail = map[string]string{
	"Attendance":      "请查收每日登录奖励",
	"MaxActionPoint":  "超出的体力",
	"DelMaxEquipment": "您获取的装备过多,已自动删除了部分多余装备",
	"DelMaxFurniture": "您获取的家具过多,已自动删除了部分多余家具",
}
View Source
var WeaponStarGradeMap = map[int32]int32{
	1: 120,
	2: 180,
}

Functions

func AddAccountExp

func AddAccountExp(s *enter.Session, num int64)

func AddCardBackgroundId

func AddCardBackgroundId(s *enter.Session, backgroundId int64) int64

func AddCharacter

func AddCharacter(s *enter.Session, characterId int64) bool

func AddCharacterFavorExp

func AddCharacterFavorExp(s *enter.Session, characterId, exp int64)

func AddCurTimeAttackRoom

func AddCurTimeAttackRoom(s *enter.Session, isPractice bool)

func AddEquipment

func AddEquipment(s *enter.Session, equipmentId int64, num int64) (list []int64)

AddEquipment 传入装备id 如果是非佩戴装备设置id为k,并返回装备id 如果是佩戴装备,则设置唯一id为k,并返回唯一id/*

func AddFriendByUid

func AddFriendByUid(s *enter.Session, uid int64)

func AddFurnitureInfo

func AddFurnitureInfo(s *enter.Session, furnitureId int64, num int64) []int64

func AddItem

func AddItem(s *enter.Session, id int64, num int32) int64

func AddMail

func AddMail(s *enter.Session, info *sro.MailInfo) bool

func AddMailBySystem

func AddMailBySystem(s *enter.Session, mailType string, parcelInfoList []*sro.ParcelInfo) bool

func AddMemoryLobby

func AddMemoryLobby(s *enter.Session, memoryLobbyUniqueId int64) error

func AddSticker

func AddSticker(s *enter.Session, stickerId int64) error

func AddToast

func AddToast(s *enter.Session, toast *enter.Toast)

func AddWeapon

func AddWeapon(s *enter.Session, characterId int64)

func BattleCheck

func BattleCheck(s *enter.Session, info *proto.BattleSummary)

func BattleIsAllAlive

func BattleIsAllAlive(battleSummary *proto.BattleSummary) bool

func BattleIsClearTimeInSec

func BattleIsClearTimeInSec(battleSummary *proto.BattleSummary, realtime float32) bool

func CheckRaidCharacter

func CheckRaidCharacter(s *enter.Session, echelonId int64,
	summary *proto.BattleSummary, curBattle *sro.CurRaidBattleInfo) bool

CheckRaidCharacter 参战角色验证

func DefaultCafeBin

func DefaultCafeBin(s *enter.Session) *sro.CafeBin

func DelAllMail

func DelAllMail(s *enter.Session) bool

func DelCheckParcelResult

func DelCheckParcelResult() bool

func DelEquipment

func DelEquipment(s *enter.Session, serverId int64, num int64) (bool, int64)

func DelMail

func DelMail(s *enter.Session, id int64) bool

func DelToast

func DelToast(s *enter.Session)

func DeployRelocateFurniture

func DeployRelocateFurniture(s *enter.Session, furnitureDB *proto.FurnitureDB, cafeServerId int64) int64

func FinishScenarioGroupHistoryInfo

func FinishScenarioGroupHistoryInfo(s *enter.Session, scenarioGroupUniqueId, scenarioType, eventContentId int64)

func FinishTutorial

func FinishTutorial(s *enter.Session, tutorialIdS []int64) bool

func GetAcademyBin

func GetAcademyBin(s *enter.Session) *sro.AcademyBin

func GetAcademyDB

func GetAcademyDB(s *enter.Session) *proto.AcademyDB

func GetAcademyLocationDB

func GetAcademyLocationDB(s *enter.Session, locationId int64) *proto.AcademyLocationDB

func GetAcademyLocationDBs

func GetAcademyLocationDBs(s *enter.Session) []*proto.AcademyLocationDB

func GetAcademyLocationInfo

func GetAcademyLocationInfo(s *enter.Session, locationId int64) *sro.AcademyLocationInfo

func GetAcademyLocationInfoList

func GetAcademyLocationInfoList(s *enter.Session) map[int64]*sro.AcademyLocationInfo

func GetAcademyLocationRankSum

func GetAcademyLocationRankSum(s *enter.Session) int64

func GetAcademyZoneInfo

func GetAcademyZoneInfo(s *enter.Session, zoneId int64) *sro.AcademyZoneInfo

func GetAcademyZoneInfoList

func GetAcademyZoneInfoList(s *enter.Session) map[int64]*sro.AcademyZoneInfo

func GetAccountAttachmentDB

func GetAccountAttachmentDB(s *enter.Session) *proto.AccountAttachmentDB

func GetAccountCurrencyDB

func GetAccountCurrencyDB(s *enter.Session) *proto.AccountCurrencyDB

func GetAccountDB

func GetAccountDB(s *enter.Session) *proto.AccountDB

func GetAccountDays

func GetAccountDays(s *enter.Session) int32

func GetAccountExp

func GetAccountExp(s *enter.Session) int64

func GetAccountLevel

func GetAccountLevel(s *enter.Session) int32

func GetActions

func GetActions(s *enter.Session) map[proto.ServerNotificationFlag]bool

func GetArenAutoRefreshTime

func GetArenAutoRefreshTime(s *enter.Session) time.Time

func GetArenBattleEnterActiveTime

func GetArenBattleEnterActiveTime(s *enter.Session) time.Time

func GetArenaBin

func GetArenaBin(s *enter.Session) *sro.ArenaBin

func GetArenaCharacterDB

func GetArenaCharacterDB(s *enter.Session, characterId int64) *proto.ArenaCharacterDB

func GetArenaPlayerInfoDB

func GetArenaPlayerInfoDB(s *enter.Session) *proto.ArenaPlayerInfoDB

func GetAssistCharacterDB

func GetAssistCharacterDB(s *enter.Session, info *sro.AssistInfo, assistRelation proto.AssistRelation) *proto.AssistCharacterDB

func GetAssistCharacterDBs

func GetAssistCharacterDBs(s *enter.Session, assistRelation proto.AssistRelation) []*proto.AssistCharacterDB

func GetAssistInfo

func GetAssistInfo(s *enter.Session, echelonType proto.EchelonType, slot int32) *sro.AssistInfo

func GetAssistInfoByClanAssistUseInfo

func GetAssistInfoByClanAssistUseInfo(s *enter.Session, assist *proto.ClanAssistUseInfo) *sro.AssistInfo

func GetAssistList

func GetAssistList(s *enter.Session) map[int32]*sro.AssistList

func GetAssistListByEchelonType

func GetAssistListByEchelonType(s *enter.Session, echelonType proto.EchelonType) *sro.AssistList

func GetAttachmentBin

func GetAttachmentBin(s *enter.Session) *sro.AttachmentBin

func GetAttendanceBin

func GetAttendanceBin(s *enter.Session) *sro.AttendanceBin

func GetAttendanceBookReward

func GetAttendanceBookReward(s *enter.Session, attendanceId int64) *proto.AttendanceBookReward

func GetAttendanceBookRewards

func GetAttendanceBookRewards(s *enter.Session) []*proto.AttendanceBookReward

func GetAttendanceHistoryDB

func GetAttendanceHistoryDB(s *enter.Session, attendanceId int64) *proto.AttendanceHistoryDB

func GetAttendanceHistoryDBs

func GetAttendanceHistoryDBs(s *enter.Session) []*proto.AttendanceHistoryDB

func GetAttendanceInfo

func GetAttendanceInfo(s *enter.Session, attendanceId int64) *sro.AttendanceInfo

func GetAttendanceList

func GetAttendanceList(s *enter.Session) map[int64]*sro.AttendanceInfo

func GetAttendanceListDay

func GetAttendanceListDay(s *enter.Session) []*sro.AttendanceInfo

func GetAutoAcceptFriendRequest

func GetAutoAcceptFriendRequest(s *enter.Session) bool

func GetBaseBin

func GetBaseBin(s *enter.Session) *sro.BasePlayer

func GetBeforehandGachaSnapshotDB

func GetBeforehandGachaSnapshotDB(s *enter.Session) *proto.BeforehandGachaSnapshotDB

func GetBeforehandInfo

func GetBeforehandInfo(s *enter.Session) *sro.BeforehandInfo

func GetBestRankingPointPerBossGroup

func GetBestRankingPointPerBossGroup(s *enter.Session) map[string]int64

func GetCafeBin

func GetCafeBin(s *enter.Session) *sro.CafeBin

func GetCafeDB

func GetCafeDB(s *enter.Session, serverId int64) *proto.CafeDB

func GetCafeInfo

func GetCafeInfo(s *enter.Session, serverId int64) *sro.CafeInfo

func GetCafeInfoList

func GetCafeInfoList(s *enter.Session) map[int64]*sro.CafeInfo

func GetCallName

func GetCallName(s *enter.Session) string

func GetCampaignMainStageSaveDB

func GetCampaignMainStageSaveDB(s *enter.Session, bin *sro.BattleCampaign) *proto.CampaignMainStageSaveDB

func GetCanReceiveRankingReward

func GetCanReceiveRankingReward(isTime, isReward bool) bool

func GetCardBackgroundId

func GetCardBackgroundId(s *enter.Session) int64

func GetCardBackgroundIdInfo

func GetCardBackgroundIdInfo(s *enter.Session, backgroundId int64) *sro.IdCardBackgroundInfo

func GetCardBackgroundIdInfoList

func GetCardBackgroundIdInfoList(s *enter.Session) map[int64]*sro.IdCardBackgroundInfo

func GetCardRepresentCharacterUniqueId

func GetCardRepresentCharacterUniqueId(s *enter.Session) int64

func GetCategoryMissionInfo

func GetCategoryMissionInfo(s *enter.Session) map[string]*sro.CategoryMissionInfo

func GetCharacterBin

func GetCharacterBin(s *enter.Session) *sro.CharacterBin

func GetCharacterCount

func GetCharacterCount(s *enter.Session) int64

func GetCharacterDB

func GetCharacterDB(s *enter.Session, characterId int64) *proto.CharacterDB

func GetCharacterDBs

func GetCharacterDBs(s *enter.Session) []*proto.CharacterDB

func GetCharacterEquipment

func GetCharacterEquipment(bin *sro.CharacterInfo) []int64

func GetCharacterInfo

func GetCharacterInfo(s *enter.Session, characterId int64) *sro.CharacterInfo

func GetCharacterInfoList

func GetCharacterInfoList(s *enter.Session) map[int64]*sro.CharacterInfo

func GetCharacterServerId

func GetCharacterServerId(s *enter.Session, characterId int64) int64

func GetCharacterUpStarGradeNum

func GetCharacterUpStarGradeNum(starGrade int32) int32

func GetClanAssistSlotDB

func GetClanAssistSlotDB(s *enter.Session, info *sro.AssistInfo) *proto.ClanAssistSlotDB

func GetClanAssistSlotDBs

func GetClanAssistSlotDBs(s *enter.Session) []*proto.ClanAssistSlotDB

func GetClanDB

func GetClanDB(clanInfo *enter.YostarClan) *proto.ClanDB

func GetClanMemberDB

func GetClanMemberDB(s *enter.Session) *proto.ClanMemberDB

func GetClanMemberDBs

func GetClanMemberDBs(clanInfo *enter.YostarClan) []*proto.ClanMemberDB

func GetClanName

func GetClanName(s *enter.Session) string

func GetClanServerId

func GetClanServerId(s *enter.Session) int64

func GetClearDifficulty

func GetClearDifficulty(s *enter.Session) []proto.Difficulty

func GetCombatStyleNum

func GetCombatStyleNum(skillType proto.EchelonType) int32

func GetComment

func GetComment(s *enter.Session) string

func GetCurRaidBattleInfo

func GetCurRaidBattleInfo(s *enter.Session) *sro.CurRaidBattleInfo

func GetCurRaidEliminateBattleInfo

func GetCurRaidEliminateBattleInfo(s *enter.Session) *sro.CurRaidBattleInfo

func GetCurRaidEliminateInfo

func GetCurRaidEliminateInfo(s *enter.Session) *sro.RaidEliminateInfo

func GetCurRaidInfo

func GetCurRaidInfo(s *enter.Session) *sro.RaidInfo

func GetCurRaidMultiFloorInfo

func GetCurRaidMultiFloorInfo(s *enter.Session) *sro.RaidMultiFloorInfo

func GetCurRaidTeamList

func GetCurRaidTeamList(s *enter.Session) map[int32]*sro.RaidTeamInfo

func GetCurTimeAttackDungeonRoomDB

func GetCurTimeAttackDungeonRoomDB(s *enter.Session) *proto.TimeAttackDungeonRoomDB

func GetCurrencyInfo

func GetCurrencyInfo(s *enter.Session, currencyId proto.CurrencyTypes) *sro.CurrencyInfo

func GetCurrencyList

func GetCurrencyList(s *enter.Session) map[int32]*sro.CurrencyInfo

func GetDailySuddenMissionInfoDb

func GetDailySuddenMissionInfoDb(s *enter.Session) *proto.MissionInfo

func GetDayMissionInfo

func GetDayMissionInfo(s *enter.Session) *sro.CategoryMissionInfo

获取每日任务信息

func GetDefaultExposedClanDBs

func GetDefaultExposedClanDBs(s *enter.Session) []*proto.ClanDB

func GetDetailedAccountInfoDB

func GetDetailedAccountInfoDB(s *enter.Session,
	assistRelation proto.AssistRelation) *proto.DetailedAccountInfoDB

func GetDungeonBin

func GetDungeonBin(s *enter.Session) *sro.DungeonBin

func GetEchelonBin

func GetEchelonBin(s *enter.Session) *sro.EchelonBin

func GetEchelonDB

func GetEchelonDB(s *enter.Session, db *sro.EchelonInfo) *proto.EchelonDB

func GetEchelonInfo

func GetEchelonInfo(s *enter.Session, echelonType int32, num int64) *sro.EchelonInfo

func GetEchelonPresetGroupDB

func GetEchelonPresetGroupDB(db *sro.EchelonInfo) *proto.EchelonPresetDB

func GetEchelonPresetGuidList

func GetEchelonPresetGuidList(s *enter.Session) map[int32]*sro.EchelonTypeInfo

func GetEchelonTypeInfo

func GetEchelonTypeInfo(s *enter.Session, echelonType int32) *sro.EchelonTypeInfo

func GetEchelonTypeInfoList

func GetEchelonTypeInfoList(s *enter.Session) map[int32]*sro.EchelonTypeInfo

func GetEliminateRaidLobbyInfoDB

func GetEliminateRaidLobbyInfoDB(s *enter.Session) *proto.EliminateRaidLobbyInfoDB

func GetEliminateRaidSeasonType

func GetEliminateRaidSeasonType() proto.RaidSeasonType

func GetEliminateRaidUserDB

func GetEliminateRaidUserDB(s *enter.Session) *proto.EliminateRaidUserDB

func GetEmblemDB

func GetEmblemDB(s *enter.Session, id int64) *proto.EmblemDB

func GetEmblemDBs

func GetEmblemDBs(s *enter.Session) []*proto.EmblemDB

func GetEmblemInfo

func GetEmblemInfo(s *enter.Session, id int64) *sro.EmblemInfo

func GetEmblemInfoList

func GetEmblemInfoList(s *enter.Session) map[int64]*sro.EmblemInfo

func GetEmblemUniqueId

func GetEmblemUniqueId(s *enter.Session) int64

func GetEnemyInfo

func GetEnemyInfo(bin *sro.EnemyInfo) *proto.HexaUnit

func GetEquipmentDB

func GetEquipmentDB(s *enter.Session, serverId int64) *proto.EquipmentDB

func GetEquipmentDBs

func GetEquipmentDBs(s *enter.Session) []*proto.EquipmentDB

func GetEquipmentInfo

func GetEquipmentInfo(s *enter.Session, serverId int64) *sro.EquipmentInfo

func GetEquipmentInfoList

func GetEquipmentInfoList(s *enter.Session) map[int64]*sro.EquipmentInfo

func GetEventContentBin

func GetEventContentBin(s *enter.Session) *sro.EventContentBin

func GetEventContentInfo

func GetEventContentInfo(s *enter.Session, eventContentId int64) *sro.EventContentInfo

func GetEventContentInfoList

func GetEventContentInfoList(s *enter.Session) map[int64]*sro.EventContentInfo

func GetFavorScheduleInfo

func GetFavorScheduleInfo(s *enter.Session, characterId int64) *sro.FavorScheduleInfo

func GetFavorScheduleInfoList

func GetFavorScheduleInfoList(s *enter.Session) map[int64]*sro.FavorScheduleInfo

func GetFriendBin

func GetFriendBin(s *enter.Session) *enter.AccountFriend

func GetFriendDB

func GetFriendDB(s *enter.Session) *proto.FriendDB

func GetFriendDBs

func GetFriendDBs(s *enter.Session, uidList map[int64]bool) []*proto.FriendDB

GetFriendDBs 会进行玩家线程加锁操作,使用时需注意

func GetFriendIdCardDB

func GetFriendIdCardDB(s *enter.Session) *proto.FriendIdCardDB

func GetFriendNum

func GetFriendNum(s *enter.Session) int64

func GetFurnitureDB

func GetFurnitureDB(s *enter.Session, serverId int64) *proto.FurnitureDB

func GetFurnitureDBs

func GetFurnitureDBs(s *enter.Session) []*proto.FurnitureDB

func GetFurnitureInfo

func GetFurnitureInfo(s *enter.Session, serverId int64) *sro.FurnitureInfo

func GetFurnitureInfoList

func GetFurnitureInfoList(s *enter.Session) map[int64]*sro.FurnitureInfo

func GetGachaBin

func GetGachaBin(s *enter.Session) *sro.GachaBin

func GetGearDB

func GetGearDB(s *enter.Session, serverId int64) *proto.GearDB

func GetGearInfo

func GetGearInfo(s *enter.Session, serverId int64) *sro.GearInfo

func GetGearInfoList

func GetGearInfoList(s *enter.Session) map[int64]*sro.GearInfo

func GetIdCardBackgroundDB

func GetIdCardBackgroundDB(s *enter.Session, backgroundId int64) *proto.IdCardBackgroundDB

func GetIdCardBackgroundDBs

func GetIdCardBackgroundDBs(s *enter.Session) []*proto.IdCardBackgroundDB

func GetIrcServerConfig

func GetIrcServerConfig(s *enter.Session) *proto.IrcServerConfig

func GetItemBin

func GetItemBin(s *enter.Session) *sro.ItemBin

func GetItemDB

func GetItemDB(s *enter.Session, id int64) *proto.ItemDB

func GetItemInfo

func GetItemInfo(s *enter.Session, itemId int64) *sro.ItemInfo

func GetItemList

func GetItemList(s *enter.Session) map[int64]*sro.ItemInfo

func GetLastConnectTime

func GetLastConnectTime(s *enter.Session) mx.MxTime

func GetLastRaidEliminateInfo

func GetLastRaidEliminateInfo(s *enter.Session) *sro.RaidEliminateInfo

GetLastRaidEliminateInfo 此处返回的可能是nil

func GetLastRaidInfo

func GetLastRaidInfo(s *enter.Session) *sro.RaidInfo

GetLastRaidInfo 此处返回的可能是nil

func GetMailBin

func GetMailBin(s *enter.Session) *sro.MailBin

func GetMailCheckCount

func GetMailCheckCount(s *enter.Session) int64

检查方法

func GetMailDBs

func GetMailDBs(s *enter.Session, IsReadMail bool) []*proto.MailDB

func GetMailInfo

func GetMailInfo(s *enter.Session, id int64) *sro.MailInfo

func GetMailInfoList

func GetMailInfoList(s *enter.Session) map[int64]*sro.MailInfo

func GetMaxAcademyTicket

func GetMaxAcademyTicket(s *enter.Session) int64

func GetMaxMainEchelonNum

func GetMaxMainEchelonNum(echelonType proto.EchelonType) int32

func GetMemoryLobbyBin

func GetMemoryLobbyBin(s *enter.Session) *sro.MemoryLobbyBin

func GetMemoryLobbyDB

func GetMemoryLobbyDB(s *enter.Session, memoryLobbyId int64) *proto.MemoryLobbyDB

func GetMemoryLobbyDBs

func GetMemoryLobbyDBs(s *enter.Session) []*proto.MemoryLobbyDB

func GetMemoryLobbyInfo

func GetMemoryLobbyInfo(s *enter.Session, memoryLobbyId int64) *sro.MemoryLobbyInfo

func GetMemoryLobbyInfoList

func GetMemoryLobbyInfoList(s *enter.Session) map[int64]*sro.MemoryLobbyInfo

func GetMissionBin

func GetMissionBin(s *enter.Session) *sro.MissionBin

func GetMissionHistoryDB

func GetMissionHistoryDB(s *enter.Session, missionId int64) *proto.MissionHistoryDB

func GetMissionInfo

func GetMissionInfo(s *enter.Session, missionId int64) *sro.MissionInfo

GetMissionInfo 通过任务id拉取已接取的任务

func GetMissionProgressDB

func GetMissionProgressDB(s *enter.Session, missionId int64) *proto.MissionProgressDB

func GetMissionProgressDBs

func GetMissionProgressDBs(s *enter.Session) []*proto.MissionProgressDB

func GetMomoTalkBin

func GetMomoTalkBin(s *enter.Session) *sro.MomoTalkBin

func GetMomoTalkChoiceDBs

func GetMomoTalkChoiceDBs(s *enter.Session, characterId int64) []*proto.MomoTalkChoiceDB

func GetMultiFloorRaidDB

func GetMultiFloorRaidDB(s *enter.Session) *proto.MultiFloorRaidDB

func GetMultiFloorRaidDBs

func GetMultiFloorRaidDBs(s *enter.Session) []*proto.MultiFloorRaidDB

func GetNPCArenaUserDB

func GetNPCArenaUserDB(au *enter.ArenaUser) *proto.ArenaUserDB

func GetNickname

func GetNickname(s *enter.Session) string

func GetNoRefreshShopProductList

func GetNoRefreshShopProductList(s *enter.Session, categoryType proto.ShopCategoryType) []*proto.ShopProductDB

func GetOpponentUserDBs

func GetOpponentUserDBs(s *enter.Session) []*proto.ArenaUserDB

func GetParcelInfo

func GetParcelInfo(id, amount int64, v proto.ParcelType) *proto.ParcelInfo

func GetPbCafeDBs

func GetPbCafeDBs(s *enter.Session) []*proto.CafeDB

func GetPlayableHighestDifficulty

func GetPlayableHighestDifficulty(s *enter.Session) map[string]proto.Difficulty

func GetPlayerArenaUserDB

func GetPlayerArenaUserDB(s *enter.Session, echelonType proto.EchelonType) *proto.ArenaUserDB

func GetPlayerBin

func GetPlayerBin(s *enter.Session) *sro.PlayerBin

func GetRaidBattleDB

func GetRaidBattleDB(s *enter.Session, bin *sro.CurRaidBattleInfo) *proto.RaidBattleDB

func GetRaidBin

func GetRaidBin(s *enter.Session) *sro.RaidBin

func GetRaidCharacterDB

func GetRaidCharacterDB(bin *sro.RaidCharacterInfo, slot int32) *proto.RaidCharacterDB

func GetRaidDB

func GetRaidDB(s *enter.Session, bin *sro.CurRaidBattleInfo) *proto.RaidDB

func GetRaidEliminateBin

func GetRaidEliminateBin(s *enter.Session) *sro.RaidEliminateBin

func GetRaidEliminateGiveUpDB

func GetRaidEliminateGiveUpDB(s *enter.Session) *proto.RaidGiveUpDB

func GetRaidEliminateUserDB

func GetRaidEliminateUserDB(s *enter.Session) *proto.RaidUserDB

func GetRaidGiveUpDB

func GetRaidGiveUpDB(s *enter.Session) *proto.RaidGiveUpDB

func GetRaidLobbyInfoDB

func GetRaidLobbyInfoDB(s *enter.Session) *proto.RaidLobbyInfoDB

func GetRaidMultiFloorBin

func GetRaidMultiFloorBin(s *enter.Session) *sro.RaidMultiFloorBin

func GetRaidSeasonType

func GetRaidSeasonType() proto.RaidSeasonType

func GetRaidTeamSettingDB

func GetRaidTeamSettingDB(s *enter.Session, teamInfo *sro.RaidTeamInfo) *proto.RaidTeamSettingDB

func GetRaidUserDB

func GetRaidUserDB(s *enter.Session) *proto.RaidUserDB

func GetReceiveRewardIds

func GetReceiveRewardIds(bin map[int64]bool) []int64

func GetRefreshShopProductList

func GetRefreshShopProductList(categoryType proto.ShopCategoryType) []*proto.ShopProductDB

func GetRepresentCharacterUniqueId

func GetRepresentCharacterUniqueId(s *enter.Session) int64

func GetScenarioGroupHistoryDBs

func GetScenarioGroupHistoryDBs(s *enter.Session) []*proto.ScenarioGroupHistoryDB

func GetScenarioGroupHistoryInfo

func GetScenarioGroupHistoryInfo(s *enter.Session, scenarioGroupUniqueId int64) *sro.ScenarioGroupHistoryInfo

func GetScenarioGroupHistoryInfoList

func GetScenarioGroupHistoryInfoList(s *enter.Session) map[int64]*sro.ScenarioGroupHistoryInfo

func GetScenarioHistoryInfo

func GetScenarioHistoryInfo(s *enter.Session, scenarioUniqueId int64) *sro.ScenarioHistoryInfo

func GetScenarioHistoryInfoList

func GetScenarioHistoryInfoList(s *enter.Session) map[int64]*sro.ScenarioHistoryInfo

func GetSchoolDungeonStageHistoryDB

func GetSchoolDungeonStageHistoryDB(s *enter.Session, stageId int64) *proto.SchoolDungeonStageHistoryDB

func GetSchoolDungeonStageInfo

func GetSchoolDungeonStageInfo(s *enter.Session, stageId int64) *sro.SchoolDungeonStageInfo

func GetSchoolDungeonStageInfoList

func GetSchoolDungeonStageInfoList(s *enter.Session) map[int64]*sro.SchoolDungeonStageInfo

func GetSearchPermission

func GetSearchPermission(s *enter.Session) bool

func GetServerId

func GetServerId(s *enter.Session) int64

func GetServerNotification

func GetServerNotification(s *enter.Session) proto.ServerNotificationFlag

func GetServerTime

func GetServerTime() int64

func GetServerTimeTick

func GetServerTimeTick() int64

func GetShowAccountLevel

func GetShowAccountLevel(s *enter.Session) bool

func GetShowArenaRanking

func GetShowArenaRanking(s *enter.Session) bool

func GetShowEliminateRaidRanking

func GetShowEliminateRaidRanking(s *enter.Session) bool

func GetShowFriendCode

func GetShowFriendCode(s *enter.Session) bool

func GetShowRaidRanking

func GetShowRaidRanking(s *enter.Session) bool

func GetSingleRaidUserDB

func GetSingleRaidUserDB(s *enter.Session) *proto.SingleRaidUserDB

GetSingleRaidUserDB 拉取的一定是本次数据

func GetSkillEchelonNum

func GetSkillEchelonNum(skillType proto.EchelonType) int32

func GetStageHistoryDBs

func GetStageHistoryDBs(s *enter.Session, eventContentId int64) (list []*proto.CampaignStageHistoryDB)

func GetStaticOpenConditions

func GetStaticOpenConditions(s *enter.Session) map[string]int32

func GetStickerBin

func GetStickerBin(s *enter.Session) *sro.StickerBin

func GetStickerBookDB

func GetStickerBookDB(s *enter.Session) *proto.StickerBookDB

func GetStickerDBById

func GetStickerDBById(s *enter.Session, stickerId int64) *proto.StickerDB

func GetStickerInfo

func GetStickerInfo(s *enter.Session, stickerId int64) *sro.StickerInfo

func GetStickerMap

func GetStickerMap(s *enter.Session) map[int64]*sro.StickerInfo

func GetStrategyObject

func GetStrategyObject(bin *sro.EnemyInfo) *proto.Strategy

func GetSupportEchelonNum

func GetSupportEchelonNum(echelonType proto.EchelonType) int32

func GetTimeAttackBin

func GetTimeAttackBin(s *enter.Session) *sro.TimeAttackBin

func GetTimeAttackDungeonRoomDB

func GetTimeAttackDungeonRoomDB(s *enter.Session, roomId int64) *proto.TimeAttackDungeonRoomDB

func GetTimeAttackDungeonRoomDBs

func GetTimeAttackDungeonRoomDBs(s *enter.Session) map[int64]*proto.TimeAttackDungeonRoomDB

func GetTimeAttackRoom

func GetTimeAttackRoom(s *enter.Session, roomId int64) *sro.TimeAttackRoom

func GetTimeAttackRoomList

func GetTimeAttackRoomList(s *enter.Session) map[int64]*sro.TimeAttackRoom

func GetToast

func GetToast(s *enter.Session) []*enter.Toast

func GetTutorialList

func GetTutorialList(s *enter.Session) []int64

func GetVector3

func GetVector3(x *sro.Vector3) *proto.Vector3

func GetWeaponDB

func GetWeaponDB(s *enter.Session, characterId int64) *proto.WeaponDB

func GetWeaponDBs

func GetWeaponDBs(s *enter.Session) []*proto.WeaponDB

func GetWeaponInfo

func GetWeaponInfo(s *enter.Session, characterId int64) *sro.WeaponInfo

func GetWeaponInfoList

func GetWeaponInfoList(s *enter.Session) map[int64]*sro.WeaponInfo

func GetWeaponUpStarGradeNum

func GetWeaponUpStarGradeNum(starGrade int32) int32

func GetWeekDungeonStageHistoryDB

func GetWeekDungeonStageHistoryDB(s *enter.Session, stageId int64) *proto.WeekDungeonStageHistoryDB

func GetWeekDungeonStageInfo

func GetWeekDungeonStageInfo(s *enter.Session, stageId int64) *sro.WeekDungeonStageInfo

func GetWeekDungeonStageInfoList

func GetWeekDungeonStageInfoList(s *enter.Session) map[int64]*sro.WeekDungeonStageInfo

func MailParcelInfoJsonToProtobuf

func MailParcelInfoJsonToProtobuf(bin []*dbstruct.ParcelInfo) []*sro.ParcelInfo

func NewAttachmentBin

func NewAttachmentBin() *sro.AttachmentBin

func NewCafeBin

func NewCafeBin(s *enter.Session, bin *sro.CafeBin, cafeId int64) *sro.CafeInfo

func NewCampaignMainStageSaveDB

func NewCampaignMainStageSaveDB(s *enter.Session, stageUniqueId int64) *sro.BattleCampaign

func NewCharacter

func NewCharacter(s *enter.Session) *sro.CharacterBin

func NewCharacterEquipment

func NewCharacterEquipment(characterId int64) []int64

func NewClan

func NewClan(s *enter.Session, clanName string, joinOption proto.ClanJoinOption) proto.WebAPIErrorCode

func NewCurRaidBattleInfo

func NewCurRaidBattleInfo(s *enter.Session, raidUniqueId int64, isPractice bool)

NewCurRaidBattleInfo 创建新的总力战

func NewCurRaidEliminateBattleInfo

func NewCurRaidEliminateBattleInfo(s *enter.Session, raidUniqueId int64, isPractice bool)

NewCurRaidEliminateBattleInfo 创建新的大决战

func NewCurrencyInfo

func NewCurrencyInfo() map[int32]*sro.CurrencyInfo

func NewDungeonBin

func NewDungeonBin() *sro.DungeonBin

func NewEchelonPresetGuidList

func NewEchelonPresetGuidList() map[int32]*sro.EchelonTypeInfo

func NewEchelonTypeInfoList

func NewEchelonTypeInfoList() map[int32]*sro.EchelonTypeInfo

func NewEventContentBin

func NewEventContentBin() *sro.EventContentBin

func NewIdCardBackgroundList

func NewIdCardBackgroundList(s *enter.Session) map[int64]*sro.IdCardBackgroundInfo

func NewItemList

func NewItemList(s *enter.Session) map[int64]*sro.ItemInfo

func NewMailBin

func NewMailBin(s *enter.Session) *sro.MailBin

func NewMemoryLobbyBin

func NewMemoryLobbyBin() *sro.MemoryLobbyBin

func NewMission

func NewMission() *sro.MissionBin

func NewMomoTalkBin

func NewMomoTalkBin() *sro.MomoTalkBin

func NewPotentialStats

func NewPotentialStats() map[int32]int32

func NewRroductionList

func NewRroductionList(cafeId int64) map[int64]*sro.ProductionInfo

func NewStickerBin

func NewStickerBin() *sro.StickerBin

func NewYostarGame

func NewYostarGame(accountId int64) *sro.PlayerBin

func ParcelResultDB

func ParcelResultDB(s *enter.Session, parcelResultList []*ParcelResult) *proto.ParcelResultDB

ParcelResultDB TODO 没有验证是否能被消耗

func RaidCheck

func RaidCheck(s *enter.Session)

func RaidEliminateCheck

func RaidEliminateCheck(s *enter.Session)

func RecoverActionPoint

func RecoverActionPoint(s *enter.Session, db *sro.CurrencyInfo)

func RemoveFriendByUid

func RemoveFriendByUid(s *enter.Session, uid int64)

func RemoveFurniture

func RemoveFurniture(s *enter.Session, furnitureServerId int64, cafeServerId int64)

func RemoveItem

func RemoveItem(s *enter.Session, id int64, num int32) bool

func RepeatAddCharacter

func RepeatAddCharacter(s *enter.Session, characterId int64) []int64

func SaveGachaResults

func SaveGachaResults(s *enter.Session, results []*ParcelResult) ([]*proto.GachaResult, map[int64]bool)

保存抽卡结果

func ServerIdsToCharacterIds

func ServerIdsToCharacterIds(s *enter.Session, serverIdList []int64) []int64

func SetAccountLevel

func SetAccountLevel(s *enter.Session, level int32)

func SetAccountNickname

func SetAccountNickname(s *enter.Session, nickname string) bool

func SetAutoAcceptFriendRequest

func SetAutoAcceptFriendRequest(s *enter.Session, is bool) bool

func SetCallName

func SetCallName(s *enter.Session, callName string)

func SetCardBackgroundId

func SetCardBackgroundId(s *enter.Session, id int64) bool

func SetCardRepresentCharacterUniqueId

func SetCardRepresentCharacterUniqueId(s *enter.Session, characterId int64) bool

func SetCharacterEquipment

func SetCharacterEquipment(s *enter.Session, characterServerId int64, equipmentIdServerId int64, index int32) bool

func SetCharacterFavorRank

func SetCharacterFavorRank(info *sro.CharacterInfo, favorRank int32) bool

SetCharacterFavorRank 设置角色好感度等级

func SetCharacterLevel

func SetCharacterLevel(info *sro.CharacterInfo, level int32) bool

SetCharacterLevel 设置角色等级

func SetCharacterStarGrade

func SetCharacterStarGrade(info *sro.CharacterInfo, starGrade int32) bool

SetCharacterStarGrade 设置角色星级

func SetClanServerId

func SetClanServerId(s *enter.Session, clanId int64)

func SetComment

func SetComment(s *enter.Session, comment string)

func SetCurrency

func SetCurrency(s *enter.Session, parcelId proto.CurrencyTypes, num int64)

SetCurrency 直接设置,如需要产出请勿使用此方法

func SetEmblemUniqueId

func SetEmblemUniqueId(s *enter.Session, id int64) bool

func SetLastConnectTime

func SetLastConnectTime(s *enter.Session)

func SetLastLoginTime

func SetLastLoginTime(s *enter.Session)

func SetLobbyStudent

func SetLobbyStudent(s *enter.Session, serverId int64) bool

func SetMaxCharacter

func SetMaxCharacter(info *sro.CharacterInfo) bool

func SetSearchPermission

func SetSearchPermission(s *enter.Session, is bool) bool

func SetServerNotification

func SetServerNotification(s *enter.Session, flag proto.ServerNotificationFlag, ok bool)

func SetShowAccountLevel

func SetShowAccountLevel(s *enter.Session, is bool) bool

func SetShowArenaRanking

func SetShowArenaRanking(s *enter.Session, is bool) bool

func SetShowEliminateRaidRanking

func SetShowEliminateRaidRanking(s *enter.Session, is bool) bool

func SetShowFriendCode

func SetShowFriendCode(s *enter.Session, is bool) bool

func SetShowRaidRanking

func SetShowRaidRanking(s *enter.Session, is bool) bool

func UpAcademyLocationExp

func UpAcademyLocationExp(s *enter.Session, locationId int64, exp int64)

func UpAcademyZoneInfoList

func UpAcademyZoneInfoList(s *enter.Session) map[int64]*sro.AcademyZoneInfo

func UpCafeComfortValue

func UpCafeComfortValue(s *enter.Session, cafeServerId int64)

func UpCafeVisitCharacterDB

func UpCafeVisitCharacterDB(bin *sro.CafeInfo)

func UpCurrency

func UpCurrency(s *enter.Session, parcelId proto.CurrencyTypes, num int64) *sro.CurrencyInfo

func UpEchelonInfo

func UpEchelonInfo(typeInfo *sro.EchelonTypeInfo, conf *sro.DefaultEchelonExcelTable, num int64) *sro.EchelonInfo

深度更新

func UpEmblemInfoList

func UpEmblemInfoList(s *enter.Session, uniqueIds []int64)

func UpEventContentInfo

func UpEventContentInfo(s *enter.Session, eventContentId, stageUniqueId int64) *sro.EventContentStageHistory

func UpMomoTalkInfo

func UpMomoTalkInfo(s *enter.Session, characterId, gid, messageId int64)

func UseSticker

func UseSticker(s *enter.Session, stickerId int64) error

Types

type ParcelResult

type ParcelResult struct {
	ParcelType proto.ParcelType
	ParcelId   int64
	Amount     int64
	IsUp       bool
}

func ContentSweepSchoolDungeon

func ContentSweepSchoolDungeon(stageId int64, count int64) ([]*ParcelResult, [][]*proto.ParcelInfo)

func ContentSweepWeekDungeon

func ContentSweepWeekDungeon(stageId int64, count int64) ([]*ParcelResult, [][]*proto.ParcelInfo)

ContentSweepWeekDungeon 悬赏通缉/特别依赖 奖励生成

func FinishScenarioHistoryInfo

func FinishScenarioHistoryInfo(s *enter.Session, scenarioGroupUniqueId int64) []*ParcelResult

func GenGachaResults

func GenGachaResults(goodsId int64) []*ParcelResult

func GetMailParcelResultList

func GetMailParcelResultList(bin []*sro.ParcelInfo) []*ParcelResult

func GetParcelResultList

func GetParcelResultList(typeList []string, idList, numList []int64, isDel bool) []*ParcelResult

func GetSchoolDungeonCost

func GetSchoolDungeonCost(isDel bool, count int64) []*ParcelResult

func GetTimeAttackDungeonParcelResultByScore

func GetTimeAttackDungeonParcelResultByScore(score, seasonId int64) (list []*ParcelResult)

func RaidClose

func RaidClose(s *enter.Session) []*ParcelResult

func RaidEliminateClose

func RaidEliminateClose(s *enter.Session) []*ParcelResult

func TimeAttackDungeonClose

func TimeAttackDungeonClose(s *enter.Session) ([]*ParcelResult, int64)

func UpScheduleGroup

func UpScheduleGroup(s *enter.Session, scheduleId int64) []*ParcelResult

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL