player

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Hcoin       uint32 = 1      // 星琼
	Scoin       uint32 = 2      // 金钱
	Mcoin       uint32 = 3      // 梦华
	Stamina     uint32 = 11     // 体力
	RStamina    uint32 = 12     // 后备体力
	Exp         uint32 = 22     // 经验
	Cf          uint32 = 31     // 宇宙碎片
	NewM               = 5      // 新道具
	Inspiration uint32 = 281018 // 灵感
)
View Source
const (
	MaxLineupList = 20 // 设置最大普通队伍数
	MaxMp         = 5  // 设置最大队伍能量
	Challenge_1   = 1  // 第一个忘却之庭队伍
	Challenge_2   = 2  // 第二个忘却之庭队伍
	Rogue         = 3  // 第一个模拟宇宙队伍
	RogueTourn    = 4  // 差分宇宙
	Activity      = 5  // 角色试用队伍
	Raid          = 6  // 副本队伍
)
View Source
const (
	QuestRogue      = 0       // 模拟宇宙
	RogueDlc        = 6000302 // 模拟宇宙:寰宇蝗灾
	RogueNous       = 6000901 // 模拟宇宙:黄金与机械
	QuestRogueTourn = 301     // 差分宇宙
)
View Source
const (
	RogueBuffType      = 900  // 各属性
	AddRogueBuffType   = 1900 // 属性增加概率
	RogueBuffRarityOne = 6000 // 白
	RogueBuffRarityTwo = 3000 // 蓝
	AddRogueBuffRarity = 1000 // 品质增加概率
)

Default Probability

Variables

View Source
var BattleBackupLock sync.Mutex // 战斗列表互斥锁
View Source
var SNOWFLAKE *alg.SnowflakeWorker // 雪花唯一id生成器

Functions

func IsValid added in v1.2.2

func IsValid(cmdid uint16) bool

func LogMsgRecv added in v1.2.2

func LogMsgRecv(cmdId uint16, payloadMsg []byte)

func LogMsgSeed added in v1.2.2

func LogMsgSeed(cmdId uint16, playerMsg pb.Message)

异步打印数据包

func NewActivity added in v1.2.2

func NewActivity() *spb.Activity

func NewAvatar added in v1.2.2

func NewAvatar() *spb.Avatar

func NewBattle added in v1.2.2

func NewBattle() *spb.Battle

func NewBlockMap added in v1.3.1

func NewBlockMap() map[uint32]*spb.BlockBin

func NewFriend added in v1.2.2

func NewFriend() *spb.PlayerFriend

func NewGacha added in v1.2.2

func NewGacha() *spb.Gacha

func NewItem added in v1.2.2

func NewItem() *spb.Item

func NewLineUp added in v1.2.2

func NewLineUp() *spb.LineUp

func NewMail added in v1.2.2

func NewMail() *spb.Mail

func NewMailDts added in v1.2.2

func NewMailDts(id uint32) *spb.MailDts

func NewMessageGroup added in v1.2.2

func NewMessageGroup() map[uint32]*spb.MessageGroup

func NewPos added in v1.2.2

func NewPos() *spb.VectorBin

func NewRot added in v1.2.2

func NewRot() *spb.VectorBin

func NewScene added in v1.2.2

func NewScene() *spb.Scene

func NewTutorialDb added in v1.2.2

func NewTutorialDb() *spb.TutorialDb

Types

type ActivityInfoOnline added in v1.3.1

type ActivityInfoOnline struct {
	StageId uint32 // 关卡id
}

type AllPlayerSync added in v1.2.3

type AllPlayerSync struct {
	IsBasic                bool     // 基本信息
	AvatarList             []uint32 // 角色列表
	MaterialList           []uint32 // 物品id列表
	EquipmentList          []uint32 // 光锥列表
	DelEquipmentList       []uint32 // 删除列表
	RelicList              []uint32 // 圣遗物列表
	DelRelicList           []uint32 // 删除列表
	MissionFinishMainList  []uint32 // 已完成的主任务
	MissionFinishSubList   []uint32 // 已完成的子任务
	MissionProgressSubList []uint32 // 需要通知的子任务
}

type AvatarEntity

type AvatarEntity struct {
	Entity
	AvatarId uint32 // 角色id
}

func (*AvatarEntity) AddEntity added in v1.2.2

func (ae *AvatarEntity) AddEntity(g *GamePlayer, groupID uint32)

type BattleAvatar added in v1.2.2

type BattleAvatar struct {
	AvatarId   uint32             // 角色id
	AvatarType spb.LineAvatarType // 角色类型
	AssistUid  uint32             // 助战uid
}

type BattleBackup added in v1.2.2

type BattleBackup struct {
	BattleId         uint32                   // 战斗id
	BattleAvatarList map[uint32]*BattleAvatar // 参加战斗的角色

	CocoonId           uint32 // 关卡id
	WorldLevel         uint32 // 关卡等级
	EventId            uint32 // 任务用的
	AttackedByEntityId uint32 // 发起攻击的实体id
	// contains filtered or unexported fields
}

type CurBattle added in v1.2.2

type CurBattle struct {
	BattleBackup       map[uint32]*BattleBackup     // 正在进行的战斗[战斗id]战斗细节
	RogueInfoOnline    *RogueInfoOnline             // 模拟宇宙临时数据
	AvatarBuff         map[uint32]*OnLineAvatarBuff // 角色在线buff
	ActivityInfoOnline *ActivityInfoOnline          // 角色试用在线数据
}

type Entity added in v1.2.2

type Entity struct {
	EntityId uint32 // 实体id
	InstId   uint32 // 配置表中id
	EntryId  uint32 // 地图
	GroupId  uint32 // 区域
	Pos      *proto.Vector
	Rot      *proto.Vector
}

type EntityAll added in v1.2.2

type EntityAll interface {
	AddEntity(g *GamePlayer, groupID uint32)
}

type GamePlayer

type GamePlayer struct {
	Uid           uint32
	AccountId     uint32
	GameAppId     uint32
	GateAppId     uint32
	IsJumpMission bool
	DB            *gorm.DB
	IsPE          bool
	// 玩家数据
	Platform       spb.PlatformType        // 登录设备
	OnlineData     *OnlineData             // 玩家在线数据
	BasicBin       *spb.PlayerBasicCompBin // 玩家pb数据
	RouteManager   *RouteManager           // 路由
	SendChan       chan Msg                // 发送消息通道
	LastUpDataTime int64                   // 最近一次的活跃时间
}

func (*GamePlayer) AcceptInspectMission added in v1.3.1

func (g *GamePlayer) AcceptInspectMission() ([]uint32, []uint32)

func (*GamePlayer) AcceptMainMission added in v1.3.1

func (g *GamePlayer) AcceptMainMission() []uint32

检查是否有主任务需要接取

func (*GamePlayer) AcceptSubMission added in v1.3.1

func (g *GamePlayer) AcceptSubMission() []uint32

检查当前主任务下是否有子任务需要接取

func (*GamePlayer) ActivateFarmElementCsReq added in v1.3.1

func (g *GamePlayer) ActivateFarmElementCsReq(payloadMsg []byte)

func (*GamePlayer) AddAvatar

func (g *GamePlayer) AddAvatar(avatarId uint32, src proto.AddAvatarSrcState)

8001,8002,8003,8004,8005,8006 -> 8001 1001,1224 -> 1001

func (*GamePlayer) AddAvatarRank added in v1.2.2

func (g *GamePlayer) AddAvatarRank(rank uint32, db *spb.AvatarBin)

func (*GamePlayer) AddAvatarSceneGroupRefreshScNotify added in v1.2.2

func (g *GamePlayer) AddAvatarSceneGroupRefreshScNotify(avatarId uint32, isTrial bool, pos, rot *proto.Vector)

添加角色

func (*GamePlayer) AddBattleBackup added in v1.2.2

func (g *GamePlayer) AddBattleBackup(bb *BattleBackup)

func (*GamePlayer) AddBattleIdGuid added in v1.2.2

func (g *GamePlayer) AddBattleIdGuid()

func (*GamePlayer) AddBtRelic added in v1.2.2

func (g *GamePlayer) AddBtRelic(tid uint32) uint32

func (*GamePlayer) AddChallengeCurStage added in v1.2.2

func (g *GamePlayer) AddChallengeCurStage(num uint32)

func (*GamePlayer) AddChallengeDeadAvatar added in v1.2.2

func (g *GamePlayer) AddChallengeDeadAvatar(deadNum uint32)

添加死亡角色数

func (*GamePlayer) AddCurChallengeKillMonster added in v1.2.2

func (g *GamePlayer) AddCurChallengeKillMonster(num uint32)

func (*GamePlayer) AddCurRogueTournFormula added in v1.3.1

func (g *GamePlayer) AddCurRogueTournFormula(id uint32)

func (*GamePlayer) AddDataVersion added in v1.2.1

func (g *GamePlayer) AddDataVersion() uint32

func (*GamePlayer) AddEntity added in v1.2.2

func (g *GamePlayer) AddEntity(groupID uint32, t EntityAll)

func (*GamePlayer) AddEquipment

func (g *GamePlayer) AddEquipment(tid uint32) uint32

func (*GamePlayer) AddFinishMainMission added in v1.3.1

func (g *GamePlayer) AddFinishMainMission(finishMainList []uint32) []uint32

func (*GamePlayer) AddFinishSubMission added in v1.3.1

func (g *GamePlayer) AddFinishSubMission(finishSubList []uint32) []uint32

func (*GamePlayer) AddFriend added in v1.2.2

func (g *GamePlayer) AddFriend(uid uint32)

func (*GamePlayer) AddGachaItem

func (g *GamePlayer) AddGachaItem(id uint32, allSync *AllPlayerSync) (bool, bool)

func (*GamePlayer) AddHeadIcon

func (g *GamePlayer) AddHeadIcon(headIconId uint32)

func (*GamePlayer) AddItem added in v1.2.2

func (g *GamePlayer) AddItem(pileItem []*Material)

func (*GamePlayer) AddLineUpMp added in v1.2.2

func (g *GamePlayer) AddLineUpMp(mp uint32)

func (*GamePlayer) AddLoadedGroup added in v1.2.2

func (g *GamePlayer) AddLoadedGroup(entryId, planeID, floorID, groupID uint32)

func (*GamePlayer) AddMainMission added in v1.3.1

func (g *GamePlayer) AddMainMission(acceptMainList []uint32)

func (*GamePlayer) AddMaterial

func (g *GamePlayer) AddMaterial(pileItem []*Material)

func (*GamePlayer) AddMessageGroup added in v1.2.2

func (g *GamePlayer) AddMessageGroup(sectionId uint32)

func (*GamePlayer) AddMonsterSceneEntityRefreshInfo added in v1.2.2

func (g *GamePlayer) AddMonsterSceneEntityRefreshInfo(mazeGroupID uint32, monsterList map[uint32]*gdconf.MonsterList) []*proto.SceneEntityRefreshInfo

添加怪物

func (*GamePlayer) AddMultiPathAvatar added in v1.3.1

func (g *GamePlayer) AddMultiPathAvatar(avatarId uint32)

AddMultiPathAvatar 添加命途

func (*GamePlayer) AddNoLoadedGroup added in v1.2.2

func (g *GamePlayer) AddNoLoadedGroup(entryId, planeID, floorID, groupID uint32)

func (*GamePlayer) AddNpcSceneEntityRefreshInfo added in v1.2.2

func (g *GamePlayer) AddNpcSceneEntityRefreshInfo(mazeGroupID uint32, npcList map[uint32]*gdconf.NPCList) []*proto.SceneEntityRefreshInfo

添加Npc

func (*GamePlayer) AddOnLineAvatarBuff added in v1.2.3

func (g *GamePlayer) AddOnLineAvatarBuff(avatarID, buffId uint32)

func (*GamePlayer) AddPropSceneEntityRefreshInfo added in v1.2.2

func (g *GamePlayer) AddPropSceneEntityRefreshInfo(mazeGroupID uint32, propList map[uint32]*gdconf.PropList, db *spb.BlockBin) []*proto.SceneEntityRefreshInfo

添加物品实体

func (*GamePlayer) AddRelic

func (g *GamePlayer) AddRelic(tid uint32) uint32

func (*GamePlayer) AddRewardTakenLevelList added in v1.3.1

func (g *GamePlayer) AddRewardTakenLevelList(id uint32)

func (*GamePlayer) AddRogueBuff added in v1.2.3

func (g *GamePlayer) AddRogueBuff(id uint32)

func (*GamePlayer) AddRogueBuffNum added in v1.2.3

func (g *GamePlayer) AddRogueBuffNum()

func (*GamePlayer) AddSubMission added in v1.3.1

func (g *GamePlayer) AddSubMission(acceptSubList []uint32)

func (*GamePlayer) AddTrailblazerExp

func (g *GamePlayer) AddTrailblazerExp(num uint32)

func (*GamePlayer) AddUnlockFormulaList added in v1.3.1

func (g *GamePlayer) AddUnlockFormulaList(formulaId uint32)

func (*GamePlayer) AddWorldLevel added in v1.3.1

func (g *GamePlayer) AddWorldLevel(num uint32)

func (*GamePlayer) AllCheckMainMission added in v1.3.1

func (g *GamePlayer) AllCheckMainMission() []uint32

全局检查将已完成的主任务下还没有完成的子任务全部完成

func (*GamePlayer) AllGive added in v1.3.1

func (g *GamePlayer) AllGive(allSync *AllPlayerSync)

func (*GamePlayer) AllPlayerSyncScNotify added in v1.2.3

func (g *GamePlayer) AllPlayerSyncScNotify(allSync *AllPlayerSync)

func (*GamePlayer) AutoEntryGroup added in v1.2.2

func (g *GamePlayer) AutoEntryGroup()

检查场景上是否有实体需要卸载/加载

func (*GamePlayer) AutoServerMissionFinishAction added in v1.2.2

func (g *GamePlayer) AutoServerMissionFinishAction(id uint32)

完成任务后完成服务端动作(不结束任务

func (*GamePlayer) AvatarExpUpCsReq

func (g *GamePlayer) AvatarExpUpCsReq(payloadMsg []byte)

func (*GamePlayer) AvatarPlayerSyncScNotify

func (g *GamePlayer) AvatarPlayerSyncScNotify(avatarId uint32)

func (*GamePlayer) AvatarRecover added in v1.3.1

func (g *GamePlayer) AvatarRecover(avatarId uint32)

func (*GamePlayer) AvatarRecoverPercent added in v1.4.0

func (g *GamePlayer) AvatarRecoverPercent(avatarId uint32, Value, percent float64)

func (*GamePlayer) BattlePassInfoNotify

func (g *GamePlayer) BattlePassInfoNotify()

func (*GamePlayer) BattleUpAvatar added in v1.2.2

func (g *GamePlayer) BattleUpAvatar(abi []*proto.AvatarBattleInfo, bt proto.BattleEndStatus)

战斗结束后更新角色状态

func (*GamePlayer) BuyGoodsCsReq

func (g *GamePlayer) BuyGoodsCsReq(payloadMsg []byte)

func (*GamePlayer) ChallengeAddAvatarSceneGroupRefreshScNotify

func (g *GamePlayer) ChallengeAddAvatarSceneGroupRefreshScNotify()

func (*GamePlayer) ChallengeAddSceneGroupRefreshScNotify

func (g *GamePlayer) ChallengeAddSceneGroupRefreshScNotify()

func (*GamePlayer) ChallengeBattleEndLose added in v1.2.2

func (g *GamePlayer) ChallengeBattleEndLose() bool

忘却之庭战斗失败处理

func (*GamePlayer) ChallengeBossPhaseSettleNotify added in v1.3.0

func (g *GamePlayer) ChallengeBossPhaseSettleNotify(targeList map[uint32]*proto.BattleTargetList)

func (*GamePlayer) ChallengePVEBattleResultCsReq

func (g *GamePlayer) ChallengePVEBattleResultCsReq(req *proto.PVEBattleResultCsReq)

func (*GamePlayer) ChallengeSettle added in v1.2.2

func (g *GamePlayer) ChallengeSettle()

关卡结束,开始结算

func (*GamePlayer) ChallengeSettleNotify added in v1.2.2

func (g *GamePlayer) ChallengeSettleNotify()

func (*GamePlayer) ChallengesAddMonsterSceneEntityRefreshInfo added in v1.2.2

func (g *GamePlayer) ChallengesAddMonsterSceneEntityRefreshInfo(mazeGroupID uint32, configList, eventIDList, npcMonsterIDList []uint32, monsterList map[uint32]*gdconf.MonsterList) []*proto.SceneEntityRefreshInfo

添加怪物

func (*GamePlayer) ChangeLineupLeaderCsReq

func (g *GamePlayer) ChangeLineupLeaderCsReq(payloadMsg []byte)

func (*GamePlayer) CheckMainMission added in v1.3.1

func (g *GamePlayer) CheckMainMission(finishMainList []uint32) []uint32

将已完成的主任务下还没有完成的子任务全部完成

func (*GamePlayer) CheckRaid added in v1.3.1

func (g *GamePlayer) CheckRaid()

func (*GamePlayer) CheckUnlockMultiPath added in v1.3.1

func (g *GamePlayer) CheckUnlockMultiPath()

func (*GamePlayer) ClientDownloadDataScNotify added in v1.2.2

func (g *GamePlayer) ClientDownloadDataScNotify()

wind

func (*GamePlayer) CocoonBattle added in v1.2.2

func (g *GamePlayer) CocoonBattle(cocoonId, worldLevel uint32)

func (*GamePlayer) ComposeItem added in v1.3.1

func (g *GamePlayer) ComposeItem(conf *gdconf.ItemComposeConfig, count uint32, composeItemList *proto.ItemCostData) (proto.Retcode, *AllPlayerSync)

func (*GamePlayer) ComposeItemCsReq added in v1.3.1

func (g *GamePlayer) ComposeItemCsReq(payloadMsg []byte)

func (*GamePlayer) ComposeSelectedRelicCsReq added in v1.3.1

func (g *GamePlayer) ComposeSelectedRelicCsReq(payloadMsg []byte)

func (*GamePlayer) ContentPackageSyncDataScNotify added in v1.3.0

func (g *GamePlayer) ContentPackageSyncDataScNotify()

func (*GamePlayer) CopyBattleAvatar added in v1.2.2

func (g *GamePlayer) CopyBattleAvatar(avatarBin *spb.AvatarBin)

func (*GamePlayer) CreateCharacterSubMission added in v1.2.2

func (g *GamePlayer) CreateCharacterSubMission()

处理创建角色任务

func (*GamePlayer) DailyActiveInfoNotify added in v1.3.1

func (g *GamePlayer) DailyActiveInfoNotify()

func (*GamePlayer) DecodePayloadToProto

func (g *GamePlayer) DecodePayloadToProto(cmdId uint16, msg []byte) (protoObj pb.Message)

func (*GamePlayer) DelBattleBackupById added in v1.2.2

func (g *GamePlayer) DelBattleBackupById(battleId uint32)

func (*GamePlayer) DelEquipment added in v1.2.2

func (g *GamePlayer) DelEquipment(equipmentList []uint32) bool

删除物品

func (*GamePlayer) DelItem added in v1.2.1

func (g *GamePlayer) DelItem(payloadMsg pb.Message)

清空背包

func (*GamePlayer) DelLineUpMp added in v1.4.0

func (g *GamePlayer) DelLineUpMp(mp uint32)

func (*GamePlayer) DelMail added in v1.2.2

func (g *GamePlayer) DelMail(id uint32)

func (*GamePlayer) DelMailCsReq added in v1.2.2

func (g *GamePlayer) DelMailCsReq(payloadMsg []byte)

func (*GamePlayer) DelMainMission added in v1.3.1

func (g *GamePlayer) DelMainMission(mainMissionIDList []uint32)

func (*GamePlayer) DelMaterial

func (g *GamePlayer) DelMaterial(pileItem []*Material) bool

func (*GamePlayer) DelOnLineAvatarBuff added in v1.2.3

func (g *GamePlayer) DelOnLineAvatarBuff(avatarID, buffId uint32)

func (*GamePlayer) DelRelic added in v1.2.2

func (g *GamePlayer) DelRelic(relicList []uint32) bool

func (*GamePlayer) DelSubMission added in v1.3.1

func (g *GamePlayer) DelSubMission(subId uint32)

func (*GamePlayer) DelTrialAvatar added in v1.2.2

func (g *GamePlayer) DelTrialAvatar(trialAvatarId uint32)

func (*GamePlayer) DeployRotaterCsReq added in v1.3.1

func (g *GamePlayer) DeployRotaterCsReq(payloadMsg []byte)

func (*GamePlayer) DestroyItemCsReq added in v1.2.2

func (g *GamePlayer) DestroyItemCsReq(payloadMsg []byte)

func (*GamePlayer) DoGachaCsReq

func (g *GamePlayer) DoGachaCsReq(payloadMsg []byte)

func (*GamePlayer) DressAvatar added in v1.3.1

func (g *GamePlayer) DressAvatar(equipAvatarId, equipmentUniqueId uint32)

光锥装备通知

func (*GamePlayer) DressAvatarCsReq

func (g *GamePlayer) DressAvatarCsReq(payloadMsg []byte)

func (*GamePlayer) DressRelicAvatar added in v1.3.1

func (g *GamePlayer) DressRelicAvatar(equipAvatarId uint32, paramList []*proto.DressRelicParam)

func (*GamePlayer) DressRelicAvatarCsReq

func (g *GamePlayer) DressRelicAvatarCsReq(payloadMsg []byte)

func (*GamePlayer) EnterChallengeNextPhaseCsReq added in v1.3.0

func (g *GamePlayer) EnterChallengeNextPhaseCsReq(payloadMsg []byte)

func (*GamePlayer) EnterMapByEntrance added in v1.3.1

func (g *GamePlayer) EnterMapByEntrance(entryId uint32)

进入指定场景检查

func (*GamePlayer) EnterRogueMapRoomCsReq added in v1.0.5

func (g *GamePlayer) EnterRogueMapRoomCsReq(payloadMsg []byte)

func (*GamePlayer) EnterSceneByServerScNotify

func (g *GamePlayer) EnterSceneByServerScNotify(entryId, teleportId, groupID, anchorID uint32)

通知客户端进入场景

func (*GamePlayer) EnterSceneCsReq

func (g *GamePlayer) EnterSceneCsReq(payloadMsg []byte)

func (*GamePlayer) ExchangeHcoinCsReq

func (g *GamePlayer) ExchangeHcoinCsReq(payloadMsg []byte)

func (*GamePlayer) ExchangeRogueRewardKeyCsReq

func (g *GamePlayer) ExchangeRogueRewardKeyCsReq(payloadMsg []byte)

func (*GamePlayer) ExpUpEquipmentCsReq

func (g *GamePlayer) ExpUpEquipmentCsReq(payloadMsg []byte)

func (*GamePlayer) ExpUpRelicCsReq

func (g *GamePlayer) ExpUpRelicCsReq(payloadMsg []byte)

func (*GamePlayer) FinishAllMission added in v1.2.3

func (g *GamePlayer) FinishAllMission()

func (*GamePlayer) FinishAllTutorial added in v1.2.3

func (g *GamePlayer) FinishAllTutorial()

func (*GamePlayer) FinishCocoon added in v1.2.3

func (g *GamePlayer) FinishCocoon(cocoonId uint32)

副本完成任务

func (*GamePlayer) FinishCosumeItemMission added in v1.3.1

func (g *GamePlayer) FinishCosumeItemMission(subMissionId uint32)

提交道具任务完成

func (*GamePlayer) FinishCosumeItemMissionCsReq added in v1.3.1

func (g *GamePlayer) FinishCosumeItemMissionCsReq(payloadMsg []byte)

func (*GamePlayer) FinishInspectMission added in v1.3.1

func (g *GamePlayer) FinishInspectMission() ([]uint32, []uint32, []uint32, []uint32)

func (*GamePlayer) FinishItemIdCsReq added in v1.3.1

func (g *GamePlayer) FinishItemIdCsReq(payloadMsg []byte)

func (*GamePlayer) FinishMainMission added in v1.2.3

func (g *GamePlayer) FinishMainMission(id uint32) (uint32, uint32)

完成列表中的主任务即可

func (*GamePlayer) FinishMessageGroup added in v1.2.2

func (g *GamePlayer) FinishMessageGroup(sectionId uint32)

func (*GamePlayer) FinishPerformSectionIdCsReq added in v1.2.2

func (g *GamePlayer) FinishPerformSectionIdCsReq(payloadMsg []byte)

func (*GamePlayer) FinishRogueRoom added in v1.3.1

func (g *GamePlayer) FinishRogueRoom(siteId uint32)

func (*GamePlayer) FinishServerMainMission added in v1.3.1

func (g *GamePlayer) FinishServerMainMission() []uint32

主任务完成检查

func (*GamePlayer) FinishServerSubMission added in v1.3.1

func (g *GamePlayer) FinishServerSubMission() ([]uint32, []uint32)

子任务完成检查

func (*GamePlayer) FinishTalkMissionCsReq added in v1.2.2

func (g *GamePlayer) FinishTalkMissionCsReq(payloadMsg []byte)

func (*GamePlayer) FinishTutorial added in v1.2.2

func (g *GamePlayer) FinishTutorial(id uint32)

func (*GamePlayer) FinishTutorialCsReq added in v1.2.2

func (g *GamePlayer) FinishTutorialCsReq(payloadMsg []byte)

func (*GamePlayer) FinishTutorialGuide added in v1.2.2

func (g *GamePlayer) FinishTutorialGuide(id uint32)

func (*GamePlayer) FinishTutorialGuideCsReq added in v1.2.2

func (g *GamePlayer) FinishTutorialGuideCsReq(payloadMsg []byte)

func (*GamePlayer) FormulaSyncRogueCommonActionResultScNotify added in v1.3.1

func (g *GamePlayer) FormulaSyncRogueCommonActionResultScNotify(formulaId uint32)

方程选择后通知

func (*GamePlayer) FormulaSyncRogueCommonPendingActionScNotify added in v1.3.1

func (g *GamePlayer) FormulaSyncRogueCommonPendingActionScNotify(formulaList []uint32)

方程选择通知

func (*GamePlayer) GachaRandom

func (g *GamePlayer) GachaRandom(gachaId uint32) uint32

func (*GamePlayer) GetActivity

func (g *GamePlayer) GetActivity() *spb.Activity

func (*GamePlayer) GetActivityInfoOnline added in v1.3.1

func (g *GamePlayer) GetActivityInfoOnline() *ActivityInfoOnline

func (*GamePlayer) GetAddAvatarSceneEntityRefreshInfo added in v1.2.2

func (g *GamePlayer) GetAddAvatarSceneEntityRefreshInfo(lineUp *spb.Line, pos, rot *proto.Vector) []*proto.SceneEntityRefreshInfo

添加角色

func (*GamePlayer) GetAddBuffSceneEntityRefreshInfo added in v1.4.0

func (g *GamePlayer) GetAddBuffSceneEntityRefreshInfo(casterEntityId, summonId uint32, pos, rot *proto.Vector) []*proto.GroupRefreshInfo

添加Buff

func (*GamePlayer) GetAllBlockMap added in v1.3.1

func (g *GamePlayer) GetAllBlockMap() map[uint32]*spb.BlockBin

func (*GamePlayer) GetAllMail added in v1.2.2

func (g *GamePlayer) GetAllMail() []*proto.ClientMail

func (*GamePlayer) GetAllPropEntity added in v1.2.2

func (g *GamePlayer) GetAllPropEntity() []*PropEntity

func (*GamePlayer) GetAttachment added in v1.2.2

func (g *GamePlayer) GetAttachment(itemList []*database.Item) []*proto.Item

func (*GamePlayer) GetAuthkeyCsReq added in v1.4.0

func (g *GamePlayer) GetAuthkeyCsReq(payloadMsg []byte)

func (*GamePlayer) GetAvatar

func (g *GamePlayer) GetAvatar() *spb.Avatar

func (*GamePlayer) GetAvatarBinById added in v1.2.1

func (g *GamePlayer) GetAvatarBinById(avatarId uint32) *spb.AvatarBin

func (*GamePlayer) GetAvatarById

func (g *GamePlayer) GetAvatarById(avatarId uint32) *spb.AvatarBin

func (*GamePlayer) GetAvatarEntity added in v1.2.3

func (g *GamePlayer) GetAvatarEntity(id uint32) *AvatarEntity

func (*GamePlayer) GetAvatarEquipRelic added in v1.2.2

func (g *GamePlayer) GetAvatarEquipRelic(avatarId, slot uint32) *spb.Relic

func (*GamePlayer) GetAvatarList added in v1.2.2

func (g *GamePlayer) GetAvatarList() map[uint32]*spb.AvatarBin

func (*GamePlayer) GetBasicBin added in v1.2.2

func (g *GamePlayer) GetBasicBin() *spb.PlayerBasicCompBin

func (*GamePlayer) GetBattle

func (g *GamePlayer) GetBattle() *spb.Battle

func (*GamePlayer) GetBattleAvatar added in v1.3.1

func (g *GamePlayer) GetBattleAvatar(avatarId, index uint32) *proto.BattleAvatar

角色

func (*GamePlayer) GetBattleAvatarBinById added in v1.2.2

func (g *GamePlayer) GetBattleAvatarBinById(avatarId uint32) *spb.AvatarBin

func (*GamePlayer) GetBattleAvatarList

func (g *GamePlayer) GetBattleAvatarList() map[uint32]*spb.AvatarBin

func (*GamePlayer) GetBattleBackup added in v1.2.2

func (g *GamePlayer) GetBattleBackup() map[uint32]*BattleBackup

func (*GamePlayer) GetBattleBackupById added in v1.2.2

func (g *GamePlayer) GetBattleBackupById(battleId uint32) *BattleBackup

func (*GamePlayer) GetBattleBuff added in v1.2.2

func (g *GamePlayer) GetBattleBuff(buffList []*proto.BattleBuff) []*proto.BattleBuff

根据战斗情况添加buff

func (*GamePlayer) GetBattleIdGuid

func (g *GamePlayer) GetBattleIdGuid() uint32

func (*GamePlayer) GetBattleLineUp added in v1.2.2

func (g *GamePlayer) GetBattleLineUp() *spb.Line

func (*GamePlayer) GetBattleLineUpById added in v1.2.1

func (g *GamePlayer) GetBattleLineUpById(index uint32) *spb.Line

func (*GamePlayer) GetBattleStatus added in v1.2.2

func (g *GamePlayer) GetBattleStatus() spb.BattleType

func (*GamePlayer) GetBattleTargetInfo added in v1.2.2

func (g *GamePlayer) GetBattleTargetInfo() map[uint32]*proto.BattleTargetList

添加战斗目标

func (*GamePlayer) GetBlock added in v1.2.2

func (g *GamePlayer) GetBlock(entryId uint32) *spb.BlockBin

从db拉取地图数据

func (*GamePlayer) GetBlockMap added in v1.3.1

func (g *GamePlayer) GetBlockMap() map[uint32]*spb.BlockBin

func (*GamePlayer) GetChallenge

func (g *GamePlayer) GetChallenge() *spb.Challenge

func (*GamePlayer) GetChallengeById

func (g *GamePlayer) GetChallengeById(id uint32) *spb.ChallengeList

func (*GamePlayer) GetChallengeInfo added in v1.2.2

func (g *GamePlayer) GetChallengeInfo() *proto.CurChallenge

func (*GamePlayer) GetChallengeLineUp added in v1.2.2

func (g *GamePlayer) GetChallengeLineUp() *spb.Line

func (*GamePlayer) GetChallengeList added in v1.2.2

func (g *GamePlayer) GetChallengeList() map[uint32]*spb.ChallengeList

func (*GamePlayer) GetChallengeReward added in v1.2.2

func (g *GamePlayer) GetChallengeReward() *proto.ItemList

todo 忘却之庭奖励获取

func (*GamePlayer) GetChallengeRewardList added in v1.2.2

func (g *GamePlayer) GetChallengeRewardList() map[uint64]uint32

func (*GamePlayer) GetChallengeScene

func (g *GamePlayer) GetChallengeScene() *proto.SceneInfo

获取忘却之庭世界

func (*GamePlayer) GetChallengesAnchor added in v1.2.2

func (g *GamePlayer) GetChallengesAnchor(anchorList map[uint32]*gdconf.AnchorList) (pos, rot *proto.Vector)

func (*GamePlayer) GetChallengesConfigList added in v1.2.2

func (g *GamePlayer) GetChallengesConfigList() []uint32

func (*GamePlayer) GetChallengesEventIDList added in v1.2.2

func (g *GamePlayer) GetChallengesEventIDList() []uint32

func (*GamePlayer) GetChallengesLineUp added in v1.2.2

func (g *GamePlayer) GetChallengesLineUp() *spb.Line

func (*GamePlayer) GetChallengesMazeGroupID added in v1.2.2

func (g *GamePlayer) GetChallengesMazeGroupID() uint32

func (*GamePlayer) GetChallengesNpcMonsterIDList added in v1.2.2

func (g *GamePlayer) GetChallengesNpcMonsterIDList() []uint32

func (*GamePlayer) GetChatFriendHistoryCsReq added in v1.2.2

func (g *GamePlayer) GetChatFriendHistoryCsReq(payloadMsg []byte)

func (*GamePlayer) GetChessRogueMiracleInfo added in v1.3.1

func (g *GamePlayer) GetChessRogueMiracleInfo() *proto.ChessRogueMiracleInfo

func (*GamePlayer) GetCocoonBattleInfo added in v1.2.2

func (g *GamePlayer) GetCocoonBattleInfo(lineUp *spb.Line, req *proto.StartCocoonStageCsReq) (*proto.SceneBattleInfo, *BattleBackup)

副本战斗

func (*GamePlayer) GetCurAvatar added in v1.2.2

func (g *GamePlayer) GetCurAvatar() *spb.AvatarBin

func (*GamePlayer) GetCurBattle added in v1.2.2

func (g *GamePlayer) GetCurBattle() *CurBattle

func (*GamePlayer) GetCurChallenge added in v1.2.2

func (g *GamePlayer) GetCurChallenge() *spb.CurChallenge

func (*GamePlayer) GetCurChallengeBuff added in v1.2.2

func (g *GamePlayer) GetCurChallengeBuff() []*proto.BattleBuff

func (*GamePlayer) GetCurChallengeBuffId added in v1.2.2

func (g *GamePlayer) GetCurChallengeBuffId() uint32

func (*GamePlayer) GetCurChallengeCsReq

func (g *GamePlayer) GetCurChallengeCsReq(payloadMsg []byte)

func (*GamePlayer) GetCurChallengeKillMonster added in v1.2.2

func (g *GamePlayer) GetCurChallengeKillMonster() uint32

func (*GamePlayer) GetCurChallengeMonsterNum added in v1.2.2

func (g *GamePlayer) GetCurChallengeMonsterNum() uint32

func (*GamePlayer) GetCurChallengeStoryInfo added in v1.2.2

func (g *GamePlayer) GetCurChallengeStoryInfo() *proto.ChallengeStoryInfo

添加自选的关卡buff

func (*GamePlayer) GetCurEntryId added in v1.2.2

func (g *GamePlayer) GetCurEntryId() uint32

func (*GamePlayer) GetCurLayerInfo added in v1.3.1

func (g *GamePlayer) GetCurLayerInfo() *spb.LayerInfo

func (*GamePlayer) GetCurLineUp added in v1.2.1

func (g *GamePlayer) GetCurLineUp() *spb.Line

func (*GamePlayer) GetCurRaidInfo added in v1.3.1

func (g *GamePlayer) GetCurRaidInfo() *spb.RaidInfo

func (*GamePlayer) GetCurRogue added in v1.2.3

func (g *GamePlayer) GetCurRogue() *spb.CurRogue

func (*GamePlayer) GetCurRogueBuff added in v1.2.3

func (g *GamePlayer) GetCurRogueBuff() []*proto.BattleBuff

func (*GamePlayer) GetCurRogueRoom added in v1.2.3

func (g *GamePlayer) GetCurRogueRoom() *spb.RogueRoom

func (*GamePlayer) GetCurRogueRoomId added in v1.2.3

func (g *GamePlayer) GetCurRogueRoomId() uint32

func (*GamePlayer) GetCurRogueTourn added in v1.3.1

func (g *GamePlayer) GetCurRogueTourn() *spb.CurRogueTourn

func (*GamePlayer) GetCurRogueTournFormula added in v1.3.1

func (g *GamePlayer) GetCurRogueTournFormula() []uint32

func (*GamePlayer) GetCurRogueTournRoom added in v1.3.1

func (g *GamePlayer) GetCurRogueTournRoom() *spb.RogueTournRoomInfo

func (*GamePlayer) GetDailyActiveInfoCsReq

func (g *GamePlayer) GetDailyActiveInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetDataVersion added in v1.2.1

func (g *GamePlayer) GetDataVersion() uint32

func (*GamePlayer) GetDbGacha

func (g *GamePlayer) GetDbGacha(gachaId uint32) *spb.GachaNum

func (*GamePlayer) GetDbRogue

func (g *GamePlayer) GetDbRogue() *spb.Rogue

func (*GamePlayer) GetDbRogueArea

func (g *GamePlayer) GetDbRogueArea(areaId uint32) *spb.RogueArea

func (*GamePlayer) GetDelSceneGroupRefreshInfo added in v1.2.2

func (g *GamePlayer) GetDelSceneGroupRefreshInfo(mem []uint32) []*proto.GroupRefreshInfo

删除怪物

func (*GamePlayer) GetEntity added in v1.2.2

func (g *GamePlayer) GetEntity(groupID uint32) map[uint32]EntityAll

func (*GamePlayer) GetEntityById added in v1.2.2

func (g *GamePlayer) GetEntityById(id uint32) EntityAll

func (*GamePlayer) GetEntryId added in v1.2.2

func (g *GamePlayer) GetEntryId(t EntityAll) uint32

func (*GamePlayer) GetEquipment

func (g *GamePlayer) GetEquipment(uniqueId uint32) *proto.Equipment

func (*GamePlayer) GetEquipmentById added in v1.2.2

func (g *GamePlayer) GetEquipmentById(id uint32) *spb.Equipment

func (*GamePlayer) GetEquipmentMap added in v1.2.2

func (g *GamePlayer) GetEquipmentMap() map[uint32]*spb.Equipment

func (*GamePlayer) GetExtraScoreInfo added in v1.3.0

func (g *GamePlayer) GetExtraScoreInfo() *proto.ExtraScoreInfo

func (*GamePlayer) GetFarmStageGachaInfoCsReq

func (g *GamePlayer) GetFarmStageGachaInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetFinishMainMissionList added in v1.2.2

func (g *GamePlayer) GetFinishMainMissionList() map[uint32]*spb.MissionInfo

func (*GamePlayer) GetFinishRaidInfo added in v1.3.1

func (g *GamePlayer) GetFinishRaidInfo(raid uint32) *spb.RaidInfo

func (*GamePlayer) GetFinishRaidMap added in v1.3.1

func (g *GamePlayer) GetFinishRaidMap() map[uint32]*spb.RaidInfo

func (*GamePlayer) GetFinishSubMainMissionById added in v1.2.2

func (g *GamePlayer) GetFinishSubMainMissionById(id uint32) *spb.MissionInfo

func (*GamePlayer) GetFinishSubMainMissionList added in v1.2.2

func (g *GamePlayer) GetFinishSubMainMissionList() map[uint32]*spb.MissionInfo

func (*GamePlayer) GetFirstTalkByPerformanceNpcCsReq

func (g *GamePlayer) GetFirstTalkByPerformanceNpcCsReq(payloadMsg []byte)

func (*GamePlayer) GetFirstTalkNpcCsReq

func (g *GamePlayer) GetFirstTalkNpcCsReq(payloadMsg []byte)

func (*GamePlayer) GetFriend added in v1.2.2

func (g *GamePlayer) GetFriend() *spb.PlayerFriend

func (*GamePlayer) GetFriendApplyInfo added in v1.2.2

func (g *GamePlayer) GetFriendApplyInfo(receiveApply *spb.ReceiveApply) *proto.FriendApplyInfo

func (*GamePlayer) GetFriendApplyListInfoCsReq added in v1.2.2

func (g *GamePlayer) GetFriendApplyListInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetFriendByUid added in v1.2.2

func (g *GamePlayer) GetFriendByUid(uid uint32) *spb.Friend

func (*GamePlayer) GetFriendList added in v1.2.2

func (g *GamePlayer) GetFriendList() map[uint32]*spb.Friend

func (*GamePlayer) GetFriendListInfoCsReq

func (g *GamePlayer) GetFriendListInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetFriendSimpleInfo added in v1.2.2

func (g *GamePlayer) GetFriendSimpleInfo(uid uint32) *proto.FriendSimpleInfo

func (*GamePlayer) GetGacha

func (g *GamePlayer) GetGacha() *spb.Gacha

func (*GamePlayer) GetGameAeonInfo added in v1.2.3

func (g *GamePlayer) GetGameAeonInfo() *proto.GameAeonInfo

func (*GamePlayer) GetGameMiracleInfo added in v1.2.3

func (g *GamePlayer) GetGameMiracleInfo() *proto.GameMiracleInfo

func (*GamePlayer) GetGroupInfoByGroupID added in v1.2.2

func (g *GamePlayer) GetGroupInfoByGroupID(groupID uint32) *GroupInfo

func (*GamePlayer) GetGroupState added in v1.4.0

func (g *GamePlayer) GetGroupState(db *spb.BlockBin, groupId uint32) uint32

func (*GamePlayer) GetHeadIcon added in v1.2.1

func (g *GamePlayer) GetHeadIcon() uint32

func (*GamePlayer) GetHeadIconList

func (g *GamePlayer) GetHeadIconList() []uint32

func (*GamePlayer) GetHealPoolInfo added in v1.3.1

func (g *GamePlayer) GetHealPoolInfo() *proto.HealPoolInfo

func (*GamePlayer) GetInspirationCircuitInfo added in v1.3.0

func (g *GamePlayer) GetInspirationCircuitInfo() *proto.InspirationCircuitInfo

func (*GamePlayer) GetIsProficientPlayer added in v1.2.2

func (g *GamePlayer) GetIsProficientPlayer() bool

func (*GamePlayer) GetItem

func (g *GamePlayer) GetItem() *spb.Item

func (*GamePlayer) GetKeywordUnlockInfo added in v1.3.1

func (g *GamePlayer) GetKeywordUnlockInfo() *proto.KeywordUnlockValue

func (*GamePlayer) GetLevel added in v1.2.1

func (g *GamePlayer) GetLevel() uint32

func (*GamePlayer) GetLevelRewardCsReq added in v1.3.1

func (g *GamePlayer) GetLevelRewardCsReq(payloadMsg []byte)

func (*GamePlayer) GetLevelRewardTakenListCsReq added in v1.3.1

func (g *GamePlayer) GetLevelRewardTakenListCsReq(payloadMsg []byte)

func (*GamePlayer) GetLineUp

func (g *GamePlayer) GetLineUp() *spb.LineUp

func (*GamePlayer) GetLineUpById

func (g *GamePlayer) GetLineUpById(index uint32) *spb.Line

func (*GamePlayer) GetLineUpMp added in v1.2.2

func (g *GamePlayer) GetLineUpMp() uint32

func (*GamePlayer) GetLineUpPb

func (g *GamePlayer) GetLineUpPb(db *spb.Line) *proto.LineupInfo

func (*GamePlayer) GetLineupAvatar added in v1.3.1

func (g *GamePlayer) GetLineupAvatar(avatarId, index uint32) *proto.LineupAvatar

func (*GamePlayer) GetLineupAvatarData added in v1.3.1

func (g *GamePlayer) GetLineupAvatarData(avatarId, index uint32) *proto.LineupAvatarData

func (*GamePlayer) GetLineupAvatarDataCsReq added in v1.3.1

func (g *GamePlayer) GetLineupAvatarDataCsReq(payloadMsg []byte)

func (*GamePlayer) GetLineupAvatarDataList added in v1.3.1

func (g *GamePlayer) GetLineupAvatarDataList(db *spb.Line) []*proto.LineupAvatarData

func (*GamePlayer) GetLoadedGroup added in v1.2.2

func (g *GamePlayer) GetLoadedGroup() map[uint32]*GroupInfo

func (*GamePlayer) GetLoginActivity

func (g *GamePlayer) GetLoginActivity() map[uint32]uint32

func (*GamePlayer) GetLoginActivityCsReq

func (g *GamePlayer) GetLoginActivityCsReq(payloadMsg []byte)

func (*GamePlayer) GetMail added in v1.2.2

func (g *GamePlayer) GetMail() *spb.Mail

func (*GamePlayer) GetMailById added in v1.2.2

func (g *GamePlayer) GetMailById(id uint32) *spb.MailDts

func (*GamePlayer) GetMailCsReq

func (g *GamePlayer) GetMailCsReq(payloadMsg []byte)

func (*GamePlayer) GetMailList added in v1.2.3

func (g *GamePlayer) GetMailList() map[uint32]*spb.MailDts

func (*GamePlayer) GetMainMission added in v1.2.2

func (g *GamePlayer) GetMainMission() *spb.MainMission

func (*GamePlayer) GetMainMissionCustomValueCsReq added in v1.3.1

func (g *GamePlayer) GetMainMissionCustomValueCsReq(payloadMsg []byte)

func (*GamePlayer) GetMainMissionList added in v1.2.2

func (g *GamePlayer) GetMainMissionList() map[uint32]*spb.MissionInfo

func (*GamePlayer) GetMaterialById added in v1.2.2

func (g *GamePlayer) GetMaterialById(id uint32) uint32

func (*GamePlayer) GetMaterialMap added in v1.2.2

func (g *GamePlayer) GetMaterialMap() map[uint32]uint32

func (*GamePlayer) GetMem added in v1.2.2

func (g *GamePlayer) GetMem(isMem []uint32, mpem *MPEM)

func (*GamePlayer) GetMessageGroup added in v1.2.2

func (g *GamePlayer) GetMessageGroup() map[uint32]*spb.MessageGroup

func (*GamePlayer) GetMessageGroupByContactId added in v1.2.2

func (g *GamePlayer) GetMessageGroupByContactId(contactId uint32) *spb.MessageGroup

func (*GamePlayer) GetMission added in v1.2.2

func (g *GamePlayer) GetMission() *spb.Mission

func (*GamePlayer) GetMissionDataCsReq added in v1.2.2

func (g *GamePlayer) GetMissionDataCsReq(payloadMsg []byte)

func (*GamePlayer) GetMissionEventDataCsReq

func (g *GamePlayer) GetMissionEventDataCsReq(payloadMsg []byte)

func (*GamePlayer) GetMissionStatusBySceneInfo added in v1.3.1

func (g *GamePlayer) GetMissionStatusBySceneInfo(foorMap map[uint32]*gdconf.LevelGroup) *proto.MissionStatusBySceneInfo

func (*GamePlayer) GetMonsterEntityById added in v1.2.2

func (g *GamePlayer) GetMonsterEntityById(id uint32) *MonsterEntity

func (*GamePlayer) GetMultiPathAvatar added in v1.3.1

func (g *GamePlayer) GetMultiPathAvatar(avatarId uint32) *spb.MultiPathAvatarInfo

获取命途

func (*GamePlayer) GetMultiPathAvatarInfo added in v1.4.0

func (g *GamePlayer) GetMultiPathAvatarInfo(avatarId uint32) []*proto.MultiPathAvatarInfo

func (*GamePlayer) GetMultiPathAvatarInfoCsReq added in v1.4.0

func (g *GamePlayer) GetMultiPathAvatarInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetNPCByID

func (g *GamePlayer) GetNPCByID(entityGroupList *proto.SceneEntityGroupInfo, sceneGroup *gdconf.GoppLevelGroup) *proto.SceneEntityGroupInfo

func (*GamePlayer) GetNPCMonsterByID

func (g *GamePlayer) GetNPCMonsterByID(entityGroupList *proto.SceneEntityGroupInfo, sceneGroup *gdconf.GoppLevelGroup) *proto.SceneEntityGroupInfo

func (*GamePlayer) GetNextGameObjectGuid

func (g *GamePlayer) GetNextGameObjectGuid() uint32

func (*GamePlayer) GetNextRogueTournRoomType added in v1.3.1

func (g *GamePlayer) GetNextRogueTournRoomType(curRoomIndex, curTypeId uint32) uint32

func (*GamePlayer) GetNickname added in v1.2.1

func (g *GamePlayer) GetNickname() string

func (*GamePlayer) GetNoLoadedGroup added in v1.2.2

func (g *GamePlayer) GetNoLoadedGroup() map[uint32]*GroupInfo

func (*GamePlayer) GetNpcMessageGroupCsReq added in v1.2.2

func (g *GamePlayer) GetNpcMessageGroupCsReq(payloadMsg []byte)

func (*GamePlayer) GetNpcStatusCsReq added in v1.2.3

func (g *GamePlayer) GetNpcStatusCsReq(payloadMsg []byte)

func (*GamePlayer) GetNpcTakenRewardCsReq

func (g *GamePlayer) GetNpcTakenRewardCsReq(payloadMsg []byte)

func (*GamePlayer) GetOnLineAvatarBuff added in v1.2.3

func (g *GamePlayer) GetOnLineAvatarBuff() map[uint32]*OnLineAvatarBuff

func (*GamePlayer) GetOnLineAvatarBuffById added in v1.2.3

func (g *GamePlayer) GetOnLineAvatarBuffById(id uint32) *OnLineAvatarBuff

func (*GamePlayer) GetOnlineData added in v1.2.2

func (g *GamePlayer) GetOnlineData() *OnlineData

func (*GamePlayer) GetPlayerBasicBriefData added in v1.2.2

func (g *GamePlayer) GetPlayerBasicBriefData(uid uint32) *spb.PlayerBasicBriefData

func (*GamePlayer) GetPlayerDateByDb added in v1.2.2

func (g *GamePlayer) GetPlayerDateByDb()

拉取账户数据

func (*GamePlayer) GetPlayerDetailInfo added in v1.2.2

func (g *GamePlayer) GetPlayerDetailInfo(uid uint32) *proto.PlayerDetailInfo

func (*GamePlayer) GetPlayerDetailInfoCsReq added in v1.2.2

func (g *GamePlayer) GetPlayerDetailInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetPlayerSimpleInfo added in v1.2.2

func (g *GamePlayer) GetPlayerSimpleInfo(uid uint32) *proto.PlayerSimpleInfo

func (*GamePlayer) GetPos

func (g *GamePlayer) GetPos() *spb.VectorBin

func (*GamePlayer) GetPosPb added in v1.2.2

func (g *GamePlayer) GetPosPb() *proto.Vector

func (*GamePlayer) GetPrivateChatHistoryCsReq

func (g *GamePlayer) GetPrivateChatHistoryCsReq(payloadMsg []byte)

func (*GamePlayer) GetProbability

func (g *GamePlayer) GetProbability(gachaId uint32) (uint32, uint32)

func (*GamePlayer) GetPropByID

func (g *GamePlayer) GetPropByID(entityGroupList *proto.SceneEntityGroupInfo, sceneGroup *gdconf.GoppLevelGroup, db *spb.BlockBin, entryId uint32) *proto.SceneEntityGroupInfo

func (*GamePlayer) GetPropEntity added in v1.2.2

func (g *GamePlayer) GetPropEntity(groupId, instId uint32) *PropEntity

func (*GamePlayer) GetPropEntityById added in v1.2.2

func (g *GamePlayer) GetPropEntityById(id uint32) *PropEntity

func (*GamePlayer) GetPropState added in v1.2.2

func (g *GamePlayer) GetPropState(db *spb.BlockBin, groupId, propId uint32, state string) uint32

func (*GamePlayer) GetProtoAvatarById added in v1.2.1

func (g *GamePlayer) GetProtoAvatarById(avatarId uint32) *proto.Avatar

func (*GamePlayer) GetProtoBattleAvatar added in v1.2.1

func (g *GamePlayer) GetProtoBattleAvatar(bAList map[uint32]*BattleAvatar) ([]*proto.BattleAvatar, []*proto.BattleBuff)

添加战斗角色列表

func (*GamePlayer) GetProtoBattleRelicById added in v1.2.1

func (g *GamePlayer) GetProtoBattleRelicById(uniqueId uint32) *proto.BattleRelic

func (*GamePlayer) GetProtoRelicById added in v1.2.1

func (g *GamePlayer) GetProtoRelicById(uniqueId uint32) *proto.Relic

func (*GamePlayer) GetQuestDataCsReq

func (g *GamePlayer) GetQuestDataCsReq(payloadMsg []byte)

func (*GamePlayer) GetRaid added in v1.3.1

func (g *GamePlayer) GetRaid() *spb.Raid

func (*GamePlayer) GetRaidInfo added in v1.3.1

func (g *GamePlayer) GetRaidInfo(raid uint32) *spb.RaidInfo

func (*GamePlayer) GetRaidInfoCsReq added in v1.3.1

func (g *GamePlayer) GetRaidInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetRaidMap added in v1.3.1

func (g *GamePlayer) GetRaidMap() map[uint32]*spb.RaidInfo

func (*GamePlayer) GetRaidSceneInfo added in v1.3.1

func (g *GamePlayer) GetRaidSceneInfo(entryId uint32, pos, rot *proto.Vector, lineUp *spb.Line) *proto.SceneInfo

func (*GamePlayer) GetRecvApplyFriend added in v1.2.2

func (g *GamePlayer) GetRecvApplyFriend() map[uint32]*spb.ReceiveApply

获取好友申请每次都去redis里取

func (*GamePlayer) GetRelic added in v1.2.3

func (g *GamePlayer) GetRelic(uniqueId uint32) *proto.Relic

func (*GamePlayer) GetRelicById

func (g *GamePlayer) GetRelicById(id uint32) *spb.Relic

func (*GamePlayer) GetRelicMap added in v1.2.2

func (g *GamePlayer) GetRelicMap() map[uint32]*spb.Relic

func (*GamePlayer) GetRewardTakenLevelList added in v1.3.1

func (g *GamePlayer) GetRewardTakenLevelList() []uint32

func (*GamePlayer) GetRogueAdventureRoomInfoCsReq added in v1.3.1

func (g *GamePlayer) GetRogueAdventureRoomInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetRogueAeonInfo added in v1.2.3

func (g *GamePlayer) GetRogueAeonInfo() *proto.RogueAeonInfo

func (*GamePlayer) GetRogueAreaInfo added in v1.2.3

func (g *GamePlayer) GetRogueAreaInfo() *proto.RogueAreaInfo

func (*GamePlayer) GetRogueBuff

func (g *GamePlayer) GetRogueBuff() uint32

func (*GamePlayer) GetRogueBuffById added in v1.2.3

func (g *GamePlayer) GetRogueBuffById(id uint32) *spb.RogueBuff

func (*GamePlayer) GetRogueBuffByType added in v1.2.3

func (g *GamePlayer) GetRogueBuffByType() map[uint32]*RogueBuffByType

func (*GamePlayer) GetRogueBuffEnhanceInfoCsReq added in v1.3.0

func (g *GamePlayer) GetRogueBuffEnhanceInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetRogueBuffInfo added in v1.2.3

func (g *GamePlayer) GetRogueBuffInfo() *proto.RogueBuffInfo

func (*GamePlayer) GetRogueBuffList added in v1.2.3

func (g *GamePlayer) GetRogueBuffList() map[uint32]*spb.RogueBuff

func (*GamePlayer) GetRogueBuffNum added in v1.2.3

func (g *GamePlayer) GetRogueBuffNum() uint32

func (*GamePlayer) GetRogueCommonPendingAction added in v1.2.3

func (g *GamePlayer) GetRogueCommonPendingAction() *proto.RogueCommonPendingAction

func (*GamePlayer) GetRogueCurrentInfo added in v1.2.3

func (g *GamePlayer) GetRogueCurrentInfo() *proto.RogueCurrentInfo

func (*GamePlayer) GetRogueHandbookDataCsReq added in v1.2.1

func (g *GamePlayer) GetRogueHandbookDataCsReq(payloadMsg []byte)

func (*GamePlayer) GetRogueHistory added in v1.2.3

func (g *GamePlayer) GetRogueHistory() map[uint32]*spb.RogueHistory

func (*GamePlayer) GetRogueHistoryById added in v1.2.3

func (g *GamePlayer) GetRogueHistoryById(id uint32) (*spb.RogueHistory, bool)

func (*GamePlayer) GetRogueInfo

func (g *GamePlayer) GetRogueInfo() *proto.RogueInfo

func (*GamePlayer) GetRogueInfoCsReq

func (g *GamePlayer) GetRogueInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetRogueInfoOnline added in v1.2.3

func (g *GamePlayer) GetRogueInfoOnline() *RogueInfoOnline

func (*GamePlayer) GetRogueInitialScoreCsReq added in v1.2.3

func (g *GamePlayer) GetRogueInitialScoreCsReq(payloadMsg []byte)

func (*GamePlayer) GetRogueLineupInfo added in v1.2.3

func (g *GamePlayer) GetRogueLineupInfo() *proto.RogueLineupInfo

func (*GamePlayer) GetRogueMap

func (g *GamePlayer) GetRogueMap() *proto.RogueMapInfo

func (*GamePlayer) GetRogueMapRotateInfo added in v1.3.0

func (g *GamePlayer) GetRogueMapRotateInfo(roomId uint32) *proto.RogueMapRotateInfo

func (*GamePlayer) GetRogueNPCMonsterByID

func (g *GamePlayer) GetRogueNPCMonsterByID(entityGroupList *proto.SceneEntityGroupInfo, sceneGroup *gdconf.GoppLevelGroup, ida uint32)

func (*GamePlayer) GetRoguePropByID

func (g *GamePlayer) GetRoguePropByID(entityGroupList *proto.SceneEntityGroupInfo, sceneGroup *gdconf.GoppLevelGroup)

func (*GamePlayer) GetRogueRoom added in v1.2.3

func (g *GamePlayer) GetRogueRoom() map[uint32]*spb.RogueRoom

func (*GamePlayer) GetRogueScene

func (g *GamePlayer) GetRogueScene(roomId uint32) *proto.SceneInfo

func (*GamePlayer) GetRogueScoreRewardInfo added in v1.2.3

func (g *GamePlayer) GetRogueScoreRewardInfo() *proto.RogueScoreRewardInfo

func (*GamePlayer) GetRogueScoreRewardInfoCsReq

func (g *GamePlayer) GetRogueScoreRewardInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetRogueSeasonInfo added in v1.2.3

func (g *GamePlayer) GetRogueSeasonInfo() *proto.RogueSeasonInfo

func (*GamePlayer) GetRogueTalentInfoCsReq

func (g *GamePlayer) GetRogueTalentInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetRogueTourn added in v1.3.0

func (g *GamePlayer) GetRogueTourn() *spb.RogueTourn

func (*GamePlayer) GetRogueTournAreaInfo added in v1.3.0

func (g *GamePlayer) GetRogueTournAreaInfo() []*proto.RogueTournAreaInfo

func (*GamePlayer) GetRogueTournBuffInfo added in v1.3.1

func (g *GamePlayer) GetRogueTournBuffInfo() *proto.ChessRogueBuffInfo

func (*GamePlayer) GetRogueTournCurAreaInfo added in v1.3.1

func (g *GamePlayer) GetRogueTournCurAreaInfo() *proto.RogueTournCurAreaInfo

func (*GamePlayer) GetRogueTournCurInfo added in v1.3.0

func (g *GamePlayer) GetRogueTournCurInfo() *proto.RogueTournCurInfo

func (*GamePlayer) GetRogueTournDifficultyInfo added in v1.3.0

func (g *GamePlayer) GetRogueTournDifficultyInfo() []*proto.RogueTournDifficultyInfo

func (*GamePlayer) GetRogueTournExpInfo added in v1.3.0

func (g *GamePlayer) GetRogueTournExpInfo() *proto.RogueTournExpInfo

func (*GamePlayer) GetRogueTournFormulaInfo added in v1.3.1

func (g *GamePlayer) GetRogueTournFormulaInfo() *proto.RogueTournFormulaInfo

func (*GamePlayer) GetRogueTournHandbookInfo added in v1.3.1

func (g *GamePlayer) GetRogueTournHandbookInfo() *proto.RogueTournHandbookInfo

func (*GamePlayer) GetRogueTournLayerInfo added in v1.3.1

func (g *GamePlayer) GetRogueTournLayerInfo() *proto.RogueTournLevelInfo

func (*GamePlayer) GetRogueTournNPCMonsterByID added in v1.3.1

func (g *GamePlayer) GetRogueTournNPCMonsterByID(entityGroupList *proto.SceneEntityGroupInfo, sceneGroup *gdconf.GoppLevelGroup, npcMonster map[uint32]*gdconf.RogueTournMonsterInfo)

func (*GamePlayer) GetRogueTournPropByID added in v1.3.1

func (g *GamePlayer) GetRogueTournPropByID(entityGroupList *proto.SceneEntityGroupInfo, sceneGroup *gdconf.GoppLevelGroup)

func (*GamePlayer) GetRogueTournScene added in v1.3.0

func (g *GamePlayer) GetRogueTournScene(roomId uint32) *proto.SceneInfo

func (*GamePlayer) GetRogueTournSeasonInfo added in v1.3.0

func (g *GamePlayer) GetRogueTournSeasonInfo() *proto.RogueTournSeasonInfo

func (*GamePlayer) GetRogueVirtualItem added in v1.2.3

func (g *GamePlayer) GetRogueVirtualItem() *proto.RogueVirtualItem

func (*GamePlayer) GetRollShopInfoCsReq added in v1.4.0

func (g *GamePlayer) GetRollShopInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetRoomBySiteId added in v1.2.3

func (g *GamePlayer) GetRoomBySiteId(siteId uint32) *spb.RogueRoom

func (*GamePlayer) GetRot

func (g *GamePlayer) GetRot() *spb.VectorBin

func (*GamePlayer) GetRotPb added in v1.2.2

func (g *GamePlayer) GetRotPb() *proto.Vector

func (*GamePlayer) GetRoundsLimit added in v1.2.2

func (g *GamePlayer) GetRoundsLimit() uint32

获取回合限制

func (*GamePlayer) GetScene

func (g *GamePlayer) GetScene() *spb.Scene

func (*GamePlayer) GetSceneAvatarByLineUP added in v1.2.2

func (g *GamePlayer) GetSceneAvatarByLineUP(entityGroupList *proto.SceneEntityGroupInfo, lineUp *spb.Line, leaderEntityId uint32, pos, rot *proto.Vector)

func (*GamePlayer) GetSceneAvatarId

func (g *GamePlayer) GetSceneAvatarId() uint32

func (*GamePlayer) GetSceneBattleInfo added in v1.2.2

func (g *GamePlayer) GetSceneBattleInfo(mem []uint32, lineUp *spb.Line) (*proto.SceneBattleInfo, *BattleBackup)

场景战斗

func (*GamePlayer) GetSceneGroupRefreshInfoByLineUP added in v1.2.2

func (g *GamePlayer) GetSceneGroupRefreshInfoByLineUP(lineUp *spb.Line, pos, rot *proto.Vector) []*proto.GroupRefreshInfo

func (*GamePlayer) GetSceneInfo

func (g *GamePlayer) GetSceneInfo(entryId uint32, pos, rot *proto.Vector, lineUp *spb.Line) *proto.SceneInfo

func (*GamePlayer) GetSceneMap added in v1.2.2

func (g *GamePlayer) GetSceneMap() *SceneMap

func (*GamePlayer) GetSceneMonsterWave added in v1.2.2

func (g *GamePlayer) GetSceneMonsterWave(mem []uint32) ([]*proto.SceneMonsterWave, uint32, []uint32)

func (*GamePlayer) GetSceneMonsterWaveByStageID added in v1.2.2

func (g *GamePlayer) GetSceneMonsterWaveByStageID(stageID uint32) ([]uint32, []*proto.SceneMonsterWave)

func (*GamePlayer) GetSecretKeyInfoCsReq added in v1.2.2

func (g *GamePlayer) GetSecretKeyInfoCsReq(payloadMsg []byte)

func (*GamePlayer) GetShopListCsReq

func (g *GamePlayer) GetShopListCsReq(payloadMsg []byte)

func (*GamePlayer) GetSignature added in v1.2.2

func (g *GamePlayer) GetSignature() string

func (*GamePlayer) GetSkillTreeList

func (g *GamePlayer) GetSkillTreeList(avatarId uint32) []*spb.AvatarSkillBin

获取技能

func (*GamePlayer) GetSpringRecoverConfig added in v1.3.1

func (g *GamePlayer) GetSpringRecoverConfig() *proto.SpringRecoverConfig

func (*GamePlayer) GetSpringRecoverDataCsReq added in v1.3.0

func (g *GamePlayer) GetSpringRecoverDataCsReq(payloadMsg []byte)

func (*GamePlayer) GetSubMainMissionById added in v1.2.2

func (g *GamePlayer) GetSubMainMissionById(id uint32) *spb.MissionInfo

func (*GamePlayer) GetSubMainMissionList added in v1.2.2

func (g *GamePlayer) GetSubMainMissionList() map[uint32]*spb.MissionInfo

func (*GamePlayer) GetTrialActivity

func (g *GamePlayer) GetTrialActivity() []uint32

func (*GamePlayer) GetTrialActivityDataCsReq

func (g *GamePlayer) GetTrialActivityDataCsReq(payloadMsg []byte)

func (*GamePlayer) GetTrialActivityScene added in v1.3.1

func (g *GamePlayer) GetTrialActivityScene() *proto.SceneInfo

func (*GamePlayer) GetTrialAvatar added in v1.2.2

func (g *GamePlayer) GetTrialAvatar(trialAvatarId uint32)

func (*GamePlayer) GetTrialBattleAvatar added in v1.3.1

func (g *GamePlayer) GetTrialBattleAvatar(avatarId, index uint32) *proto.BattleAvatar

试用角色

func (*GamePlayer) GetTrialLineupAvatar added in v1.3.1

func (g *GamePlayer) GetTrialLineupAvatar(avatarId, index uint32) *proto.LineupAvatar

func (*GamePlayer) GetTrialLineupAvatarData added in v1.3.1

func (g *GamePlayer) GetTrialLineupAvatarData(avatarId, index uint32) *proto.LineupAvatarData

func (*GamePlayer) GetTutorial added in v1.2.2

func (g *GamePlayer) GetTutorial() map[uint32]*spb.TutorialInfo

func (*GamePlayer) GetTutorialCsReq added in v1.2.2

func (g *GamePlayer) GetTutorialCsReq(payloadMsg []byte)

func (*GamePlayer) GetTutorialDb added in v1.2.2

func (g *GamePlayer) GetTutorialDb() *spb.TutorialDb

func (*GamePlayer) GetTutorialGuide added in v1.2.2

func (g *GamePlayer) GetTutorialGuide() map[uint32]*spb.TutorialInfo

func (*GamePlayer) GetTutorialGuideCsReq added in v1.2.2

func (g *GamePlayer) GetTutorialGuideCsReq(payloadMsg []byte)

func (*GamePlayer) GetUnlockFormulaList added in v1.3.1

func (g *GamePlayer) GetUnlockFormulaList() []uint32

func (*GamePlayer) GetUnlockTeleportCsReq

func (g *GamePlayer) GetUnlockTeleportCsReq(payloadMsg []byte)

func (*GamePlayer) GetUpdatedArchiveDataCsReq

func (g *GamePlayer) GetUpdatedArchiveDataCsReq(payloadMsg []byte)

func (*GamePlayer) GetVideoVersionKeyCsReq added in v1.2.2

func (g *GamePlayer) GetVideoVersionKeyCsReq(payloadMsg []byte)

func (*GamePlayer) GetWorldLevel added in v1.2.1

func (g *GamePlayer) GetWorldLevel() uint32

func (*GamePlayer) GmGive

func (g *GamePlayer) GmGive(payloadMsg pb.Message)

添加物品

func (*GamePlayer) GmMaxCurAvatar added in v1.2.2

func (g *GamePlayer) GmMaxCurAvatar(payloadMsg pb.Message)

角色一键满级

func (*GamePlayer) GmMission added in v1.2.3

func (g *GamePlayer) GmMission(req *spb.GmMission)

func (*GamePlayer) GmWorldLevel

func (g *GamePlayer) GmWorldLevel(payloadMsg pb.Message)

设置世界等级

func (*GamePlayer) GroupStateChangeCsReq added in v1.3.1

func (g *GamePlayer) GroupStateChangeCsReq(payloadMsg []byte)

func (*GamePlayer) HandleAvatarSkill added in v1.2.3

func (g *GamePlayer) HandleAvatarSkill(entityId uint32) (bool, bool)

func (*GamePlayer) HandleFriendCsReq added in v1.2.2

func (g *GamePlayer) HandleFriendCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetActivityScheduleConfigCsReq

func (g *GamePlayer) HandleGetActivityScheduleConfigCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetAllLineupDataCsReq

func (g *GamePlayer) HandleGetAllLineupDataCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetArchiveDataCsReq

func (g *GamePlayer) HandleGetArchiveDataCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetAssistHistoryCsReq

func (g *GamePlayer) HandleGetAssistHistoryCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetAvatarDataCsReq

func (g *GamePlayer) HandleGetAvatarDataCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetBagCsReq

func (g *GamePlayer) HandleGetBagCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetBasicInfoCsReq

func (g *GamePlayer) HandleGetBasicInfoCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetChallengeCsReq

func (g *GamePlayer) HandleGetChallengeCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetChatEmojiListCsReq

func (g *GamePlayer) HandleGetChatEmojiListCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetCurLineupDataCsReq

func (g *GamePlayer) HandleGetCurLineupDataCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetCurSceneInfoCsReq

func (g *GamePlayer) HandleGetCurSceneInfoCsReq(payloadMsg []byte)

客户端登录需要的包,不是传送的通知包

func (*GamePlayer) HandleGetEnteredSceneCsReq

func (g *GamePlayer) HandleGetEnteredSceneCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetFriendLoginInfoCsReq

func (g *GamePlayer) HandleGetFriendLoginInfoCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetGachaCeilingCsReq

func (g *GamePlayer) HandleGetGachaCeilingCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetGachaInfoCsReq

func (g *GamePlayer) HandleGetGachaInfoCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetJukeboxDataCsReq

func (g *GamePlayer) HandleGetJukeboxDataCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetMissionStatusCsReq

func (g *GamePlayer) HandleGetMissionStatusCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetPhoneDataCsReq

func (g *GamePlayer) HandleGetPhoneDataCsReq(payloadMsg []byte)

func (*GamePlayer) HandleGetPlayerBoardDataCsReq

func (g *GamePlayer) HandleGetPlayerBoardDataCsReq(payloadMsg []byte)

func (*GamePlayer) HandleJoinLineupCsReq

func (g *GamePlayer) HandleJoinLineupCsReq(payloadMsg []byte)

func (*GamePlayer) HandlePlayerHeartBeatCsReq added in v1.3.0

func (g *GamePlayer) HandlePlayerHeartBeatCsReq(payloadMsg []byte)

玩家ping包处理

func (*GamePlayer) HandlePlayerLoginCsReq

func (g *GamePlayer) HandlePlayerLoginCsReq(payloadMsg []byte)

func (*GamePlayer) HandlePlayerLoginFinishCsReq

func (g *GamePlayer) HandlePlayerLoginFinishCsReq(payloadMsg []byte)

func (*GamePlayer) HandlePlayerLoginScRsp added in v1.0.5

func (g *GamePlayer) HandlePlayerLoginScRsp()

func (*GamePlayer) HandleQueryProductInfoCsReq

func (g *GamePlayer) HandleQueryProductInfoCsReq(payloadMsg []byte)

func (*GamePlayer) HandleRogueCommonPendingActionCsReq

func (g *GamePlayer) HandleRogueCommonPendingActionCsReq(payloadMsg []byte)

func (*GamePlayer) HandleSwapLineupCsReq

func (g *GamePlayer) HandleSwapLineupCsReq(payloadMsg []byte)

func (*GamePlayer) HandleSwitchLineupIndexCsReq

func (g *GamePlayer) HandleSwitchLineupIndexCsReq(payloadMsg []byte)

func (*GamePlayer) HanldeGetSceneMapInfoCsReq

func (g *GamePlayer) HanldeGetSceneMapInfoCsReq(payloadMsg []byte)

func (*GamePlayer) HeliobusActivityDataCsReq added in v1.3.1

func (g *GamePlayer) HeliobusActivityDataCsReq(payloadMsg []byte)

func (*GamePlayer) IfLoadMap added in v1.2.2

func (g *GamePlayer) IfLoadMap(levelGroup *gdconf.GoppLevelGroup) bool

func (*GamePlayer) IfMissionLoadMap added in v1.3.1

func (g *GamePlayer) IfMissionLoadMap(levelGroup *gdconf.GoppLevelGroup, mainIsLoaded bool) bool

func (*GamePlayer) InspectMission added in v1.3.1

func (g *GamePlayer) InspectMission(finishSubMission []uint32)

任务检查

func (*GamePlayer) InspectionRedisAcceptApplyFriend added in v1.2.2

func (g *GamePlayer) InspectionRedisAcceptApplyFriend()

将redis里的好友加入mysql里

func (*GamePlayer) InteractPropCsReq

func (g *GamePlayer) InteractPropCsReq(payloadMsg []byte)

func (*GamePlayer) IsAcceptMainMission added in v1.3.1

func (g *GamePlayer) IsAcceptMainMission(mission *gdconf.MainMission, mainMissionList, finishMainMissionList map[uint32]*spb.MissionInfo) bool

func (*GamePlayer) IsNextChallenge added in v1.2.2

func (g *GamePlayer) IsNextChallenge() bool

func (*GamePlayer) LeaveChallengeCsReq

func (g *GamePlayer) LeaveChallengeCsReq(payloadMsg []byte)

func (*GamePlayer) LeaveRaidCsReq added in v1.3.1

func (g *GamePlayer) LeaveRaidCsReq(payloadMsg []byte)

func (*GamePlayer) LeaveRogueCsReq

func (g *GamePlayer) LeaveRogueCsReq(payloadMsg []byte)

func (*GamePlayer) LoginNotify

func (g *GamePlayer) LoginNotify()

登录通知包

func (*GamePlayer) LoginReady added in v1.2.2

func (g *GamePlayer) LoginReady()

1.检查是否有好友再redis里 2.任务检查 3.检查redis里是否有私人邮件

func (*GamePlayer) LoginReadyMission added in v1.2.3

func (g *GamePlayer) LoginReadyMission()

登录任务检查

func (*GamePlayer) MailReadItem added in v1.2.2

func (g *GamePlayer) MailReadItem(itemList []*database.Item) bool

TODO 邮件奖励兑换方法(拓展此处以支持更多奖励物品

func (*GamePlayer) MarkReadMailCsReq added in v1.2.2

func (g *GamePlayer) MarkReadMailCsReq(payloadMsg []byte)

func (*GamePlayer) MessageGroupPlayerSyncScNotify added in v1.2.2

func (g *GamePlayer) MessageGroupPlayerSyncScNotify(contactId uint32)

func (*GamePlayer) MessagePerformSectionFinish added in v1.2.2

func (g *GamePlayer) MessagePerformSectionFinish(sectionId uint32)

处理npc聊天完成

func (*GamePlayer) MissionCustomValue added in v1.3.1

func (g *GamePlayer) MissionCustomValue(subId uint32, customValueList []*spb.MissionCustomValue) bool

func (*GamePlayer) MissionEnterFloor added in v1.3.1

func (g *GamePlayer) MissionEnterFloor(id uint32) bool

MissionEnterFloor 传送任务

func (*GamePlayer) MissionGetItem added in v1.3.1

func (g *GamePlayer) MissionGetItem(itemId uint32)

func (*GamePlayer) MissionPropState added in v1.3.1

func (g *GamePlayer) MissionPropState(id uint32) bool

MissionPropState 状态任务

func (*GamePlayer) MissionRewardScNotify added in v1.3.1

func (g *GamePlayer) MissionRewardScNotify()

func (*GamePlayer) NewBasicBin added in v1.2.2

func (g *GamePlayer) NewBasicBin() *spb.PlayerBasicCompBin

func (*GamePlayer) NewCurBattle added in v1.2.2

func (g *GamePlayer) NewCurBattle() *CurBattle

func (*GamePlayer) NewCurChallenge added in v1.2.2

func (g *GamePlayer) NewCurChallenge()

这玩意是用来清空当前忘却之庭战斗的

func (*GamePlayer) NewCurRogue added in v1.3.1

func (g *GamePlayer) NewCurRogue()

func (*GamePlayer) NewCurRogueTourn added in v1.3.1

func (g *GamePlayer) NewCurRogueTourn(areaId uint32)

func (*GamePlayer) NewGetRogueBuffByType added in v1.2.3

func (g *GamePlayer) NewGetRogueBuffByType()

func (*GamePlayer) NewOnLineAvatarBuff added in v1.2.3

func (g *GamePlayer) NewOnLineAvatarBuff()

func (*GamePlayer) NewRaidInfo added in v1.3.1

func (g *GamePlayer) NewRaidInfo(raid uint32)

func (*GamePlayer) NewTrialLine added in v1.2.2

func (g *GamePlayer) NewTrialLine(trialList []uint32)

func (*GamePlayer) ObjectCaptureUpPropState added in v1.3.1

func (g *GamePlayer) ObjectCaptureUpPropState(db *spb.BlockBin, groupId, propId, state uint32)

func (*GamePlayer) PVEBattleResultCsReq

func (g *GamePlayer) PVEBattleResultCsReq(payloadMsg []byte)

func (*GamePlayer) PlayerPlayerSyncScNotify

func (g *GamePlayer) PlayerPlayerSyncScNotify()

角色状态改变时需要发送通知

func (*GamePlayer) PromoteAvatarCsReq

func (g *GamePlayer) PromoteAvatarCsReq(payloadMsg []byte)

func (*GamePlayer) PromoteEquipmentCsReq

func (g *GamePlayer) PromoteEquipmentCsReq(payloadMsg []byte)

func (*GamePlayer) PropSceneGroupRefreshScNotify added in v1.2.2

func (g *GamePlayer) PropSceneGroupRefreshScNotify(propEntityIdList []uint32, db *spb.BlockBin)

更新实体状态

func (*GamePlayer) QuitLineupCsReq

func (g *GamePlayer) QuitLineupCsReq(payloadMsg []byte)

func (*GamePlayer) QuitRogueCsReq

func (g *GamePlayer) QuitRogueCsReq(payloadMsg []byte)

func (*GamePlayer) RaidEnterSceneByServerScNotify added in v1.3.1

func (g *GamePlayer) RaidEnterSceneByServerScNotify(entryId uint32)

func (*GamePlayer) RaidInfoNotify added in v1.3.1

func (g *GamePlayer) RaidInfoNotify(raidID uint32)

func (*GamePlayer) RaidReward added in v1.3.1

func (g *GamePlayer) RaidReward(raidID, hardLevel uint32) []*proto.Item

func (*GamePlayer) RankUpAvatarCsReq

func (g *GamePlayer) RankUpAvatarCsReq(payloadMsg []byte)

func (*GamePlayer) RankUpEquipmentCsReq

func (g *GamePlayer) RankUpEquipmentCsReq(payloadMsg []byte)

func (*GamePlayer) ReadMail added in v1.2.2

func (g *GamePlayer) ReadMail(id uint32)

func (*GamePlayer) RecoverLine added in v1.2.2

func (g *GamePlayer) RecoverLine()

func (*GamePlayer) RegisterMessage

func (g *GamePlayer) RegisterMessage(cmdId uint16, payloadMsg []byte)

func (*GamePlayer) ReplaceLineupCsReq

func (g *GamePlayer) ReplaceLineupCsReq(payloadMsg []byte)

func (*GamePlayer) RoguePVEBattleResultCsReq

func (g *GamePlayer) RoguePVEBattleResultCsReq(req *proto.PVEBattleResultCsReq, monsterNum int)

模拟宇宙攻击事件结算

func (*GamePlayer) RogueTournEnterCsReq added in v1.3.1

func (g *GamePlayer) RogueTournEnterCsReq(payloadMsg []byte)

func (*GamePlayer) RogueTournEnterRoomCsReq added in v1.3.1

func (g *GamePlayer) RogueTournEnterRoomCsReq(payloadMsg []byte)

func (*GamePlayer) RogueTournGetMiscRealTimeDataCsReq added in v1.3.1

func (g *GamePlayer) RogueTournGetMiscRealTimeDataCsReq(payloadMsg []byte)

func (*GamePlayer) RogueTournGetPermanentTalentInfoCsReq added in v1.3.0

func (g *GamePlayer) RogueTournGetPermanentTalentInfoCsReq(payloadMsg []byte)

func (*GamePlayer) RogueTournLevelInfoUpdateScNotify added in v1.3.1

func (g *GamePlayer) RogueTournLevelInfoUpdateScNotify(layerIndex, roomIndex uint32)

房间切换通知

func (*GamePlayer) RogueTournQueryCsReq added in v1.3.0

func (g *GamePlayer) RogueTournQueryCsReq(payloadMsg []byte)

func (*GamePlayer) RogueTournSettleCsReq added in v1.3.1

func (g *GamePlayer) RogueTournSettleCsReq(payloadMsg []byte)

func (*GamePlayer) RogueTournStartCsReq added in v1.3.0

func (g *GamePlayer) RogueTournStartCsReq(payloadMsg []byte)

func (*GamePlayer) SceneByServerScNotify

func (g *GamePlayer) SceneByServerScNotify(entryId uint32, pos, rot *proto.Vector)

传送到指定位置

func (*GamePlayer) SceneCastSkillCostMpCsReq added in v1.4.0

func (g *GamePlayer) SceneCastSkillCostMpCsReq(payloadMsg []byte)

func (*GamePlayer) SceneCastSkillCsReq

func (g *GamePlayer) SceneCastSkillCsReq(payloadMsg []byte)

func (*GamePlayer) SceneCastSkillProp added in v1.2.2

func (g *GamePlayer) SceneCastSkillProp(pem *MPEM)

func (*GamePlayer) SceneEnterStageCsReq added in v1.2.2

func (g *GamePlayer) SceneEnterStageCsReq(payloadMsg []byte)

func (*GamePlayer) SceneEntityMoveCsReq

func (g *GamePlayer) SceneEntityMoveCsReq(payloadMsg []byte)

func (*GamePlayer) SceneGroupRefreshScNotify

func (g *GamePlayer) SceneGroupRefreshScNotify(index uint32)

func (*GamePlayer) ScenePlaneEventScNotify

func (g *GamePlayer) ScenePlaneEventScNotify(pileItem []*Material)

func (*GamePlayer) SearchPlayerCsReq added in v1.2.2

func (g *GamePlayer) SearchPlayerCsReq(payloadMsg []byte)

func (*GamePlayer) SellDelEquipment added in v1.3.1

func (g *GamePlayer) SellDelEquipment(uniqueId uint32) []*Material

func (*GamePlayer) SellDelRelic added in v1.3.1

func (g *GamePlayer) SellDelRelic(uniqueId uint32) []*Material

func (*GamePlayer) SellItemCsReq added in v1.2.2

func (g *GamePlayer) SellItemCsReq(payloadMsg []byte)

func (*GamePlayer) Send

func (g *GamePlayer) Send(cmdId uint16, playerMsg pb.Message)

func (*GamePlayer) SendMsgCsReq

func (g *GamePlayer) SendMsgCsReq(payloadMsg []byte)

func (*GamePlayer) ServerAnnounceNotify added in v1.2.2

func (g *GamePlayer) ServerAnnounceNotify()

飘窗通知

func (*GamePlayer) SetAvatarEquipRelic added in v1.2.2

func (g *GamePlayer) SetAvatarEquipRelic(avatarId, slot, relicId uint32)

func (*GamePlayer) SetAvatarMaxByDb added in v1.2.2

func (g *GamePlayer) SetAvatarMaxByDb(db *spb.AvatarBin)

func (*GamePlayer) SetAvatarPathCsReq added in v1.4.0

func (g *GamePlayer) SetAvatarPathCsReq(payloadMsg []byte)

func (*GamePlayer) SetBattleLineUp added in v1.3.0

func (g *GamePlayer) SetBattleLineUp(index uint32, avatarList []uint32)

func (*GamePlayer) SetBattleStatus added in v1.2.2

func (g *GamePlayer) SetBattleStatus(status spb.BattleType)

func (*GamePlayer) SetClientPausedCsReq

func (g *GamePlayer) SetClientPausedCsReq(payloadMsg []byte)

func (*GamePlayer) SetCurChallenge added in v1.2.2

func (g *GamePlayer) SetCurChallenge(challengeId uint32, storyInfo *proto.ChallengeBuffInfo) *spb.CurChallenge

func (*GamePlayer) SetCurChallengeKillMonster added in v1.2.2

func (g *GamePlayer) SetCurChallengeKillMonster(num uint32)

func (*GamePlayer) SetCurChallengeRoundCount added in v1.2.2

func (g *GamePlayer) SetCurChallengeRoundCount(rc uint32)

func (*GamePlayer) SetCurChallengeScore added in v1.2.2

func (g *GamePlayer) SetCurChallengeScore(score uint32)

func (*GamePlayer) SetCurChallengeStatus added in v1.2.2

func (g *GamePlayer) SetCurChallengeStatus(status spb.ChallengeStatus)

func (*GamePlayer) SetCurEntryId added in v1.2.2

func (g *GamePlayer) SetCurEntryId(id uint32)

func (*GamePlayer) SetFloorSavedValue added in v1.3.1

func (g *GamePlayer) SetFloorSavedValue(conf *gdconf.SubMission, finishAction *gdconf.FinishAction)

任务设置物品状态

func (*GamePlayer) SetGameplayBirthdayCsReq

func (g *GamePlayer) SetGameplayBirthdayCsReq(payloadMsg []byte)

func (*GamePlayer) SetGroupCustomSaveDataCsReq added in v1.4.0

func (g *GamePlayer) SetGroupCustomSaveDataCsReq(payloadMsg []byte)

func (*GamePlayer) SetGroupState added in v1.4.0

func (g *GamePlayer) SetGroupState(db *spb.BlockBin, groupId, groupState uint32)

func (*GamePlayer) SetHeadIconCsReq

func (g *GamePlayer) SetHeadIconCsReq(payloadMsg []byte)

func (*GamePlayer) SetLineupNameCsReq

func (g *GamePlayer) SetLineupNameCsReq(payloadMsg []byte)

func (*GamePlayer) SetMaterialById added in v1.2.3

func (g *GamePlayer) SetMaterialById(id, num uint32)

func (*GamePlayer) SetNickname added in v1.2.2

func (g *GamePlayer) SetNickname(name string)

func (*GamePlayer) SetNicknameCsReq

func (g *GamePlayer) SetNicknameCsReq(payloadMsg []byte)

func (*GamePlayer) SetPlayerInfoCsReq added in v1.2.2

func (g *GamePlayer) SetPlayerInfoCsReq(payloadMsg []byte)

func (*GamePlayer) SetPlayerPlayerBasicBriefData added in v1.2.2

func (g *GamePlayer) SetPlayerPlayerBasicBriefData(status spb.PlayerStatusType) bool

func (*GamePlayer) SetPos added in v1.2.2

func (g *GamePlayer) SetPos(x, y, z int32)

func (*GamePlayer) SetRaidLineUp added in v1.3.1

func (g *GamePlayer) SetRaidLineUp(req *proto.StartRaidCsReq, conf *gdconf.RaidConfig)

设置队伍

func (*GamePlayer) SetRot added in v1.2.2

func (g *GamePlayer) SetRot(x, y, z int32)

func (*GamePlayer) SetSignatureCsReq

func (g *GamePlayer) SetSignatureCsReq(payloadMsg []byte)

func (*GamePlayer) SetWorldLevel added in v1.2.2

func (g *GamePlayer) SetWorldLevel(worldLevel uint32)

func (*GamePlayer) SpecialMainAvatar added in v1.3.1

func (g *GamePlayer) SpecialMainAvatar(trialAvatarId uint32) (bool, spb.LineAvatarType)

func (*GamePlayer) SpringRecoverSingleAvatarCsReq added in v1.3.1

func (g *GamePlayer) SpringRecoverSingleAvatarCsReq(payloadMsg []byte)

func (*GamePlayer) StageObjectCapture added in v1.2.3

func (g *GamePlayer) StageObjectCapture(prop *gdconf.PropList, groupId uint32, db *spb.BlockBin)

func (*GamePlayer) StaminaInfoScNotify

func (g *GamePlayer) StaminaInfoScNotify()

func (*GamePlayer) StartChallengeCsReq

func (g *GamePlayer) StartChallengeCsReq(payloadMsg []byte)

func (*GamePlayer) StartCocoonStageCsReq

func (g *GamePlayer) StartCocoonStageCsReq(payloadMsg []byte)

func (*GamePlayer) StartPartialChallengeCsReq added in v1.3.0

func (g *GamePlayer) StartPartialChallengeCsReq(payloadMsg []byte)

func (*GamePlayer) StartRaidCsReq added in v1.3.1

func (g *GamePlayer) StartRaidCsReq(payloadMsg []byte)

func (*GamePlayer) StartRogueCsReq

func (g *GamePlayer) StartRogueCsReq(payloadMsg []byte)

func (*GamePlayer) StartTrialActivityCsReq

func (g *GamePlayer) StartTrialActivityCsReq(payloadMsg []byte)

func (*GamePlayer) StartTrialEnterSceneByServerScNotify

func (g *GamePlayer) StartTrialEnterSceneByServerScNotify()

func (*GamePlayer) StartWolfBroGameCsReq added in v1.4.0

func (g *GamePlayer) StartWolfBroGameCsReq(payloadMsg []byte)

func (*GamePlayer) SubMissionFinishCnt added in v1.2.3

func (g *GamePlayer) SubMissionFinishCnt(id uint32) (uint32, uint32)

完成列表中的子任务即可

func (*GamePlayer) SwapLineup

func (g *GamePlayer) SwapLineup(index, src_slot, dst_slot uint32)

交换角色

func (*GamePlayer) SyncClientResVersionCsReq

func (g *GamePlayer) SyncClientResVersionCsReq(payloadMsg []byte)

func (*GamePlayer) SyncEntityBuffChangeListScNotify

func (g *GamePlayer) SyncEntityBuffChangeListScNotify(entityId uint32)

func (*GamePlayer) SyncLineupNotify

func (g *GamePlayer) SyncLineupNotify(db *spb.Line)

队伍更新通知

func (*GamePlayer) SyncRogueCommonActionResultScNotify

func (g *GamePlayer) SyncRogueCommonActionResultScNotify(buffId uint32)

func (*GamePlayer) SyncRogueCommonPendingActionScNotify

func (g *GamePlayer) SyncRogueCommonPendingActionScNotify(buffIdList []uint32)

func (*GamePlayer) SyncRogueMapRoomScNotify

func (g *GamePlayer) SyncRogueMapRoomScNotify(siteId uint32)

区域通知

func (*GamePlayer) SyncRogueVirtualItemInfoScNotify

func (g *GamePlayer) SyncRogueVirtualItemInfoScNotify()

func (*GamePlayer) TakeAllRewardCsReq added in v1.3.1

func (g *GamePlayer) TakeAllRewardCsReq(payloadMsg []byte)

func (*GamePlayer) TakeBpRewardCsReq added in v1.3.1

func (g *GamePlayer) TakeBpRewardCsReq(payloadMsg []byte)

func (*GamePlayer) TakeLoginActivityRewardCsReq

func (g *GamePlayer) TakeLoginActivityRewardCsReq(payloadMsg []byte)

func (*GamePlayer) TakeMailAttachmentCsReq added in v1.2.2

func (g *GamePlayer) TakeMailAttachmentCsReq(payloadMsg []byte)

func (*GamePlayer) TakePromotionRewardCsReq

func (g *GamePlayer) TakePromotionRewardCsReq(payloadMsg []byte)

func (*GamePlayer) TakeTrialActivityRewardCsReq

func (g *GamePlayer) TakeTrialActivityRewardCsReq(payloadMsg []byte)

func (*GamePlayer) TalkStrSubMission added in v1.2.2

func (g *GamePlayer) TalkStrSubMission(req *proto.FinishTalkMissionCsReq)

客户端告知任务完成

func (*GamePlayer) TextJoinQueryCsReq

func (g *GamePlayer) TextJoinQueryCsReq(payloadMsg []byte)

func (*GamePlayer) TrialActivityPVEBattleResultScRsp

func (g *GamePlayer) TrialActivityPVEBattleResultScRsp(req *proto.PVEBattleResultCsReq)

func (*GamePlayer) UnDbAvatarLineUp added in v1.3.1

func (g *GamePlayer) UnDbAvatarLineUp(db *spb.Line, avatarId, newAvatarId uint32)

队伍更新

func (*GamePlayer) UnDbLineUp

func (g *GamePlayer) UnDbLineUp(index uint32, Slot uint32, avatarId uint32)

队伍更新

func (*GamePlayer) UnlockSkilltreeCsReq

func (g *GamePlayer) UnlockSkilltreeCsReq(payloadMsg []byte)

func (*GamePlayer) UnlockTutorial added in v1.2.2

func (g *GamePlayer) UnlockTutorial(id uint32)

func (*GamePlayer) UnlockTutorialCsReq added in v1.2.2

func (g *GamePlayer) UnlockTutorialCsReq(payloadMsg []byte)

func (*GamePlayer) UnlockTutorialGuide added in v1.2.2

func (g *GamePlayer) UnlockTutorialGuide(id uint32)

func (*GamePlayer) UnlockTutorialGuideCsReq added in v1.2.2

func (g *GamePlayer) UnlockTutorialGuideCsReq(payloadMsg []byte)

func (*GamePlayer) UpBattleSubMission added in v1.2.2

func (g *GamePlayer) UpBattleSubMission(battleId uint32)

处理战斗任务

func (*GamePlayer) UpCurRogueRoom added in v1.3.0

func (g *GamePlayer) UpCurRogueRoom(siteId uint32)

func (*GamePlayer) UpInteractSubMission added in v1.2.2

func (g *GamePlayer) UpInteractSubMission(db *spb.BlockBin)

处理交互任务

func (*GamePlayer) UpKillMonsterSubMission added in v1.2.2

func (g *GamePlayer) UpKillMonsterSubMission(me *MonsterEntity)

处理删除实体任务

func (*GamePlayer) UpPlayerDate added in v1.2.2

func (g *GamePlayer) UpPlayerDate(status spb.PlayerStatusType) bool

func (*GamePlayer) UpPropState added in v1.2.2

func (g *GamePlayer) UpPropState(db *spb.BlockBin, groupId, propId, state uint32)

func (*GamePlayer) UpSceneGroupRefreshScNotify added in v1.2.2

func (g *GamePlayer) UpSceneGroupRefreshScNotify(uninstallGroup, loadedGroupList []*GroupInfo)

卸载/加载场景

func (*GamePlayer) UpSceneMap added in v1.2.2

func (g *GamePlayer) UpSceneMap()

func (*GamePlayer) UpdateBlock added in v1.2.2

func (g *GamePlayer) UpdateBlock(block *spb.BlockBin)

更新地图数据到数据库

func (*GamePlayer) UpdateChallengeList added in v1.2.2

func (g *GamePlayer) UpdateChallengeList(curChallenge *spb.CurChallenge)

func (*GamePlayer) UpdateRogueTournEnterRoom added in v1.3.1

func (g *GamePlayer) UpdateRogueTournEnterRoom(curRoomIndex, nextTypeId uint32)

func (*GamePlayer) UpdateTrackMainMissionIdCsReq added in v1.3.1

func (g *GamePlayer) UpdateTrackMainMissionIdCsReq(payloadMsg []byte)

func (*GamePlayer) UseItemCsReq added in v1.3.1

func (g *GamePlayer) UseItemCsReq(payloadMsg []byte)

type GroupInfo added in v1.2.2

type GroupInfo struct {
	EntryId   uint32               // 地图
	PlaneID   uint32               // 地图2
	FloorID   uint32               // 地图3
	GroupID   uint32               // 区域
	EntityMap map[uint32]EntityAll // 场景实体(加载区域才写!!!
}

type HandlerFunc added in v1.2.3

type HandlerFunc func(payloadMsg []byte)

type MPEM added in v1.2.2

type MPEM struct {
	IsAvatar        bool     // 是否有玩家参与
	MonsterEntityId []uint32 // 怪物实体id
	MonsterId       []uint32 // 怪物id
	PropEntityId    []uint32 // 物品实体id
	PropId          []uint32 // 怪物id
	AvatarId        uint32   // 角色id
	AvatarEntityId  uint32   // 角色实体id
}

type Material

type Material struct {
	Tid uint32 // id
	Num uint32 // 个数
}

type MonsterEntity

type MonsterEntity struct {
	Entity
	EventID uint32 // 怪物id
}

func (*MonsterEntity) AddEntity added in v1.2.2

func (me *MonsterEntity) AddEntity(g *GamePlayer, groupID uint32)

type Msg added in v1.2.1

type Msg struct {
	AppId     uint32 // gs appid
	CmdId     uint16
	PlayerMsg pb.Message
}

type NpcEntity

type NpcEntity struct {
	Entity
	NpcId uint32 // ncp id
}

func (*NpcEntity) AddEntity added in v1.2.2

func (ne *NpcEntity) AddEntity(g *GamePlayer, groupID uint32)

type OnLineAvatarBuff added in v1.2.3

type OnLineAvatarBuff struct {
	AvatarId uint32 // 角色
	BuffId   uint32 // buffid
	Count    uint32 // 使用次数
	AddTime  uint64 // 添加时间
	LifeTime uint32 // 有效时间
}

type OnlineData added in v1.2.2

type OnlineData struct {
	LoginToday            bool                     // 是否是今天第一次登录
	BattleId              uint32                   // 战斗id
	IsPaused              bool                     // 是否暂停
	GameObjectGuidCounter uint32                   // 游戏对象guid计数器 貌似一个玩家用一个就行了
	IsNickName            bool                     // 是否修改昵称
	SceneMap              *SceneMap                // 在线场景管理
	BlockMap              map[uint32]*spb.BlockBin // 缓存场景

	CurBattle *CurBattle // 正在进行的战斗
	// contains filtered or unexported fields
}

type PropEntity added in v1.2.2

type PropEntity struct {
	Entity
	PropId uint32 // 物品id
}

func (*PropEntity) AddEntity added in v1.2.2

func (pe *PropEntity) AddEntity(g *GamePlayer, groupID uint32)

type RecvMsg added in v1.2.3

type RecvMsg struct {
	CmdId     uint16
	PlayerMsg []byte
}

type RogueBuffByType added in v1.2.3

type RogueBuffByType struct {
	Weight          int32                       // 权重
	RogueBuffRarity map[uint32]*RogueBuffRarity // 稀有度
}

type RogueBuffRarity added in v1.2.3

type RogueBuffRarity struct {
	Rarity   uint32   // 稀有度
	BuffList []uint32 // buff列表
}

type RogueInfoOnline added in v1.2.3

type RogueInfoOnline struct {
	RogueBuffByType    map[uint32]*RogueBuffByType
	RogueBuffRarityOne int32 // 白的概率
	RogueBuffRarityTwo int32 // 蓝的概率
}

type RouteManager added in v1.2.3

type RouteManager struct {
	// contains filtered or unexported fields
}

func NewRouteManager added in v1.2.3

func NewRouteManager(g *GamePlayer) (r *RouteManager)

type SceneMap added in v1.2.2

type SceneMap struct {
	LoadedGroup   map[uint32]*GroupInfo // 已加载场景
	NoLoadedGroup map[uint32]*GroupInfo // 未加载场景
}

func NewSceneMap added in v1.2.2

func NewSceneMap() *SceneMap

Jump to

Keyboard shortcuts

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