Documentation
¶
Index ¶
- Variables
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetName() string
- func (x *Account) GetPassword() string
- func (x *Account) GetXId() int64
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountReg
- func (*AccountReg) Descriptor() ([]byte, []int)deprecated
- func (x *AccountReg) GetAccountName() string
- func (x *AccountReg) GetPassword() string
- func (*AccountReg) ProtoMessage()
- func (x *AccountReg) ProtoReflect() protoreflect.Message
- func (x *AccountReg) Reset()
- func (x *AccountReg) String() string
- type AccountRes
- func (*AccountRes) Descriptor() ([]byte, []int)deprecated
- func (x *AccountRes) GetAccountId() int64
- func (x *AccountRes) GetAccountName() string
- func (x *AccountRes) GetError() string
- func (*AccountRes) ProtoMessage()
- func (x *AccountRes) ProtoReflect() protoreflect.Message
- func (x *AccountRes) Reset()
- func (x *AccountRes) String() string
- type ActivityCfg
- func (*ActivityCfg) Descriptor() ([]byte, []int)deprecated
- func (x *ActivityCfg) GetBeginTime() int32
- func (x *ActivityCfg) GetCfgId() int32
- func (x *ActivityCfg) GetCycleType() int32
- func (x *ActivityCfg) GetDetail() string
- func (x *ActivityCfg) GetEndTime() int32
- func (x *ActivityCfg) GetExchangeIds() []int32
- func (x *ActivityCfg) GetIsOff() bool
- func (x *ActivityCfg) GetMaxPlayerLevel() int32
- func (x *ActivityCfg) GetMinPlayerLevel() int32
- func (x *ActivityCfg) GetName() string
- func (x *ActivityCfg) GetProperties() map[string]string
- func (x *ActivityCfg) GetQuestIds() []int32
- func (x *ActivityCfg) GetRefreshType() int32
- func (x *ActivityCfg) GetRemoveDataWhenEnd() bool
- func (x *ActivityCfg) GetTemplate() string
- func (x *ActivityCfg) GetTimeType() int32
- func (*ActivityCfg) ProtoMessage()
- func (x *ActivityCfg) ProtoReflect() protoreflect.Message
- func (x *ActivityCfg) Reset()
- func (x *ActivityCfg) String() string
- type ActivityDefaultBaseData
- func (*ActivityDefaultBaseData) Descriptor() ([]byte, []int)deprecated
- func (x *ActivityDefaultBaseData) GetExchangeRecord() map[int32]int32
- func (x *ActivityDefaultBaseData) GetJoinTime() int32
- func (x *ActivityDefaultBaseData) GetLastUpdateTime() int32
- func (x *ActivityDefaultBaseData) GetProgresses() map[int32]*ActivityProgressData
- func (*ActivityDefaultBaseData) ProtoMessage()
- func (x *ActivityDefaultBaseData) ProtoReflect() protoreflect.Message
- func (x *ActivityDefaultBaseData) Reset()
- func (x *ActivityDefaultBaseData) String() string
- type ActivityProgressData
- func (*ActivityProgressData) Descriptor() ([]byte, []int)deprecated
- func (x *ActivityProgressData) GetCfgId() int32
- func (x *ActivityProgressData) GetIsReceiveReward() bool
- func (x *ActivityProgressData) GetProgress() int32
- func (*ActivityProgressData) ProtoMessage()
- func (x *ActivityProgressData) ProtoReflect() protoreflect.Message
- func (x *ActivityProgressData) Reset()
- func (x *ActivityProgressData) SetProgress(progress int32)
- func (x *ActivityProgressData) String() string
- type AddItemArg
- func (*AddItemArg) Descriptor() ([]byte, []int)deprecated
- func (x *AddItemArg) GetCfgId() int32
- func (x *AddItemArg) GetNum() int32
- func (x *AddItemArg) GetSource() int32
- func (x *AddItemArg) GetTimeType() int32
- func (x *AddItemArg) GetTimeout() int32
- func (*AddItemArg) ProtoMessage()
- func (x *AddItemArg) ProtoReflect() protoreflect.Message
- func (x *AddItemArg) Reset()
- func (x *AddItemArg) String() string
- type BagSaveData
- func (*BagSaveData) Descriptor() ([]byte, []int)deprecated
- func (x *BagSaveData) GetCountItem() map[int32]int32
- func (x *BagSaveData) GetEquip() map[int64][]byte
- func (x *BagSaveData) GetUniqueItem() map[int64][]byte
- func (*BagSaveData) ProtoMessage()
- func (x *BagSaveData) ProtoReflect() protoreflect.Message
- func (x *BagSaveData) Reset()
- func (x *BagSaveData) String() string
- type BaseInfo
- func (*BaseInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BaseInfo) GetExp() int32
- func (x *BaseInfo) GetGender() int32
- func (x *BaseInfo) GetLastLoginTimestamp() int64
- func (x *BaseInfo) GetLastLogoutTimestamp() int64
- func (x *BaseInfo) GetLastUpdateDate() int32
- func (x *BaseInfo) GetLevel() int32
- func (x *BaseInfo) GetTotalOnlineSeconds() int32
- func (x *BaseInfo) GetTotalPay() int32
- func (*BaseInfo) ProtoMessage()
- func (x *BaseInfo) ProtoReflect() protoreflect.Message
- func (x *BaseInfo) Reset()
- func (x *BaseInfo) String() string
- type CfgArg
- type ClientDisconnect
- type CmdClient
- type CmdServer
- type CoinReq
- type CoinRes
- type Color
- type ConditionCfg
- func (*ConditionCfg) Descriptor() ([]byte, []int)deprecated
- func (x *ConditionCfg) GetArg() int32
- func (x *ConditionCfg) GetKey() string
- func (x *ConditionCfg) GetOp() string
- func (x *ConditionCfg) GetProperties() map[string]string
- func (x *ConditionCfg) GetType() int32
- func (*ConditionCfg) ProtoMessage()
- func (x *ConditionCfg) ProtoReflect() protoreflect.Message
- func (x *ConditionCfg) Reset()
- func (x *ConditionCfg) String() string
- type ConditionTemplateCfg
- func (*ConditionTemplateCfg) Descriptor() ([]byte, []int)deprecated
- func (x *ConditionTemplateCfg) GetCfgId() int32
- func (x *ConditionTemplateCfg) GetKey() string
- func (x *ConditionTemplateCfg) GetOp() string
- func (x *ConditionTemplateCfg) GetProperties() map[string]string
- func (x *ConditionTemplateCfg) GetType() int32
- func (*ConditionTemplateCfg) ProtoMessage()
- func (x *ConditionTemplateCfg) ProtoReflect() protoreflect.Message
- func (x *ConditionTemplateCfg) Reset()
- func (x *ConditionTemplateCfg) String() string
- type ConditionType
- func (ConditionType) Descriptor() protoreflect.EnumDescriptor
- func (x ConditionType) Enum() *ConditionType
- func (ConditionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConditionType) Number() protoreflect.EnumNumber
- func (x ConditionType) String() string
- func (ConditionType) Type() protoreflect.EnumType
- type CountItem
- type CountType
- type CreatePlayerReq
- func (*CreatePlayerReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePlayerReq) GetAccountId() int64
- func (x *CreatePlayerReq) GetGender() int32
- func (x *CreatePlayerReq) GetLoginSession() string
- func (x *CreatePlayerReq) GetName() string
- func (x *CreatePlayerReq) GetRegionId() int32
- func (*CreatePlayerReq) ProtoMessage()
- func (x *CreatePlayerReq) ProtoReflect() protoreflect.Message
- func (x *CreatePlayerReq) Reset()
- func (x *CreatePlayerReq) String() string
- type CreatePlayerRes
- func (*CreatePlayerRes) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePlayerRes) GetAccountId() int64
- func (x *CreatePlayerRes) GetError() string
- func (x *CreatePlayerRes) GetName() string
- func (x *CreatePlayerRes) GetRegionId() int32
- func (*CreatePlayerRes) ProtoMessage()
- func (x *CreatePlayerRes) ProtoReflect() protoreflect.Message
- func (x *CreatePlayerRes) Reset()
- func (x *CreatePlayerRes) String() string
- type DelItemArg
- func (*DelItemArg) Descriptor() ([]byte, []int)deprecated
- func (x *DelItemArg) GetCfgId() int32
- func (x *DelItemArg) GetNum() int32
- func (x *DelItemArg) GetSource() int32
- func (x *DelItemArg) GetUniqueId() int64
- func (*DelItemArg) ProtoMessage()
- func (x *DelItemArg) ProtoReflect() protoreflect.Message
- func (x *DelItemArg) Reset()
- func (x *DelItemArg) String() string
- type Equip
- type ErrorRes
- func (*ErrorRes) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorRes) GetCommand() int32
- func (x *ErrorRes) GetResultId() int32
- func (x *ErrorRes) GetResultStr() string
- func (*ErrorRes) ProtoMessage()
- func (x *ErrorRes) ProtoReflect() protoreflect.Message
- func (x *ErrorRes) Reset()
- func (x *ErrorRes) String() string
- type EventActivityProperty
- func (*EventActivityProperty) Descriptor() ([]byte, []int)deprecated
- func (x *EventActivityProperty) GetActivityId() int32
- func (x *EventActivityProperty) GetPropertyName() string
- func (x *EventActivityProperty) GetPropertyValue() int32
- func (*EventActivityProperty) ProtoMessage()
- func (x *EventActivityProperty) ProtoReflect() protoreflect.Message
- func (x *EventActivityProperty) Reset()
- func (x *EventActivityProperty) String() string
- type EventFight
- func (*EventFight) Descriptor() ([]byte, []int)deprecated
- func (x *EventFight) GetIsPvp() bool
- func (x *EventFight) GetIsWin() bool
- func (x *EventFight) GetPlayerId() int64
- func (*EventFight) ProtoMessage()
- func (x *EventFight) ProtoReflect() protoreflect.Message
- func (x *EventFight) Reset()
- func (x *EventFight) String() string
- type EventPlayerProperty
- func (*EventPlayerProperty) Descriptor() ([]byte, []int)deprecated
- func (x *EventPlayerProperty) GetPlayerId() int64
- func (x *EventPlayerProperty) GetPropertyName() string
- func (x *EventPlayerProperty) GetPropertyValue() int32
- func (*EventPlayerProperty) ProtoMessage()
- func (x *EventPlayerProperty) ProtoReflect() protoreflect.Message
- func (x *EventPlayerProperty) Reset()
- func (x *EventPlayerProperty) String() string
- type ExchangeCfg
- func (*ExchangeCfg) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeCfg) GetCfgId() int32
- func (x *ExchangeCfg) GetConditionTemplates() []*CfgArg
- func (x *ExchangeCfg) GetConditions() []*ConditionCfg
- func (x *ExchangeCfg) GetConsumes() []*DelItemArg
- func (x *ExchangeCfg) GetCountLimit() int32
- func (x *ExchangeCfg) GetProperties() map[string]string
- func (x *ExchangeCfg) GetRewards() []*AddItemArg
- func (*ExchangeCfg) ProtoMessage()
- func (x *ExchangeCfg) ProtoReflect() protoreflect.Message
- func (x *ExchangeCfg) Reset()
- func (x *ExchangeCfg) String() string
- type FinishQuestReq
- type FinishQuestRes
- type GameServerInfo
- func (*GameServerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GameServerInfo) GetClientListenAddr() string
- func (x *GameServerInfo) GetServerId() int32
- func (*GameServerInfo) ProtoMessage()
- func (x *GameServerInfo) ProtoReflect() protoreflect.Message
- func (x *GameServerInfo) Reset()
- func (x *GameServerInfo) String() string
- type GateRouteClientPacketError
- func (*GateRouteClientPacketError) Descriptor() ([]byte, []int)deprecated
- func (x *GateRouteClientPacketError) GetCommand() int32
- func (x *GateRouteClientPacketError) GetPlayerId() int64
- func (x *GateRouteClientPacketError) GetResultId() int32
- func (x *GateRouteClientPacketError) GetResultStr() string
- func (*GateRouteClientPacketError) ProtoMessage()
- func (x *GateRouteClientPacketError) ProtoReflect() protoreflect.Message
- func (x *GateRouteClientPacketError) Reset()
- func (x *GateRouteClientPacketError) String() string
- type GlobalEntityData
- func (*GlobalEntityData) Descriptor() ([]byte, []int)deprecated
- func (x *GlobalEntityData) GetKey() string
- func (x *GlobalEntityData) GetProcessStatInfo() *ProcessStatInfo
- func (*GlobalEntityData) ProtoMessage()
- func (x *GlobalEntityData) ProtoReflect() protoreflect.Message
- func (x *GlobalEntityData) Reset()
- func (x *GlobalEntityData) String() string
- type GuildCreateReq
- func (*GuildCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *GuildCreateReq) GetIntro() string
- func (x *GuildCreateReq) GetName() string
- func (*GuildCreateReq) ProtoMessage()
- func (x *GuildCreateReq) ProtoReflect() protoreflect.Message
- func (x *GuildCreateReq) Reset()
- func (x *GuildCreateReq) String() string
- type GuildCreateRes
- func (*GuildCreateRes) Descriptor() ([]byte, []int)deprecated
- func (x *GuildCreateRes) GetError() string
- func (x *GuildCreateRes) GetId() int64
- func (x *GuildCreateRes) GetName() string
- func (*GuildCreateRes) ProtoMessage()
- func (x *GuildCreateRes) ProtoReflect() protoreflect.Message
- func (x *GuildCreateRes) Reset()
- func (x *GuildCreateRes) String() string
- type GuildData
- func (*GuildData) Descriptor() ([]byte, []int)deprecated
- func (x *GuildData) GetBaseInfo() *GuildInfo
- func (x *GuildData) GetId() int64
- func (x *GuildData) GetJoinRequests() map[int64]*GuildJoinRequest
- func (x *GuildData) GetMembers() map[int64]*GuildMemberData
- func (*GuildData) ProtoMessage()
- func (x *GuildData) ProtoReflect() protoreflect.Message
- func (x *GuildData) Reset()
- func (x *GuildData) String() string
- type GuildDataViewReq
- type GuildDataViewRes
- type GuildInfo
- func (*GuildInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GuildInfo) GetId() int64
- func (x *GuildInfo) GetIntro() string
- func (x *GuildInfo) GetMemberCount() int32
- func (x *GuildInfo) GetName() string
- func (*GuildInfo) ProtoMessage()
- func (x *GuildInfo) ProtoReflect() protoreflect.Message
- func (x *GuildInfo) Reset()
- func (x *GuildInfo) String() string
- type GuildJoinAgreeReq
- func (*GuildJoinAgreeReq) Descriptor() ([]byte, []int)deprecated
- func (x *GuildJoinAgreeReq) GetIsAgree() bool
- func (x *GuildJoinAgreeReq) GetJoinPlayerId() int64
- func (*GuildJoinAgreeReq) ProtoMessage()
- func (x *GuildJoinAgreeReq) ProtoReflect() protoreflect.Message
- func (x *GuildJoinAgreeReq) Reset()
- func (x *GuildJoinAgreeReq) String() string
- type GuildJoinAgreeRes
- func (*GuildJoinAgreeRes) Descriptor() ([]byte, []int)deprecated
- func (x *GuildJoinAgreeRes) GetError() string
- func (x *GuildJoinAgreeRes) GetGuildId() int64
- func (x *GuildJoinAgreeRes) GetIsAgree() bool
- func (x *GuildJoinAgreeRes) GetJoinPlayerId() int64
- func (x *GuildJoinAgreeRes) GetManagerPlayerId() int64
- func (*GuildJoinAgreeRes) ProtoMessage()
- func (x *GuildJoinAgreeRes) ProtoReflect() protoreflect.Message
- func (x *GuildJoinAgreeRes) Reset()
- func (x *GuildJoinAgreeRes) String() string
- type GuildJoinReq
- type GuildJoinReqOpResult
- func (*GuildJoinReqOpResult) Descriptor() ([]byte, []int)deprecated
- func (x *GuildJoinReqOpResult) GetError() string
- func (x *GuildJoinReqOpResult) GetGuildId() int64
- func (x *GuildJoinReqOpResult) GetIsAgree() bool
- func (x *GuildJoinReqOpResult) GetJoinPlayerId() int64
- func (x *GuildJoinReqOpResult) GetManagerPlayerId() int64
- func (*GuildJoinReqOpResult) ProtoMessage()
- func (x *GuildJoinReqOpResult) ProtoReflect() protoreflect.Message
- func (x *GuildJoinReqOpResult) Reset()
- func (x *GuildJoinReqOpResult) String() string
- type GuildJoinReqTip
- func (*GuildJoinReqTip) Descriptor() ([]byte, []int)deprecated
- func (x *GuildJoinReqTip) GetPlayerId() int64
- func (x *GuildJoinReqTip) GetPlayerName() string
- func (*GuildJoinReqTip) ProtoMessage()
- func (x *GuildJoinReqTip) ProtoReflect() protoreflect.Message
- func (x *GuildJoinReqTip) Reset()
- func (x *GuildJoinReqTip) String() string
- type GuildJoinRequest
- func (*GuildJoinRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GuildJoinRequest) GetPlayerId() int64
- func (x *GuildJoinRequest) GetPlayerName() string
- func (x *GuildJoinRequest) GetTimestampSec() int32
- func (*GuildJoinRequest) ProtoMessage()
- func (x *GuildJoinRequest) ProtoReflect() protoreflect.Message
- func (x *GuildJoinRequest) Reset()
- func (x *GuildJoinRequest) String() string
- type GuildJoinRes
- func (*GuildJoinRes) Descriptor() ([]byte, []int)deprecated
- func (x *GuildJoinRes) GetError() string
- func (x *GuildJoinRes) GetId() int64
- func (*GuildJoinRes) ProtoMessage()
- func (x *GuildJoinRes) ProtoReflect() protoreflect.Message
- func (x *GuildJoinRes) Reset()
- func (x *GuildJoinRes) String() string
- type GuildListReq
- type GuildListRes
- func (*GuildListRes) Descriptor() ([]byte, []int)deprecated
- func (x *GuildListRes) GetGuildInfos() []*GuildInfo
- func (x *GuildListRes) GetPageCount() int32
- func (x *GuildListRes) GetPageIndex() int32
- func (*GuildListRes) ProtoMessage()
- func (x *GuildListRes) ProtoReflect() protoreflect.Message
- func (x *GuildListRes) Reset()
- func (x *GuildListRes) String() string
- type GuildLoadData
- func (*GuildLoadData) Descriptor() ([]byte, []int)deprecated
- func (x *GuildLoadData) GetBaseInfo() *GuildInfo
- func (x *GuildLoadData) GetId() int64
- func (x *GuildLoadData) GetJoinRequests() map[int64][]byte
- func (x *GuildLoadData) GetMembers() map[int64]*GuildMemberData
- func (*GuildLoadData) ProtoMessage()
- func (x *GuildLoadData) ProtoReflect() protoreflect.Message
- func (x *GuildLoadData) Reset()
- func (x *GuildLoadData) String() string
- type GuildMemberData
- func (*GuildMemberData) Descriptor() ([]byte, []int)deprecated
- func (x *GuildMemberData) GetId() int64
- func (x *GuildMemberData) GetName() string
- func (x *GuildMemberData) GetPosition() int32
- func (*GuildMemberData) ProtoMessage()
- func (x *GuildMemberData) ProtoReflect() protoreflect.Message
- func (x *GuildMemberData) Reset()
- func (x *GuildMemberData) String() string
- type GuildPosition
- func (GuildPosition) Descriptor() protoreflect.EnumDescriptor
- func (x GuildPosition) Enum() *GuildPosition
- func (GuildPosition) EnumDescriptor() ([]byte, []int)deprecated
- func (x GuildPosition) Number() protoreflect.EnumNumber
- func (x GuildPosition) String() string
- func (GuildPosition) Type() protoreflect.EnumType
- type GuildRoutePlayerMessageReq
- func (*GuildRoutePlayerMessageReq) Descriptor() ([]byte, []int)deprecated
- func (x *GuildRoutePlayerMessageReq) GetFromGuildId() int64
- func (x *GuildRoutePlayerMessageReq) GetFromPlayerId() int64
- func (x *GuildRoutePlayerMessageReq) GetFromPlayerName() string
- func (x *GuildRoutePlayerMessageReq) GetFromServerId() int32
- func (x *GuildRoutePlayerMessageReq) GetPacketCommand() int32
- func (x *GuildRoutePlayerMessageReq) GetPacketData() *anypb.Any
- func (*GuildRoutePlayerMessageReq) ProtoMessage()
- func (x *GuildRoutePlayerMessageReq) ProtoReflect() protoreflect.Message
- func (x *GuildRoutePlayerMessageReq) Reset()
- func (x *GuildRoutePlayerMessageReq) String() string
- type HeartBeatReq
- type HeartBeatRes
- func (*HeartBeatRes) Descriptor() ([]byte, []int)deprecated
- func (x *HeartBeatRes) GetRequestTimestamp() int64
- func (x *HeartBeatRes) GetResponseTimestamp() int64
- func (*HeartBeatRes) ProtoMessage()
- func (x *HeartBeatRes) ProtoReflect() protoreflect.Message
- func (x *HeartBeatRes) Reset()
- func (x *HeartBeatRes) String() string
- type ItemCfg
- func (*ItemCfg) Descriptor() ([]byte, []int)deprecated
- func (x *ItemCfg) GetCfgId() int32
- func (x *ItemCfg) GetDetail() string
- func (x *ItemCfg) GetItemType() int32
- func (x *ItemCfg) GetName() string
- func (x *ItemCfg) GetTimeType() int32
- func (x *ItemCfg) GetTimeout() int32
- func (*ItemCfg) ProtoMessage()
- func (x *ItemCfg) ProtoReflect() protoreflect.Message
- func (x *ItemCfg) Reset()
- func (x *ItemCfg) String() string
- type ItemNum
- type ItemType
- type KickPlayerReq
- func (*KickPlayerReq) Descriptor() ([]byte, []int)deprecated
- func (x *KickPlayerReq) GetAccountId() int64
- func (x *KickPlayerReq) GetPlayerId() int64
- func (*KickPlayerReq) ProtoMessage()
- func (x *KickPlayerReq) ProtoReflect() protoreflect.Message
- func (x *KickPlayerReq) Reset()
- func (x *KickPlayerReq) String() string
- type KickPlayerRes
- func (*KickPlayerRes) Descriptor() ([]byte, []int)deprecated
- func (x *KickPlayerRes) GetAccountId() int64
- func (x *KickPlayerRes) GetError() string
- func (x *KickPlayerRes) GetPlayerId() int64
- func (*KickPlayerRes) ProtoMessage()
- func (x *KickPlayerRes) ProtoReflect() protoreflect.Message
- func (x *KickPlayerRes) Reset()
- func (x *KickPlayerRes) String() string
- type LevelExp
- type LoginReq
- type LoginRes
- func (*LoginRes) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRes) GetAccountId() int64
- func (x *LoginRes) GetAccountName() string
- func (x *LoginRes) GetError() string
- func (x *LoginRes) GetGameServer() *GameServerInfo
- func (x *LoginRes) GetLoginSession() string
- func (*LoginRes) ProtoMessage()
- func (x *LoginRes) ProtoReflect() protoreflect.Message
- func (x *LoginRes) Reset()
- func (x *LoginRes) String() string
- type Money
- type PendingMessage
- func (*PendingMessage) Descriptor() ([]byte, []int)deprecated
- func (x *PendingMessage) GetMessageId() int64
- func (x *PendingMessage) GetPacketCommand() int32
- func (x *PendingMessage) GetPacketData() *anypb.Any
- func (x *PendingMessage) GetTimestamp() int64
- func (*PendingMessage) ProtoMessage()
- func (x *PendingMessage) ProtoReflect() protoreflect.Message
- func (x *PendingMessage) Reset()
- func (x *PendingMessage) String() string
- type PlayerData
- func (*PlayerData) Descriptor() ([]byte, []int)deprecated
- func (x *PlayerData) GetAccountId() int64
- func (x *PlayerData) GetActivities() map[int32][]byte
- func (x *PlayerData) GetBags() *BagSaveData
- func (x *PlayerData) GetBaseInfo() *BaseInfo
- func (x *PlayerData) GetGuild() *PlayerGuildData
- func (x *PlayerData) GetMoney() []byte
- func (x *PlayerData) GetName() string
- func (x *PlayerData) GetPendingMessages() map[int64][]byte
- func (x *PlayerData) GetQuest() *QuestSaveData
- func (x *PlayerData) GetRegionId() int32
- func (x *PlayerData) GetXId() int64
- func (*PlayerData) ProtoMessage()
- func (x *PlayerData) ProtoReflect() protoreflect.Message
- func (x *PlayerData) Reset()
- func (x *PlayerData) String() string
- type PlayerEntryGameOk
- type PlayerEntryGameReq
- func (*PlayerEntryGameReq) Descriptor() ([]byte, []int)deprecated
- func (x *PlayerEntryGameReq) GetAccountId() int64
- func (x *PlayerEntryGameReq) GetLoginSession() string
- func (x *PlayerEntryGameReq) GetRegionId() int32
- func (*PlayerEntryGameReq) ProtoMessage()
- func (x *PlayerEntryGameReq) ProtoReflect() protoreflect.Message
- func (x *PlayerEntryGameReq) Reset()
- func (x *PlayerEntryGameReq) String() string
- type PlayerEntryGameRes
- func (*PlayerEntryGameRes) Descriptor() ([]byte, []int)deprecated
- func (x *PlayerEntryGameRes) GetAccountId() int64
- func (x *PlayerEntryGameRes) GetError() string
- func (x *PlayerEntryGameRes) GetGuildData() *PlayerGuildData
- func (x *PlayerEntryGameRes) GetPlayerId() int64
- func (x *PlayerEntryGameRes) GetPlayerName() string
- func (x *PlayerEntryGameRes) GetRegionId() int32
- func (*PlayerEntryGameRes) ProtoMessage()
- func (x *PlayerEntryGameRes) ProtoReflect() protoreflect.Message
- func (x *PlayerEntryGameRes) Reset()
- func (x *PlayerEntryGameRes) String() string
- type PlayerGuildData
- type ProcessStatInfo
- func (*ProcessStatInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessStatInfo) GetLastShutdownTimestamp() int64
- func (x *ProcessStatInfo) GetLastStartupTimestamp() int64
- func (x *ProcessStatInfo) GetLastUpdateDate() int32
- func (*ProcessStatInfo) ProtoMessage()
- func (x *ProcessStatInfo) ProtoReflect() protoreflect.Message
- func (x *ProcessStatInfo) Reset()
- func (x *ProcessStatInfo) String() string
- type ProgressCfg
- func (*ProgressCfg) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressCfg) GetCountType() int32
- func (x *ProgressCfg) GetEvent() string
- func (x *ProgressCfg) GetEventField() string
- func (x *ProgressCfg) GetNeedInit() bool
- func (x *ProgressCfg) GetProperties() map[string]string
- func (x *ProgressCfg) GetTotal() int32
- func (x *ProgressCfg) GetType() int32
- func (*ProgressCfg) ProtoMessage()
- func (x *ProgressCfg) ProtoReflect() protoreflect.Message
- func (x *ProgressCfg) Reset()
- func (x *ProgressCfg) String() string
- type ProgressTemplateCfg
- func (*ProgressTemplateCfg) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressTemplateCfg) GetCfgId() int32
- func (x *ProgressTemplateCfg) GetCountType() int32
- func (x *ProgressTemplateCfg) GetEvent() string
- func (x *ProgressTemplateCfg) GetEventField() string
- func (x *ProgressTemplateCfg) GetNeedInit() bool
- func (x *ProgressTemplateCfg) GetProperties() map[string]string
- func (x *ProgressTemplateCfg) GetType() int32
- func (*ProgressTemplateCfg) ProtoMessage()
- func (x *ProgressTemplateCfg) ProtoReflect() protoreflect.Message
- func (x *ProgressTemplateCfg) Reset()
- func (x *ProgressTemplateCfg) String() string
- type ProgressType
- func (ProgressType) Descriptor() protoreflect.EnumDescriptor
- func (x ProgressType) Enum() *ProgressType
- func (ProgressType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProgressType) Number() protoreflect.EnumNumber
- func (x ProgressType) String() string
- func (ProgressType) Type() protoreflect.EnumType
- type QuestCfg
- func (*QuestCfg) Descriptor() ([]byte, []int)deprecated
- func (x *QuestCfg) GetCfgId() int32
- func (x *QuestCfg) GetConditionTemplates() []*CfgArg
- func (x *QuestCfg) GetConditions() []*ConditionCfg
- func (x *QuestCfg) GetDetail() string
- func (x *QuestCfg) GetName() string
- func (x *QuestCfg) GetNextQuests() []int32
- func (x *QuestCfg) GetPreQuest() int32
- func (x *QuestCfg) GetProgress() *ProgressCfg
- func (x *QuestCfg) GetProgressTemplate() *CfgArg
- func (x *QuestCfg) GetProperties() map[string]string
- func (x *QuestCfg) GetQuestType() int32
- func (x *QuestCfg) GetRewards() []*AddItemArg
- func (*QuestCfg) ProtoMessage()
- func (x *QuestCfg) ProtoReflect() protoreflect.Message
- func (x *QuestCfg) Reset()
- func (x *QuestCfg) String() string
- type QuestData
- func (*QuestData) Descriptor() ([]byte, []int)deprecated
- func (x *QuestData) GetCfgId() int32
- func (x *QuestData) GetProgress() int32
- func (*QuestData) ProtoMessage()
- func (x *QuestData) ProtoReflect() protoreflect.Message
- func (x *QuestData) Reset()
- func (x *QuestData) SetProgress(progress int32)
- func (x *QuestData) String() string
- type QuestSaveData
- func (*QuestSaveData) Descriptor() ([]byte, []int)deprecated
- func (x *QuestSaveData) GetFinished() []int32
- func (x *QuestSaveData) GetQuests() map[int32][]byte
- func (*QuestSaveData) ProtoMessage()
- func (x *QuestSaveData) ProtoReflect() protoreflect.Message
- func (x *QuestSaveData) Reset()
- func (x *QuestSaveData) String() string
- type QuestType
- type RefreshType
- func (RefreshType) Descriptor() protoreflect.EnumDescriptor
- func (x RefreshType) Enum() *RefreshType
- func (RefreshType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RefreshType) Number() protoreflect.EnumNumber
- func (x RefreshType) String() string
- func (RefreshType) Type() protoreflect.EnumType
- type RoutePlayerMessage
- func (*RoutePlayerMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RoutePlayerMessage) GetDirectSendClient() bool
- func (x *RoutePlayerMessage) GetError() string
- func (x *RoutePlayerMessage) GetPacketCommand() int32
- func (x *RoutePlayerMessage) GetPacketData() *anypb.Any
- func (x *RoutePlayerMessage) GetPendingMessageId() int64
- func (x *RoutePlayerMessage) GetToPlayerId() int64
- func (*RoutePlayerMessage) ProtoMessage()
- func (x *RoutePlayerMessage) ProtoReflect() protoreflect.Message
- func (x *RoutePlayerMessage) Reset()
- func (x *RoutePlayerMessage) String() string
- type ServerHello
- func (*ServerHello) Descriptor() ([]byte, []int)deprecated
- func (x *ServerHello) GetServerId() int32
- func (x *ServerHello) GetServerType() string
- func (*ServerHello) ProtoMessage()
- func (x *ServerHello) ProtoReflect() protoreflect.Message
- func (x *ServerHello) Reset()
- func (x *ServerHello) String() string
- type ServerInfo
- func (*ServerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ServerInfo) GetClientListenAddr() string
- func (x *ServerInfo) GetGateListenAddr() string
- func (x *ServerInfo) GetLastActiveTime() int64
- func (x *ServerInfo) GetPing() int32
- func (x *ServerInfo) GetServerId() int32
- func (x *ServerInfo) GetServerListenAddr() string
- func (x *ServerInfo) GetServerType() string
- func (*ServerInfo) ProtoMessage()
- func (x *ServerInfo) ProtoReflect() protoreflect.Message
- func (x *ServerInfo) Reset()
- func (x *ServerInfo) String() string
- type ShutdownReq
- type StartupReq
- type TestCmd
- type TimeType
- type UniqueCountItem
- func (*UniqueCountItem) Descriptor() ([]byte, []int)deprecated
- func (x *UniqueCountItem) GetCfgId() int32
- func (x *UniqueCountItem) GetTimeout() int32
- func (x *UniqueCountItem) GetUniqueId() int64
- func (*UniqueCountItem) ProtoMessage()
- func (x *UniqueCountItem) ProtoReflect() protoreflect.Message
- func (x *UniqueCountItem) Reset()
- func (x *UniqueCountItem) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Color_name = map[int32]string{ 0: "Color_None", 1: "Color_Red", 2: "Color_Green", 3: "Color_Blue", 4: "Color_Yellow", 5: "Color_Gray", } Color_value = map[string]int32{ "Color_None": 0, "Color_Red": 1, "Color_Green": 2, "Color_Blue": 3, "Color_Yellow": 4, "Color_Gray": 5, } )
Enum value maps for Color.
var ( RefreshType_name = map[int32]string{ 0: "RefreshType_None", 1: "RefreshType_Day", } RefreshType_value = map[string]int32{ "RefreshType_None": 0, "RefreshType_Day": 1, } )
Enum value maps for RefreshType.
var ( TimeType_name = map[int32]string{ 0: "TimeType_None", 1: "TimeType_Timestamp", 2: "TimeType_Date", } TimeType_value = map[string]int32{ "TimeType_None": 0, "TimeType_Timestamp": 1, "TimeType_Date": 2, } )
Enum value maps for TimeType.
var ( ItemType_name = map[int32]string{ 0: "ItemType_None", 1: "ItemType_Equip", } ItemType_value = map[string]int32{ "ItemType_None": 0, "ItemType_Equip": 1, } )
Enum value maps for ItemType.
var ( QuestType_name = map[int32]string{ 0: "QuestType_None", 1: "QuestType_SubQuest", } QuestType_value = map[string]int32{ "QuestType_None": 0, "QuestType_SubQuest": 1, } )
Enum value maps for QuestType.
var ( CmdClient_name = map[int32]string{ 0: "CmdClient_None", 1: "Cmd_HeartBeatReq", 2: "Cmd_HeartBeatRes", 3: "Cmd_ErrorRes", 4: "Cmd_GateRouteClientPacketError", 1001: "Cmd_LoginReq", 1002: "Cmd_LoginRes", 1003: "Cmd_AccountReg", 1004: "Cmd_AccountRes", 1005: "Cmd_PlayerEntryGameReq", 1006: "Cmd_PlayerEntryGameRes", 1007: "Cmd_CreatePlayerReq", 1008: "Cmd_CreatePlayerRes", 1009: "Cmd_TestCmd", 1101: "Cmd_CoinReq", 1102: "Cmd_CoinRes", 1201: "Cmd_FinishQuestReq", 1202: "Cmd_FinishQuestRes", 2001: "Cmd_GuildListReq", 2002: "Cmd_GuildListRes", 2003: "Cmd_GuildCreateReq", 2004: "Cmd_GuildCreateRes", 2005: "Cmd_GuildJoinReq", 2006: "Cmd_GuildJoinRes", 2007: "Cmd_GuildJoinAgreeReq", 2008: "Cmd_GuildJoinAgreeRes", 2009: "Cmd_GuildDataViewReq", 2010: "Cmd_GuildDataViewRes", 2012: "Cmd_GuildJoinReqTip", 2013: "Cmd_GuildJoinReqOpResult", } CmdClient_value = map[string]int32{ "CmdClient_None": 0, "Cmd_HeartBeatReq": 1, "Cmd_HeartBeatRes": 2, "Cmd_ErrorRes": 3, "Cmd_GateRouteClientPacketError": 4, "Cmd_LoginReq": 1001, "Cmd_LoginRes": 1002, "Cmd_AccountReg": 1003, "Cmd_AccountRes": 1004, "Cmd_PlayerEntryGameReq": 1005, "Cmd_PlayerEntryGameRes": 1006, "Cmd_CreatePlayerReq": 1007, "Cmd_CreatePlayerRes": 1008, "Cmd_TestCmd": 1009, "Cmd_CoinReq": 1101, "Cmd_CoinRes": 1102, "Cmd_FinishQuestReq": 1201, "Cmd_FinishQuestRes": 1202, "Cmd_GuildListReq": 2001, "Cmd_GuildListRes": 2002, "Cmd_GuildCreateReq": 2003, "Cmd_GuildCreateRes": 2004, "Cmd_GuildJoinReq": 2005, "Cmd_GuildJoinRes": 2006, "Cmd_GuildJoinAgreeReq": 2007, "Cmd_GuildJoinAgreeRes": 2008, "Cmd_GuildDataViewReq": 2009, "Cmd_GuildDataViewRes": 2010, "Cmd_GuildJoinReqTip": 2012, "Cmd_GuildJoinReqOpResult": 2013, } )
Enum value maps for CmdClient.
var ( CmdServer_name = map[int32]string{ 0: "CmdServer_None", 30001: "Cmd_ServerHello", 30002: "Cmd_ClientDisconnect", 31001: "Cmd_KickPlayerReq", 31002: "Cmd_KickPlayerRes", 32001: "Cmd_PlayerEntryGameOk", 33001: "Cmd_RoutePlayerMessage", 33003: "Cmd_GuildRoutePlayerMessageReq", 34001: "Cmd_StartupReq", 34002: "Cmd_ShutdownReq", } CmdServer_value = map[string]int32{ "CmdServer_None": 0, "Cmd_ServerHello": 30001, "Cmd_ClientDisconnect": 30002, "Cmd_KickPlayerReq": 31001, "Cmd_KickPlayerRes": 31002, "Cmd_PlayerEntryGameOk": 32001, "Cmd_RoutePlayerMessage": 33001, "Cmd_GuildRoutePlayerMessageReq": 33003, "Cmd_StartupReq": 34001, "Cmd_ShutdownReq": 34002, } )
Enum value maps for CmdServer.
var ( ConditionType_name = map[int32]string{ 0: "ConditionType_None", 1: "ConditionType_PlayerPropertyCompare", 2: "ConditionType_ActivityPropertyCompare", } ConditionType_value = map[string]int32{ "ConditionType_None": 0, "ConditionType_PlayerPropertyCompare": 1, "ConditionType_ActivityPropertyCompare": 2, } )
Enum value maps for ConditionType.
var ( GuildPosition_name = map[int32]string{ 0: "Member", 1: "Manager", 2: "Leader", } GuildPosition_value = map[string]int32{ "Member": 0, "Manager": 1, "Leader": 2, } )
Enum value maps for GuildPosition.
var ( ProgressType_name = map[int32]string{ 0: "ProgressType_None", 1: "ProgressType_Event", 2: "ProgressType_PlayerProperty", 3: "ProgressType_ActivityProperty", } ProgressType_value = map[string]int32{ "ProgressType_None": 0, "ProgressType_Event": 1, "ProgressType_PlayerProperty": 2, "ProgressType_ActivityProperty": 3, } )
Enum value maps for ProgressType.
var ( CountType_name = map[int32]string{ 0: "CountType_None", 1: "CountType_Counter", 2: "CountType_Reset", 3: "CountType_EventField", } CountType_value = map[string]int32{ "CountType_None": 0, "CountType_Counter": 1, "CountType_Reset": 2, "CountType_EventField": 3, } )
Enum value maps for CountType.
var File_account_proto protoreflect.FileDescriptor
var File_activity_proto protoreflect.FileDescriptor
var File_baseinfo_proto protoreflect.FileDescriptor
var File_cfg_proto protoreflect.FileDescriptor
var File_client_base_proto protoreflect.FileDescriptor
var File_cmd_client_proto protoreflect.FileDescriptor
var File_cmd_server_proto protoreflect.FileDescriptor
var File_condition_proto protoreflect.FileDescriptor
var File_global_entity_proto protoreflect.FileDescriptor
var File_guild_proto protoreflect.FileDescriptor
var File_item_proto protoreflect.FileDescriptor
var File_login_proto protoreflect.FileDescriptor
var File_money_proto protoreflect.FileDescriptor
var File_player_proto protoreflect.FileDescriptor
var File_progress_proto protoreflect.FileDescriptor
var File_quest_proto protoreflect.FileDescriptor
var File_route_proto protoreflect.FileDescriptor
var File_server_base_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { XId int64 `protobuf:"varint,1,opt,name=_id,json=Id,proto3" json:"_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
账号
func (*Account) Descriptor
deprecated
func (*Account) GetPassword ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountReg ¶
type AccountReg struct { AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
注册账号
func (*AccountReg) Descriptor
deprecated
func (*AccountReg) Descriptor() ([]byte, []int)
Deprecated: Use AccountReg.ProtoReflect.Descriptor instead.
func (*AccountReg) GetAccountName ¶
func (x *AccountReg) GetAccountName() string
func (*AccountReg) GetPassword ¶
func (x *AccountReg) GetPassword() string
func (*AccountReg) ProtoMessage ¶
func (*AccountReg) ProtoMessage()
func (*AccountReg) ProtoReflect ¶
func (x *AccountReg) ProtoReflect() protoreflect.Message
func (*AccountReg) Reset ¶
func (x *AccountReg) Reset()
func (*AccountReg) String ¶
func (x *AccountReg) String() string
type AccountRes ¶
type AccountRes struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` AccountName string `protobuf:"bytes,2,opt,name=accountName,proto3" json:"accountName,omitempty"` AccountId int64 `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"` // contains filtered or unexported fields }
注册账号回复
func (*AccountRes) Descriptor
deprecated
func (*AccountRes) Descriptor() ([]byte, []int)
Deprecated: Use AccountRes.ProtoReflect.Descriptor instead.
func (*AccountRes) GetAccountId ¶
func (x *AccountRes) GetAccountId() int64
func (*AccountRes) GetAccountName ¶
func (x *AccountRes) GetAccountName() string
func (*AccountRes) GetError ¶
func (x *AccountRes) GetError() string
func (*AccountRes) ProtoMessage ¶
func (*AccountRes) ProtoMessage()
func (*AccountRes) ProtoReflect ¶
func (x *AccountRes) ProtoReflect() protoreflect.Message
func (*AccountRes) Reset ¶
func (x *AccountRes) Reset()
func (*AccountRes) String ¶
func (x *AccountRes) String() string
type ActivityCfg ¶
type ActivityCfg struct { CfgId int32 `protobuf:"varint,1,opt,name=CfgId,proto3" json:"CfgId,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Detail string `protobuf:"bytes,3,opt,name=Detail,proto3" json:"Detail,omitempty"` Template string `protobuf:"bytes,4,opt,name=Template,proto3" json:"Template,omitempty"` // 活动模板 RefreshType int32 `protobuf:"varint,5,opt,name=RefreshType,proto3" json:"RefreshType,omitempty"` // 刷新机制 CycleType int32 `protobuf:"varint,6,opt,name=CycleType,proto3" json:"CycleType,omitempty"` // 活动周期 TimeType int32 `protobuf:"varint,7,opt,name=TimeType,proto3" json:"TimeType,omitempty"` // 时间类型 BeginTime int32 `protobuf:"varint,8,opt,name=BeginTime,proto3" json:"BeginTime,omitempty"` // 开始时间 EndTime int32 `protobuf:"varint,9,opt,name=EndTime,proto3" json:"EndTime,omitempty"` // 结束时间 ExchangeIds []int32 `protobuf:"varint,10,rep,packed,name=ExchangeIds,proto3" json:"ExchangeIds,omitempty"` // 兑换配置 IsOff bool `protobuf:"varint,11,opt,name=IsOff,proto3" json:"IsOff,omitempty"` // 是否关闭 RemoveDataWhenEnd bool `protobuf:"varint,12,opt,name=RemoveDataWhenEnd,proto3" json:"RemoveDataWhenEnd,omitempty"` // 活动结束时,是否删除活动数据 MinPlayerLevel int32 `protobuf:"varint,14,opt,name=MinPlayerLevel,proto3" json:"MinPlayerLevel,omitempty"` // 参与活动的最低玩家等级要求 MaxPlayerLevel int32 `protobuf:"varint,15,opt,name=MaxPlayerLevel,proto3" json:"MaxPlayerLevel,omitempty"` // 参与活动的最大玩家等级上限 QuestIds []int32 `protobuf:"varint,16,rep,packed,name=QuestIds,proto3" json:"QuestIds,omitempty"` // 活动子任务 Properties map[string]string `` // 扩展属性 /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
活动基础配置
func (*ActivityCfg) Descriptor
deprecated
func (*ActivityCfg) Descriptor() ([]byte, []int)
Deprecated: Use ActivityCfg.ProtoReflect.Descriptor instead.
func (*ActivityCfg) GetBeginTime ¶
func (x *ActivityCfg) GetBeginTime() int32
func (*ActivityCfg) GetCfgId ¶
func (x *ActivityCfg) GetCfgId() int32
func (*ActivityCfg) GetCycleType ¶
func (x *ActivityCfg) GetCycleType() int32
func (*ActivityCfg) GetDetail ¶
func (x *ActivityCfg) GetDetail() string
func (*ActivityCfg) GetEndTime ¶
func (x *ActivityCfg) GetEndTime() int32
func (*ActivityCfg) GetExchangeIds ¶
func (x *ActivityCfg) GetExchangeIds() []int32
func (*ActivityCfg) GetIsOff ¶
func (x *ActivityCfg) GetIsOff() bool
func (*ActivityCfg) GetMaxPlayerLevel ¶
func (x *ActivityCfg) GetMaxPlayerLevel() int32
func (*ActivityCfg) GetMinPlayerLevel ¶
func (x *ActivityCfg) GetMinPlayerLevel() int32
func (*ActivityCfg) GetName ¶
func (x *ActivityCfg) GetName() string
func (*ActivityCfg) GetProperties ¶
func (x *ActivityCfg) GetProperties() map[string]string
func (*ActivityCfg) GetQuestIds ¶
func (x *ActivityCfg) GetQuestIds() []int32
func (*ActivityCfg) GetRefreshType ¶
func (x *ActivityCfg) GetRefreshType() int32
func (*ActivityCfg) GetRemoveDataWhenEnd ¶
func (x *ActivityCfg) GetRemoveDataWhenEnd() bool
func (*ActivityCfg) GetTemplate ¶
func (x *ActivityCfg) GetTemplate() string
func (*ActivityCfg) GetTimeType ¶
func (x *ActivityCfg) GetTimeType() int32
func (*ActivityCfg) ProtoMessage ¶
func (*ActivityCfg) ProtoMessage()
func (*ActivityCfg) ProtoReflect ¶
func (x *ActivityCfg) ProtoReflect() protoreflect.Message
func (*ActivityCfg) Reset ¶
func (x *ActivityCfg) Reset()
func (*ActivityCfg) String ¶
func (x *ActivityCfg) String() string
type ActivityDefaultBaseData ¶
type ActivityDefaultBaseData struct { LastUpdateTime int32 `protobuf:"varint,1,opt,name=LastUpdateTime,proto3" json:"LastUpdateTime,omitempty"` // 刷新时间戳 Progresses map[int32]*ActivityProgressData `` // 进度数据 /* 162-byte string literal not displayed */ ExchangeRecord map[int32]int32 `` // 兑换记录 /* 171-byte string literal not displayed */ JoinTime int32 `protobuf:"varint,4,opt,name=JoinTime,proto3" json:"JoinTime,omitempty"` // 参加活动的时间(时间戳) // contains filtered or unexported fields }
默认活动模板的基础数据
func (*ActivityDefaultBaseData) Descriptor
deprecated
func (*ActivityDefaultBaseData) Descriptor() ([]byte, []int)
Deprecated: Use ActivityDefaultBaseData.ProtoReflect.Descriptor instead.
func (*ActivityDefaultBaseData) GetExchangeRecord ¶
func (x *ActivityDefaultBaseData) GetExchangeRecord() map[int32]int32
func (*ActivityDefaultBaseData) GetJoinTime ¶
func (x *ActivityDefaultBaseData) GetJoinTime() int32
func (*ActivityDefaultBaseData) GetLastUpdateTime ¶
func (x *ActivityDefaultBaseData) GetLastUpdateTime() int32
func (*ActivityDefaultBaseData) GetProgresses ¶
func (x *ActivityDefaultBaseData) GetProgresses() map[int32]*ActivityProgressData
func (*ActivityDefaultBaseData) ProtoMessage ¶
func (*ActivityDefaultBaseData) ProtoMessage()
func (*ActivityDefaultBaseData) ProtoReflect ¶
func (x *ActivityDefaultBaseData) ProtoReflect() protoreflect.Message
func (*ActivityDefaultBaseData) Reset ¶
func (x *ActivityDefaultBaseData) Reset()
func (*ActivityDefaultBaseData) String ¶
func (x *ActivityDefaultBaseData) String() string
type ActivityProgressData ¶
type ActivityProgressData struct { CfgId int32 `protobuf:"varint,1,opt,name=cfgId,proto3" json:"cfgId,omitempty"` // 配置id Progress int32 `protobuf:"varint,2,opt,name=progress,proto3" json:"progress,omitempty"` // 进度 IsReceiveReward bool `protobuf:"varint,3,opt,name=isReceiveReward,proto3" json:"isReceiveReward,omitempty"` // 是否领取了奖励 // contains filtered or unexported fields }
活动任务进度数据
func (*ActivityProgressData) Descriptor
deprecated
func (*ActivityProgressData) Descriptor() ([]byte, []int)
Deprecated: Use ActivityProgressData.ProtoReflect.Descriptor instead.
func (*ActivityProgressData) GetCfgId ¶
func (x *ActivityProgressData) GetCfgId() int32
func (*ActivityProgressData) GetIsReceiveReward ¶
func (x *ActivityProgressData) GetIsReceiveReward() bool
func (*ActivityProgressData) GetProgress ¶
func (x *ActivityProgressData) GetProgress() int32
func (*ActivityProgressData) ProtoMessage ¶
func (*ActivityProgressData) ProtoMessage()
func (*ActivityProgressData) ProtoReflect ¶
func (x *ActivityProgressData) ProtoReflect() protoreflect.Message
func (*ActivityProgressData) Reset ¶
func (x *ActivityProgressData) Reset()
func (*ActivityProgressData) SetProgress ¶
func (x *ActivityProgressData) SetProgress(progress int32)
实现ProgressHolder接口
func (*ActivityProgressData) String ¶
func (x *ActivityProgressData) String() string
type AddItemArg ¶
type AddItemArg struct { CfgId int32 `protobuf:"varint,1,opt,name=CfgId,proto3" json:"CfgId,omitempty"` // 物品配置id Num int32 `protobuf:"varint,2,opt,name=Num,proto3" json:"Num,omitempty"` // 物品数量 TimeType int32 `protobuf:"varint,3,opt,name=TimeType,proto3" json:"TimeType,omitempty"` // 时间类型(enum TimeType) Timeout int32 `protobuf:"varint,4,opt,name=Timeout,proto3" json:"Timeout,omitempty"` // 结束时间 Source int32 `protobuf:"varint,5,opt,name=Source,proto3" json:"Source,omitempty"` // 来源(一般用于数据分析) // contains filtered or unexported fields }
添加物品参数
func (*AddItemArg) Descriptor
deprecated
func (*AddItemArg) Descriptor() ([]byte, []int)
Deprecated: Use AddItemArg.ProtoReflect.Descriptor instead.
func (*AddItemArg) GetCfgId ¶
func (x *AddItemArg) GetCfgId() int32
func (*AddItemArg) GetNum ¶
func (x *AddItemArg) GetNum() int32
func (*AddItemArg) GetSource ¶
func (x *AddItemArg) GetSource() int32
func (*AddItemArg) GetTimeType ¶
func (x *AddItemArg) GetTimeType() int32
func (*AddItemArg) GetTimeout ¶
func (x *AddItemArg) GetTimeout() int32
func (*AddItemArg) ProtoMessage ¶
func (*AddItemArg) ProtoMessage()
func (*AddItemArg) ProtoReflect ¶
func (x *AddItemArg) ProtoReflect() protoreflect.Message
func (*AddItemArg) Reset ¶
func (x *AddItemArg) Reset()
func (*AddItemArg) String ¶
func (x *AddItemArg) String() string
type BagSaveData ¶
type BagSaveData struct { CountItem map[int32]int32 `` /* 161-byte string literal not displayed */ UniqueItem map[int64][]byte `` /* 162-byte string literal not displayed */ Equip map[int64][]byte `` /* 152-byte string literal not displayed */ // contains filtered or unexported fields }
背包模块数据
func (*BagSaveData) Descriptor
deprecated
func (*BagSaveData) Descriptor() ([]byte, []int)
Deprecated: Use BagSaveData.ProtoReflect.Descriptor instead.
func (*BagSaveData) GetCountItem ¶
func (x *BagSaveData) GetCountItem() map[int32]int32
func (*BagSaveData) GetEquip ¶
func (x *BagSaveData) GetEquip() map[int64][]byte
func (*BagSaveData) GetUniqueItem ¶
func (x *BagSaveData) GetUniqueItem() map[int64][]byte
func (*BagSaveData) ProtoMessage ¶
func (*BagSaveData) ProtoMessage()
func (*BagSaveData) ProtoReflect ¶
func (x *BagSaveData) ProtoReflect() protoreflect.Message
func (*BagSaveData) Reset ¶
func (x *BagSaveData) Reset()
func (*BagSaveData) String ¶
func (x *BagSaveData) String() string
type BaseInfo ¶
type BaseInfo struct { Gender int32 `protobuf:"varint,1,opt,name=gender,proto3" json:"gender,omitempty"` // 性别 Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` // 等级 Exp int32 `protobuf:"varint,3,opt,name=exp,proto3" json:"exp,omitempty"` // 经验值 TotalPay int32 `protobuf:"varint,4,opt,name=totalPay,proto3" json:"totalPay,omitempty"` // 累充总额 LastUpdateDate int32 `protobuf:"varint,5,opt,name=lastUpdateDate,proto3" json:"lastUpdateDate,omitempty"` // 上次刷新日期,格式:yyyymmdd LastLoginTimestamp int64 `protobuf:"varint,6,opt,name=lastLoginTimestamp,proto3" json:"lastLoginTimestamp,omitempty"` // 最近一次登录时间戳 LastLogoutTimestamp int64 `protobuf:"varint,7,opt,name=lastLogoutTimestamp,proto3" json:"lastLogoutTimestamp,omitempty"` // 最近一次退出时间戳 TotalOnlineSeconds int32 `protobuf:"varint,8,opt,name=totalOnlineSeconds,proto3" json:"totalOnlineSeconds,omitempty"` // 总在线时长(秒) // contains filtered or unexported fields }
玩家基础信息
func (*BaseInfo) Descriptor
deprecated
func (*BaseInfo) GetLastLoginTimestamp ¶
func (*BaseInfo) GetLastLogoutTimestamp ¶
func (*BaseInfo) GetLastUpdateDate ¶
func (*BaseInfo) GetTotalOnlineSeconds ¶
func (*BaseInfo) GetTotalPay ¶
func (*BaseInfo) ProtoMessage ¶
func (*BaseInfo) ProtoMessage()
func (*BaseInfo) ProtoReflect ¶
func (x *BaseInfo) ProtoReflect() protoreflect.Message
type CfgArg ¶
type CfgArg struct { CfgId int32 `protobuf:"varint,1,opt,name=CfgId,proto3" json:"CfgId,omitempty"` // 配置id Arg int32 `protobuf:"varint,2,opt,name=Arg,proto3" json:"Arg,omitempty"` // 参数 // contains filtered or unexported fields }
CfgId + Arg
func (*CfgArg) Descriptor
deprecated
func (*CfgArg) ProtoMessage ¶
func (*CfgArg) ProtoMessage()
func (*CfgArg) ProtoReflect ¶
func (x *CfgArg) ProtoReflect() protoreflect.Message
type ClientDisconnect ¶
type ClientDisconnect struct { ClientConnId uint32 `protobuf:"varint,1,opt,name=clientConnId,proto3" json:"clientConnId,omitempty"` // contains filtered or unexported fields }
客户端掉线
func (*ClientDisconnect) Descriptor
deprecated
func (*ClientDisconnect) Descriptor() ([]byte, []int)
Deprecated: Use ClientDisconnect.ProtoReflect.Descriptor instead.
func (*ClientDisconnect) GetClientConnId ¶
func (x *ClientDisconnect) GetClientConnId() uint32
func (*ClientDisconnect) ProtoMessage ¶
func (*ClientDisconnect) ProtoMessage()
func (*ClientDisconnect) ProtoReflect ¶
func (x *ClientDisconnect) ProtoReflect() protoreflect.Message
func (*ClientDisconnect) Reset ¶
func (x *ClientDisconnect) Reset()
func (*ClientDisconnect) String ¶
func (x *ClientDisconnect) String() string
type CmdClient ¶
type CmdClient int32
const ( CmdClient_CmdClient_None CmdClient = 0 // 解决"The first enum value must be zero in proto3."的报错 CmdClient_Cmd_HeartBeatReq CmdClient = 1 // 心跳请求 CmdClient_Cmd_HeartBeatRes CmdClient = 2 // 心跳返回 CmdClient_Cmd_ErrorRes CmdClient = 3 // 通用的错误返回消息 CmdClient_Cmd_GateRouteClientPacketError CmdClient = 4 // 网关转发客户端消息到其他服务器,发生错误 // Login CmdClient_Cmd_LoginReq CmdClient = 1001 CmdClient_Cmd_LoginRes CmdClient = 1002 CmdClient_Cmd_AccountReg CmdClient = 1003 CmdClient_Cmd_AccountRes CmdClient = 1004 CmdClient_Cmd_PlayerEntryGameReq CmdClient = 1005 CmdClient_Cmd_PlayerEntryGameRes CmdClient = 1006 CmdClient_Cmd_CreatePlayerReq CmdClient = 1007 CmdClient_Cmd_CreatePlayerRes CmdClient = 1008 CmdClient_Cmd_TestCmd CmdClient = 1009 // 测试命令 // Money CmdClient_Cmd_CoinReq CmdClient = 1101 // 请求加coin的测试消息 CmdClient_Cmd_CoinRes CmdClient = 1102 // Quest CmdClient_Cmd_FinishQuestReq CmdClient = 1201 // 完成任务 CmdClient_Cmd_FinishQuestRes CmdClient = 1202 // 完成任务的返回结果 // Guild CmdClient_Cmd_GuildListReq CmdClient = 2001 // 公会列表查看 CmdClient_Cmd_GuildListRes CmdClient = 2002 CmdClient_Cmd_GuildCreateReq CmdClient = 2003 // 创建公会 CmdClient_Cmd_GuildCreateRes CmdClient = 2004 CmdClient_Cmd_GuildJoinReq CmdClient = 2005 // 请求加入某个公会 CmdClient_Cmd_GuildJoinRes CmdClient = 2006 CmdClient_Cmd_GuildJoinAgreeReq CmdClient = 2007 // 公会管理员处理入会请求 CmdClient_Cmd_GuildJoinAgreeRes CmdClient = 2008 CmdClient_Cmd_GuildDataViewReq CmdClient = 2009 // 查看本公会的数据 CmdClient_Cmd_GuildDataViewRes CmdClient = 2010 CmdClient_Cmd_GuildJoinReqTip CmdClient = 2012 // 公会入户申请的提示 CmdClient_Cmd_GuildJoinReqOpResult CmdClient = 2013 // 自己的入会申请的操作结果 )
func (CmdClient) Descriptor ¶
func (CmdClient) Descriptor() protoreflect.EnumDescriptor
func (CmdClient) EnumDescriptor
deprecated
func (CmdClient) Number ¶
func (x CmdClient) Number() protoreflect.EnumNumber
func (CmdClient) Type ¶
func (CmdClient) Type() protoreflect.EnumType
type CmdServer ¶
type CmdServer int32
const ( CmdServer_CmdServer_None CmdServer = 0 // 解决"The first enum value must be zero in proto3."的报错 CmdServer_Cmd_ServerHello CmdServer = 30001 // 服务器连接上其他服务器时,发的初始化信息 CmdServer_Cmd_ClientDisconnect CmdServer = 30002 // 客户端掉线 CmdServer_Cmd_KickPlayerReq CmdServer = 31001 // 踢玩家下线req CmdServer_Cmd_KickPlayerRes CmdServer = 31002 // 踢玩家下线res // BaseInfo CmdServer_Cmd_PlayerEntryGameOk CmdServer = 32001 // 玩家进游戏服成功 // route CmdServer_Cmd_RoutePlayerMessage CmdServer = 33001 CmdServer_Cmd_GuildRoutePlayerMessageReq CmdServer = 33003 // GlobalEntity CmdServer_Cmd_StartupReq CmdServer = 34001 CmdServer_Cmd_ShutdownReq CmdServer = 34002 )
func (CmdServer) Descriptor ¶
func (CmdServer) Descriptor() protoreflect.EnumDescriptor
func (CmdServer) EnumDescriptor
deprecated
func (CmdServer) Number ¶
func (x CmdServer) Number() protoreflect.EnumNumber
func (CmdServer) Type ¶
func (CmdServer) Type() protoreflect.EnumType
type CoinReq ¶
type CoinReq struct { AddCoin int32 `protobuf:"varint,1,opt,name=addCoin,proto3" json:"addCoin,omitempty"` // 加多少 // contains filtered or unexported fields }
请求加coin的测试消息
func (*CoinReq) Descriptor
deprecated
func (*CoinReq) GetAddCoin ¶
func (*CoinReq) ProtoMessage ¶
func (*CoinReq) ProtoMessage()
func (*CoinReq) ProtoReflect ¶
func (x *CoinReq) ProtoReflect() protoreflect.Message
type CoinRes ¶
type CoinRes struct { TotalCoin int32 `protobuf:"varint,1,opt,name=totalCoin,proto3" json:"totalCoin,omitempty"` // 当前总值 // contains filtered or unexported fields }
请求加coin的返回结果
func (*CoinRes) Descriptor
deprecated
func (*CoinRes) GetTotalCoin ¶
func (*CoinRes) ProtoMessage ¶
func (*CoinRes) ProtoMessage()
func (*CoinRes) ProtoReflect ¶
func (x *CoinRes) ProtoReflect() protoreflect.Message
type Color ¶
type Color int32
func (Color) Descriptor ¶
func (Color) Descriptor() protoreflect.EnumDescriptor
func (Color) EnumDescriptor
deprecated
func (Color) Number ¶
func (x Color) Number() protoreflect.EnumNumber
func (Color) Type ¶
func (Color) Type() protoreflect.EnumType
type ConditionCfg ¶
type ConditionCfg struct { Type int32 `protobuf:"varint,1,opt,name=Type,proto3" json:"Type,omitempty"` // 条件类型(enum ConditionType) Key string `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"` // 关键字,如ConditionType_PlayerPropertyCompare对应的属性名 Op string `protobuf:"bytes,3,opt,name=Op,proto3" json:"Op,omitempty"` // 操作符 = > >= < <= Arg int32 `protobuf:"varint,4,opt,name=Arg,proto3" json:"Arg,omitempty"` // 参数 Properties map[string]string `` // 扩展属性 /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
条件配置
func (*ConditionCfg) Descriptor
deprecated
func (*ConditionCfg) Descriptor() ([]byte, []int)
Deprecated: Use ConditionCfg.ProtoReflect.Descriptor instead.
func (*ConditionCfg) GetArg ¶
func (x *ConditionCfg) GetArg() int32
func (*ConditionCfg) GetKey ¶
func (x *ConditionCfg) GetKey() string
func (*ConditionCfg) GetOp ¶
func (x *ConditionCfg) GetOp() string
func (*ConditionCfg) GetProperties ¶
func (x *ConditionCfg) GetProperties() map[string]string
func (*ConditionCfg) GetType ¶
func (x *ConditionCfg) GetType() int32
func (*ConditionCfg) ProtoMessage ¶
func (*ConditionCfg) ProtoMessage()
func (*ConditionCfg) ProtoReflect ¶
func (x *ConditionCfg) ProtoReflect() protoreflect.Message
func (*ConditionCfg) Reset ¶
func (x *ConditionCfg) Reset()
func (*ConditionCfg) String ¶
func (x *ConditionCfg) String() string
type ConditionTemplateCfg ¶
type ConditionTemplateCfg struct { CfgId int32 `protobuf:"varint,4,opt,name=CfgId,proto3" json:"CfgId,omitempty"` // 配置id Type int32 `protobuf:"varint,1,opt,name=Type,proto3" json:"Type,omitempty"` // 条件类型(enum ConditionType) Key string `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"` // 关键字,如ConditionType_PlayerPropertyCompare对应的属性名 Op string `protobuf:"bytes,3,opt,name=Op,proto3" json:"Op,omitempty"` // 操作符 = > >= < <= Properties map[string]string `` // 扩展属性 /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
条件模板配置
func (*ConditionTemplateCfg) Descriptor
deprecated
func (*ConditionTemplateCfg) Descriptor() ([]byte, []int)
Deprecated: Use ConditionTemplateCfg.ProtoReflect.Descriptor instead.
func (*ConditionTemplateCfg) GetCfgId ¶
func (x *ConditionTemplateCfg) GetCfgId() int32
func (*ConditionTemplateCfg) GetKey ¶
func (x *ConditionTemplateCfg) GetKey() string
func (*ConditionTemplateCfg) GetOp ¶
func (x *ConditionTemplateCfg) GetOp() string
func (*ConditionTemplateCfg) GetProperties ¶
func (x *ConditionTemplateCfg) GetProperties() map[string]string
func (*ConditionTemplateCfg) GetType ¶
func (x *ConditionTemplateCfg) GetType() int32
func (*ConditionTemplateCfg) ProtoMessage ¶
func (*ConditionTemplateCfg) ProtoMessage()
func (*ConditionTemplateCfg) ProtoReflect ¶
func (x *ConditionTemplateCfg) ProtoReflect() protoreflect.Message
func (*ConditionTemplateCfg) Reset ¶
func (x *ConditionTemplateCfg) Reset()
func (*ConditionTemplateCfg) String ¶
func (x *ConditionTemplateCfg) String() string
type ConditionType ¶
type ConditionType int32
条件类型
const ( ConditionType_ConditionType_None ConditionType = 0 // 解决"The first enum value must be zero in proto3."的报错 ConditionType_ConditionType_PlayerPropertyCompare ConditionType = 1 // 玩家属性值比较 ConditionType_ConditionType_ActivityPropertyCompare ConditionType = 2 // 活动属性值比较 )
func (ConditionType) Descriptor ¶
func (ConditionType) Descriptor() protoreflect.EnumDescriptor
func (ConditionType) Enum ¶
func (x ConditionType) Enum() *ConditionType
func (ConditionType) EnumDescriptor
deprecated
func (ConditionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConditionType.Descriptor instead.
func (ConditionType) Number ¶
func (x ConditionType) Number() protoreflect.EnumNumber
func (ConditionType) String ¶
func (x ConditionType) String() string
func (ConditionType) Type ¶
func (ConditionType) Type() protoreflect.EnumType
type CountItem ¶
type CountItem struct { CfgId int32 `protobuf:"varint,1,opt,name=cfgId,proto3" json:"cfgId,omitempty"` // 物品配置id Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 物品数量 // contains filtered or unexported fields }
可数的普通物品(可叠加的)
func (*CountItem) Descriptor
deprecated
func (*CountItem) ProtoMessage ¶
func (*CountItem) ProtoMessage()
func (*CountItem) ProtoReflect ¶
func (x *CountItem) ProtoReflect() protoreflect.Message
type CountType ¶
type CountType int32
进度计数类型
const ( CountType_CountType_None CountType = 0 // 解决"The first enum value must be zero in proto3."的报错 // 简单计数,每触发一次事件,进度+1 // example: // 进度: 进行10场战斗 // 每触发一次战斗事件,进度就+1(或者事件字段的值) CountType_CountType_Counter CountType = 1 // 每次事件触发时,重置进度 // example: // 进度: 升到10级 // 每触发一次升级事件,进度重置为当前等级 CountType_CountType_Reset CountType = 2 // 事件的某个字段作为进度增加值 // example: // 进度: 在商店购买10个药水 // 单次批量购买4个药水,触发购买事件,假设事件的其中一个字段是购买数量(这里就是4),则进度+4 CountType_CountType_EventField CountType = 3 )
func (CountType) Descriptor ¶
func (CountType) Descriptor() protoreflect.EnumDescriptor
func (CountType) EnumDescriptor
deprecated
func (CountType) Number ¶
func (x CountType) Number() protoreflect.EnumNumber
func (CountType) Type ¶
func (CountType) Type() protoreflect.EnumType
type CreatePlayerReq ¶
type CreatePlayerReq struct { AccountId int64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"` LoginSession string `protobuf:"bytes,2,opt,name=loginSession,proto3" json:"loginSession,omitempty"` // 账号验证成功后的缓存session RegionId int32 `protobuf:"varint,3,opt,name=regionId,proto3" json:"regionId,omitempty"` // 区服id Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 玩家名 Gender int32 `protobuf:"varint,5,opt,name=gender,proto3" json:"gender,omitempty"` // 性别 // contains filtered or unexported fields }
创建角色
func (*CreatePlayerReq) Descriptor
deprecated
func (*CreatePlayerReq) Descriptor() ([]byte, []int)
Deprecated: Use CreatePlayerReq.ProtoReflect.Descriptor instead.
func (*CreatePlayerReq) GetAccountId ¶
func (x *CreatePlayerReq) GetAccountId() int64
func (*CreatePlayerReq) GetGender ¶
func (x *CreatePlayerReq) GetGender() int32
func (*CreatePlayerReq) GetLoginSession ¶
func (x *CreatePlayerReq) GetLoginSession() string
func (*CreatePlayerReq) GetName ¶
func (x *CreatePlayerReq) GetName() string
func (*CreatePlayerReq) GetRegionId ¶
func (x *CreatePlayerReq) GetRegionId() int32
func (*CreatePlayerReq) ProtoMessage ¶
func (*CreatePlayerReq) ProtoMessage()
func (*CreatePlayerReq) ProtoReflect ¶
func (x *CreatePlayerReq) ProtoReflect() protoreflect.Message
func (*CreatePlayerReq) Reset ¶
func (x *CreatePlayerReq) Reset()
func (*CreatePlayerReq) String ¶
func (x *CreatePlayerReq) String() string
type CreatePlayerRes ¶
type CreatePlayerRes struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` AccountId int64 `protobuf:"varint,2,opt,name=accountId,proto3" json:"accountId,omitempty"` RegionId int32 `protobuf:"varint,3,opt,name=regionId,proto3" json:"regionId,omitempty"` // 区服id Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 玩家名 // contains filtered or unexported fields }
创建角色
func (*CreatePlayerRes) Descriptor
deprecated
func (*CreatePlayerRes) Descriptor() ([]byte, []int)
Deprecated: Use CreatePlayerRes.ProtoReflect.Descriptor instead.
func (*CreatePlayerRes) GetAccountId ¶
func (x *CreatePlayerRes) GetAccountId() int64
func (*CreatePlayerRes) GetError ¶
func (x *CreatePlayerRes) GetError() string
func (*CreatePlayerRes) GetName ¶
func (x *CreatePlayerRes) GetName() string
func (*CreatePlayerRes) GetRegionId ¶
func (x *CreatePlayerRes) GetRegionId() int32
func (*CreatePlayerRes) ProtoMessage ¶
func (*CreatePlayerRes) ProtoMessage()
func (*CreatePlayerRes) ProtoReflect ¶
func (x *CreatePlayerRes) ProtoReflect() protoreflect.Message
func (*CreatePlayerRes) Reset ¶
func (x *CreatePlayerRes) Reset()
func (*CreatePlayerRes) String ¶
func (x *CreatePlayerRes) String() string
type DelItemArg ¶
type DelItemArg struct { UniqueId int64 `protobuf:"varint,1,opt,name=UniqueId,proto3" json:"UniqueId,omitempty"` // 唯一id(删除指定的不可叠加的物品才需要) CfgId int32 `protobuf:"varint,2,opt,name=CfgId,proto3" json:"CfgId,omitempty"` // 物品配置id Num int32 `protobuf:"varint,3,opt,name=Num,proto3" json:"Num,omitempty"` // 物品数量 Source int32 `protobuf:"varint,4,opt,name=Source,proto3" json:"Source,omitempty"` // 来源(一般用于数据分析) // contains filtered or unexported fields }
删除物品参数
func (*DelItemArg) Descriptor
deprecated
func (*DelItemArg) Descriptor() ([]byte, []int)
Deprecated: Use DelItemArg.ProtoReflect.Descriptor instead.
func (*DelItemArg) GetCfgId ¶
func (x *DelItemArg) GetCfgId() int32
func (*DelItemArg) GetNum ¶
func (x *DelItemArg) GetNum() int32
func (*DelItemArg) GetSource ¶
func (x *DelItemArg) GetSource() int32
func (*DelItemArg) GetUniqueId ¶
func (x *DelItemArg) GetUniqueId() int64
func (*DelItemArg) ProtoMessage ¶
func (*DelItemArg) ProtoMessage()
func (*DelItemArg) ProtoReflect ¶
func (x *DelItemArg) ProtoReflect() protoreflect.Message
func (*DelItemArg) Reset ¶
func (x *DelItemArg) Reset()
func (*DelItemArg) String ¶
func (x *DelItemArg) String() string
type Equip ¶
type Equip struct { UniqueId int64 `protobuf:"varint,1,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"` // 唯一id CfgId int32 `protobuf:"varint,2,opt,name=cfgId,proto3" json:"cfgId,omitempty"` // 物品配置id Timeout int32 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间戳(秒) // contains filtered or unexported fields }
装备(不可叠加的)
func (*Equip) Descriptor
deprecated
func (*Equip) GetTimeout ¶
func (*Equip) GetUniqueId ¶
func (*Equip) ProtoMessage ¶
func (*Equip) ProtoMessage()
func (*Equip) ProtoReflect ¶
func (x *Equip) ProtoReflect() protoreflect.Message
type ErrorRes ¶
type ErrorRes struct { Command int32 `protobuf:"varint,1,opt,name=command,proto3" json:"command,omitempty"` // 消息号 ResultId int32 `protobuf:"varint,2,opt,name=resultId,proto3" json:"resultId,omitempty"` // 错误信息id ResultStr string `protobuf:"bytes,3,opt,name=resultStr,proto3" json:"resultStr,omitempty"` // 错误信息内容 // contains filtered or unexported fields }
通用的错误返回消息
func (*ErrorRes) Descriptor
deprecated
func (*ErrorRes) GetCommand ¶
func (*ErrorRes) GetResultId ¶
func (*ErrorRes) GetResultStr ¶
func (*ErrorRes) ProtoMessage ¶
func (*ErrorRes) ProtoMessage()
func (*ErrorRes) ProtoReflect ¶
func (x *ErrorRes) ProtoReflect() protoreflect.Message
type EventActivityProperty ¶
type EventActivityProperty struct { ActivityId int32 `protobuf:"varint,1,opt,name=ActivityId,proto3" json:"ActivityId,omitempty"` PropertyName string `protobuf:"bytes,2,opt,name=PropertyName,proto3" json:"PropertyName,omitempty"` PropertyValue int32 `protobuf:"varint,3,opt,name=PropertyValue,proto3" json:"PropertyValue,omitempty"` // contains filtered or unexported fields }
活动属性值(int32)
func (*EventActivityProperty) Descriptor
deprecated
func (*EventActivityProperty) Descriptor() ([]byte, []int)
Deprecated: Use EventActivityProperty.ProtoReflect.Descriptor instead.
func (*EventActivityProperty) GetActivityId ¶
func (x *EventActivityProperty) GetActivityId() int32
func (*EventActivityProperty) GetPropertyName ¶
func (x *EventActivityProperty) GetPropertyName() string
func (*EventActivityProperty) GetPropertyValue ¶
func (x *EventActivityProperty) GetPropertyValue() int32
func (*EventActivityProperty) ProtoMessage ¶
func (*EventActivityProperty) ProtoMessage()
func (*EventActivityProperty) ProtoReflect ¶
func (x *EventActivityProperty) ProtoReflect() protoreflect.Message
func (*EventActivityProperty) Reset ¶
func (x *EventActivityProperty) Reset()
func (*EventActivityProperty) String ¶
func (x *EventActivityProperty) String() string
type EventFight ¶
type EventFight struct { PlayerId int64 `protobuf:"varint,1,opt,name=PlayerId,proto3" json:"PlayerId,omitempty"` IsPvp bool `protobuf:"varint,2,opt,name=IsPvp,proto3" json:"IsPvp,omitempty"` IsWin bool `protobuf:"varint,3,opt,name=IsWin,proto3" json:"IsWin,omitempty"` // contains filtered or unexported fields }
战斗事件
func (*EventFight) Descriptor
deprecated
func (*EventFight) Descriptor() ([]byte, []int)
Deprecated: Use EventFight.ProtoReflect.Descriptor instead.
func (*EventFight) GetIsPvp ¶
func (x *EventFight) GetIsPvp() bool
func (*EventFight) GetIsWin ¶
func (x *EventFight) GetIsWin() bool
func (*EventFight) GetPlayerId ¶
func (x *EventFight) GetPlayerId() int64
func (*EventFight) ProtoMessage ¶
func (*EventFight) ProtoMessage()
func (*EventFight) ProtoReflect ¶
func (x *EventFight) ProtoReflect() protoreflect.Message
func (*EventFight) Reset ¶
func (x *EventFight) Reset()
func (*EventFight) String ¶
func (x *EventFight) String() string
type EventPlayerProperty ¶
type EventPlayerProperty struct { PlayerId int64 `protobuf:"varint,1,opt,name=PlayerId,proto3" json:"PlayerId,omitempty"` PropertyName string `protobuf:"bytes,2,opt,name=PropertyName,proto3" json:"PropertyName,omitempty"` PropertyValue int32 `protobuf:"varint,3,opt,name=PropertyValue,proto3" json:"PropertyValue,omitempty"` // contains filtered or unexported fields }
玩家属性值(int32)
func (*EventPlayerProperty) Descriptor
deprecated
func (*EventPlayerProperty) Descriptor() ([]byte, []int)
Deprecated: Use EventPlayerProperty.ProtoReflect.Descriptor instead.
func (*EventPlayerProperty) GetPlayerId ¶
func (x *EventPlayerProperty) GetPlayerId() int64
func (*EventPlayerProperty) GetPropertyName ¶
func (x *EventPlayerProperty) GetPropertyName() string
func (*EventPlayerProperty) GetPropertyValue ¶
func (x *EventPlayerProperty) GetPropertyValue() int32
func (*EventPlayerProperty) ProtoMessage ¶
func (*EventPlayerProperty) ProtoMessage()
func (*EventPlayerProperty) ProtoReflect ¶
func (x *EventPlayerProperty) ProtoReflect() protoreflect.Message
func (*EventPlayerProperty) Reset ¶
func (x *EventPlayerProperty) Reset()
func (*EventPlayerProperty) String ¶
func (x *EventPlayerProperty) String() string
type ExchangeCfg ¶
type ExchangeCfg struct { CfgId int32 `protobuf:"varint,1,opt,name=CfgId,proto3" json:"CfgId,omitempty"` Conditions []*ConditionCfg `protobuf:"bytes,2,rep,name=Conditions,proto3" json:"Conditions,omitempty"` // 任务条件 Consumes []*DelItemArg `protobuf:"bytes,3,rep,name=Consumes,proto3" json:"Consumes,omitempty"` // 需要消耗的物品 Rewards []*AddItemArg `protobuf:"bytes,4,rep,name=Rewards,proto3" json:"Rewards,omitempty"` // 获得物品 CountLimit int32 `protobuf:"varint,5,opt,name=CountLimit,proto3" json:"CountLimit,omitempty"` // 兑换次数限制 Properties map[string]string `` // 扩展属性 /* 161-byte string literal not displayed */ ConditionTemplates []*CfgArg `protobuf:"bytes,11,rep,name=ConditionTemplates,proto3" json:"ConditionTemplates,omitempty"` // 关联的配置模板id和参数,简化配置表用,业务代码不要调用 // contains filtered or unexported fields }
兑换配置
func (*ExchangeCfg) Descriptor
deprecated
func (*ExchangeCfg) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeCfg.ProtoReflect.Descriptor instead.
func (*ExchangeCfg) GetCfgId ¶
func (x *ExchangeCfg) GetCfgId() int32
func (*ExchangeCfg) GetConditionTemplates ¶
func (x *ExchangeCfg) GetConditionTemplates() []*CfgArg
func (*ExchangeCfg) GetConditions ¶
func (x *ExchangeCfg) GetConditions() []*ConditionCfg
func (*ExchangeCfg) GetConsumes ¶
func (x *ExchangeCfg) GetConsumes() []*DelItemArg
func (*ExchangeCfg) GetCountLimit ¶
func (x *ExchangeCfg) GetCountLimit() int32
func (*ExchangeCfg) GetProperties ¶
func (x *ExchangeCfg) GetProperties() map[string]string
func (*ExchangeCfg) GetRewards ¶
func (x *ExchangeCfg) GetRewards() []*AddItemArg
func (*ExchangeCfg) ProtoMessage ¶
func (*ExchangeCfg) ProtoMessage()
func (*ExchangeCfg) ProtoReflect ¶
func (x *ExchangeCfg) ProtoReflect() protoreflect.Message
func (*ExchangeCfg) Reset ¶
func (x *ExchangeCfg) Reset()
func (*ExchangeCfg) String ¶
func (x *ExchangeCfg) String() string
type FinishQuestReq ¶
type FinishQuestReq struct { QuestCfgId int32 `protobuf:"varint,1,opt,name=questCfgId,proto3" json:"questCfgId,omitempty"` // 任务id // contains filtered or unexported fields }
完成任务
func (*FinishQuestReq) Descriptor
deprecated
func (*FinishQuestReq) Descriptor() ([]byte, []int)
Deprecated: Use FinishQuestReq.ProtoReflect.Descriptor instead.
func (*FinishQuestReq) GetQuestCfgId ¶
func (x *FinishQuestReq) GetQuestCfgId() int32
func (*FinishQuestReq) ProtoMessage ¶
func (*FinishQuestReq) ProtoMessage()
func (*FinishQuestReq) ProtoReflect ¶
func (x *FinishQuestReq) ProtoReflect() protoreflect.Message
func (*FinishQuestReq) Reset ¶
func (x *FinishQuestReq) Reset()
func (*FinishQuestReq) String ¶
func (x *FinishQuestReq) String() string
type FinishQuestRes ¶
type FinishQuestRes struct { QuestCfgId int32 `protobuf:"varint,1,opt,name=questCfgId,proto3" json:"questCfgId,omitempty"` // 任务id // contains filtered or unexported fields }
完成任务的返回结果
func (*FinishQuestRes) Descriptor
deprecated
func (*FinishQuestRes) Descriptor() ([]byte, []int)
Deprecated: Use FinishQuestRes.ProtoReflect.Descriptor instead.
func (*FinishQuestRes) GetQuestCfgId ¶
func (x *FinishQuestRes) GetQuestCfgId() int32
func (*FinishQuestRes) ProtoMessage ¶
func (*FinishQuestRes) ProtoMessage()
func (*FinishQuestRes) ProtoReflect ¶
func (x *FinishQuestRes) ProtoReflect() protoreflect.Message
func (*FinishQuestRes) Reset ¶
func (x *FinishQuestRes) Reset()
func (*FinishQuestRes) String ¶
func (x *FinishQuestRes) String() string
type GameServerInfo ¶
type GameServerInfo struct { ServerId int32 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"` // 服务器编号 ClientListenAddr string `protobuf:"bytes,2,opt,name=clientListenAddr,proto3" json:"clientListenAddr,omitempty"` // 游戏服监听客户端地址 // contains filtered or unexported fields }
游戏服务器信息
func (*GameServerInfo) Descriptor
deprecated
func (*GameServerInfo) Descriptor() ([]byte, []int)
Deprecated: Use GameServerInfo.ProtoReflect.Descriptor instead.
func (*GameServerInfo) GetClientListenAddr ¶
func (x *GameServerInfo) GetClientListenAddr() string
func (*GameServerInfo) GetServerId ¶
func (x *GameServerInfo) GetServerId() int32
func (*GameServerInfo) ProtoMessage ¶
func (*GameServerInfo) ProtoMessage()
func (*GameServerInfo) ProtoReflect ¶
func (x *GameServerInfo) ProtoReflect() protoreflect.Message
func (*GameServerInfo) Reset ¶
func (x *GameServerInfo) Reset()
func (*GameServerInfo) String ¶
func (x *GameServerInfo) String() string
type GateRouteClientPacketError ¶
type GateRouteClientPacketError struct { PlayerId int64 `protobuf:"varint,1,opt,name=playerId,proto3" json:"playerId,omitempty"` Command int32 `protobuf:"varint,2,opt,name=command,proto3" json:"command,omitempty"` // 消息号 ResultId int32 `protobuf:"varint,3,opt,name=resultId,proto3" json:"resultId,omitempty"` // 错误信息id ResultStr string `protobuf:"bytes,4,opt,name=resultStr,proto3" json:"resultStr,omitempty"` // 错误信息内容 // contains filtered or unexported fields }
网关转发客户端消息到其他服务器,发生错误
func (*GateRouteClientPacketError) Descriptor
deprecated
func (*GateRouteClientPacketError) Descriptor() ([]byte, []int)
Deprecated: Use GateRouteClientPacketError.ProtoReflect.Descriptor instead.
func (*GateRouteClientPacketError) GetCommand ¶
func (x *GateRouteClientPacketError) GetCommand() int32
func (*GateRouteClientPacketError) GetPlayerId ¶
func (x *GateRouteClientPacketError) GetPlayerId() int64
func (*GateRouteClientPacketError) GetResultId ¶
func (x *GateRouteClientPacketError) GetResultId() int32
func (*GateRouteClientPacketError) GetResultStr ¶
func (x *GateRouteClientPacketError) GetResultStr() string
func (*GateRouteClientPacketError) ProtoMessage ¶
func (*GateRouteClientPacketError) ProtoMessage()
func (*GateRouteClientPacketError) ProtoReflect ¶
func (x *GateRouteClientPacketError) ProtoReflect() protoreflect.Message
func (*GateRouteClientPacketError) Reset ¶
func (x *GateRouteClientPacketError) Reset()
func (*GateRouteClientPacketError) String ¶
func (x *GateRouteClientPacketError) String() string
type GlobalEntityData ¶
type GlobalEntityData struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` ProcessStatInfo *ProcessStatInfo `protobuf:"bytes,2,opt,name=processStatInfo,proto3" json:"processStatInfo,omitempty"` // contains filtered or unexported fields }
GlobalEntity在mongo中的保存格式 用于一次性把数据加载进来
func (*GlobalEntityData) Descriptor
deprecated
func (*GlobalEntityData) Descriptor() ([]byte, []int)
Deprecated: Use GlobalEntityData.ProtoReflect.Descriptor instead.
func (*GlobalEntityData) GetKey ¶
func (x *GlobalEntityData) GetKey() string
func (*GlobalEntityData) GetProcessStatInfo ¶
func (x *GlobalEntityData) GetProcessStatInfo() *ProcessStatInfo
func (*GlobalEntityData) ProtoMessage ¶
func (*GlobalEntityData) ProtoMessage()
func (*GlobalEntityData) ProtoReflect ¶
func (x *GlobalEntityData) ProtoReflect() protoreflect.Message
func (*GlobalEntityData) Reset ¶
func (x *GlobalEntityData) Reset()
func (*GlobalEntityData) String ¶
func (x *GlobalEntityData) String() string
type GuildCreateReq ¶
type GuildCreateReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 名称 Intro string `protobuf:"bytes,2,opt,name=intro,proto3" json:"intro,omitempty"` // 介绍 // contains filtered or unexported fields }
创建公会请求
func (*GuildCreateReq) Descriptor
deprecated
func (*GuildCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use GuildCreateReq.ProtoReflect.Descriptor instead.
func (*GuildCreateReq) GetIntro ¶
func (x *GuildCreateReq) GetIntro() string
func (*GuildCreateReq) GetName ¶
func (x *GuildCreateReq) GetName() string
func (*GuildCreateReq) ProtoMessage ¶
func (*GuildCreateReq) ProtoMessage()
func (*GuildCreateReq) ProtoReflect ¶
func (x *GuildCreateReq) ProtoReflect() protoreflect.Message
func (*GuildCreateReq) Reset ¶
func (x *GuildCreateReq) Reset()
func (*GuildCreateReq) String ¶
func (x *GuildCreateReq) String() string
type GuildCreateRes ¶
type GuildCreateRes struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // 公会id Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 名称 // contains filtered or unexported fields }
创建公会请求返回结果 @Player
func (*GuildCreateRes) Descriptor
deprecated
func (*GuildCreateRes) Descriptor() ([]byte, []int)
Deprecated: Use GuildCreateRes.ProtoReflect.Descriptor instead.
func (*GuildCreateRes) GetError ¶
func (x *GuildCreateRes) GetError() string
func (*GuildCreateRes) GetId ¶
func (x *GuildCreateRes) GetId() int64
func (*GuildCreateRes) GetName ¶
func (x *GuildCreateRes) GetName() string
func (*GuildCreateRes) ProtoMessage ¶
func (*GuildCreateRes) ProtoMessage()
func (*GuildCreateRes) ProtoReflect ¶
func (x *GuildCreateRes) ProtoReflect() protoreflect.Message
func (*GuildCreateRes) Reset ¶
func (x *GuildCreateRes) Reset()
func (*GuildCreateRes) String ¶
func (x *GuildCreateRes) String() string
type GuildData ¶
type GuildData struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 公会唯一id BaseInfo *GuildInfo `protobuf:"bytes,2,opt,name=baseInfo,proto3" json:"baseInfo,omitempty"` Members map[int64]*GuildMemberData `` // 公会成员 /* 156-byte string literal not displayed */ JoinRequests map[int64]*GuildJoinRequest `` // 申请加入公会的请求信息 /* 166-byte string literal not displayed */ // contains filtered or unexported fields }
公会数据
func (*GuildData) Descriptor
deprecated
func (*GuildData) GetBaseInfo ¶
func (*GuildData) GetJoinRequests ¶
func (x *GuildData) GetJoinRequests() map[int64]*GuildJoinRequest
func (*GuildData) GetMembers ¶
func (x *GuildData) GetMembers() map[int64]*GuildMemberData
func (*GuildData) ProtoMessage ¶
func (*GuildData) ProtoMessage()
func (*GuildData) ProtoReflect ¶
func (x *GuildData) ProtoReflect() protoreflect.Message
type GuildDataViewReq ¶
type GuildDataViewReq struct {
// contains filtered or unexported fields
}
查看自己公会的数据
func (*GuildDataViewReq) Descriptor
deprecated
func (*GuildDataViewReq) Descriptor() ([]byte, []int)
Deprecated: Use GuildDataViewReq.ProtoReflect.Descriptor instead.
func (*GuildDataViewReq) ProtoMessage ¶
func (*GuildDataViewReq) ProtoMessage()
func (*GuildDataViewReq) ProtoReflect ¶
func (x *GuildDataViewReq) ProtoReflect() protoreflect.Message
func (*GuildDataViewReq) Reset ¶
func (x *GuildDataViewReq) Reset()
func (*GuildDataViewReq) String ¶
func (x *GuildDataViewReq) String() string
type GuildDataViewRes ¶
type GuildDataViewRes struct { GuildData *GuildData `protobuf:"bytes,1,opt,name=guildData,proto3" json:"guildData,omitempty"` // contains filtered or unexported fields }
查看公会数据返回结果 @Player
func (*GuildDataViewRes) Descriptor
deprecated
func (*GuildDataViewRes) Descriptor() ([]byte, []int)
Deprecated: Use GuildDataViewRes.ProtoReflect.Descriptor instead.
func (*GuildDataViewRes) GetGuildData ¶
func (x *GuildDataViewRes) GetGuildData() *GuildData
func (*GuildDataViewRes) ProtoMessage ¶
func (*GuildDataViewRes) ProtoMessage()
func (*GuildDataViewRes) ProtoReflect ¶
func (x *GuildDataViewRes) ProtoReflect() protoreflect.Message
func (*GuildDataViewRes) Reset ¶
func (x *GuildDataViewRes) Reset()
func (*GuildDataViewRes) String ¶
func (x *GuildDataViewRes) String() string
type GuildInfo ¶
type GuildInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 公会id Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 名称 Intro string `protobuf:"bytes,3,opt,name=intro,proto3" json:"intro,omitempty"` // 介绍 MemberCount int32 `protobuf:"varint,4,opt,name=memberCount,proto3" json:"memberCount,omitempty"` // 成员数 // contains filtered or unexported fields }
公会信息
func (*GuildInfo) Descriptor
deprecated
func (*GuildInfo) GetMemberCount ¶
func (*GuildInfo) ProtoMessage ¶
func (*GuildInfo) ProtoMessage()
func (*GuildInfo) ProtoReflect ¶
func (x *GuildInfo) ProtoReflect() protoreflect.Message
type GuildJoinAgreeReq ¶
type GuildJoinAgreeReq struct { JoinPlayerId int64 `protobuf:"varint,1,opt,name=joinPlayerId,proto3" json:"joinPlayerId,omitempty"` // 申请加入公会的玩家id IsAgree bool `protobuf:"varint,2,opt,name=isAgree,proto3" json:"isAgree,omitempty"` // 是否同意加入 // contains filtered or unexported fields }
管理员同意请求者加入公会
func (*GuildJoinAgreeReq) Descriptor
deprecated
func (*GuildJoinAgreeReq) Descriptor() ([]byte, []int)
Deprecated: Use GuildJoinAgreeReq.ProtoReflect.Descriptor instead.
func (*GuildJoinAgreeReq) GetIsAgree ¶
func (x *GuildJoinAgreeReq) GetIsAgree() bool
func (*GuildJoinAgreeReq) GetJoinPlayerId ¶
func (x *GuildJoinAgreeReq) GetJoinPlayerId() int64
func (*GuildJoinAgreeReq) ProtoMessage ¶
func (*GuildJoinAgreeReq) ProtoMessage()
func (*GuildJoinAgreeReq) ProtoReflect ¶
func (x *GuildJoinAgreeReq) ProtoReflect() protoreflect.Message
func (*GuildJoinAgreeReq) Reset ¶
func (x *GuildJoinAgreeReq) Reset()
func (*GuildJoinAgreeReq) String ¶
func (x *GuildJoinAgreeReq) String() string
type GuildJoinAgreeRes ¶
type GuildJoinAgreeRes struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` GuildId int64 `protobuf:"varint,2,opt,name=guildId,proto3" json:"guildId,omitempty"` ManagerPlayerId int64 `protobuf:"varint,3,opt,name=managerPlayerId,proto3" json:"managerPlayerId,omitempty"` // 管理员id JoinPlayerId int64 `protobuf:"varint,4,opt,name=joinPlayerId,proto3" json:"joinPlayerId,omitempty"` // 申请加入公会的玩家id IsAgree bool `protobuf:"varint,5,opt,name=isAgree,proto3" json:"isAgree,omitempty"` // 是否同意加入 // contains filtered or unexported fields }
同意加入公会返回结果 @Player
func (*GuildJoinAgreeRes) Descriptor
deprecated
func (*GuildJoinAgreeRes) Descriptor() ([]byte, []int)
Deprecated: Use GuildJoinAgreeRes.ProtoReflect.Descriptor instead.
func (*GuildJoinAgreeRes) GetError ¶
func (x *GuildJoinAgreeRes) GetError() string
func (*GuildJoinAgreeRes) GetGuildId ¶
func (x *GuildJoinAgreeRes) GetGuildId() int64
func (*GuildJoinAgreeRes) GetIsAgree ¶
func (x *GuildJoinAgreeRes) GetIsAgree() bool
func (*GuildJoinAgreeRes) GetJoinPlayerId ¶
func (x *GuildJoinAgreeRes) GetJoinPlayerId() int64
func (*GuildJoinAgreeRes) GetManagerPlayerId ¶
func (x *GuildJoinAgreeRes) GetManagerPlayerId() int64
func (*GuildJoinAgreeRes) ProtoMessage ¶
func (*GuildJoinAgreeRes) ProtoMessage()
func (*GuildJoinAgreeRes) ProtoReflect ¶
func (x *GuildJoinAgreeRes) ProtoReflect() protoreflect.Message
func (*GuildJoinAgreeRes) Reset ¶
func (x *GuildJoinAgreeRes) Reset()
func (*GuildJoinAgreeRes) String ¶
func (x *GuildJoinAgreeRes) String() string
type GuildJoinReq ¶
type GuildJoinReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 公会id // contains filtered or unexported fields }
加入公会请求
func (*GuildJoinReq) Descriptor
deprecated
func (*GuildJoinReq) Descriptor() ([]byte, []int)
Deprecated: Use GuildJoinReq.ProtoReflect.Descriptor instead.
func (*GuildJoinReq) GetId ¶
func (x *GuildJoinReq) GetId() int64
func (*GuildJoinReq) ProtoMessage ¶
func (*GuildJoinReq) ProtoMessage()
func (*GuildJoinReq) ProtoReflect ¶
func (x *GuildJoinReq) ProtoReflect() protoreflect.Message
func (*GuildJoinReq) Reset ¶
func (x *GuildJoinReq) Reset()
func (*GuildJoinReq) String ¶
func (x *GuildJoinReq) String() string
type GuildJoinReqOpResult ¶
type GuildJoinReqOpResult struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` GuildId int64 `protobuf:"varint,2,opt,name=guildId,proto3" json:"guildId,omitempty"` ManagerPlayerId int64 `protobuf:"varint,3,opt,name=managerPlayerId,proto3" json:"managerPlayerId,omitempty"` // 管理员id JoinPlayerId int64 `protobuf:"varint,4,opt,name=joinPlayerId,proto3" json:"joinPlayerId,omitempty"` // 申请加入公会的玩家id IsAgree bool `protobuf:"varint,5,opt,name=isAgree,proto3" json:"isAgree,omitempty"` // 是否同意加入 // contains filtered or unexported fields }
自己的入会申请的操作结果
func (*GuildJoinReqOpResult) Descriptor
deprecated
func (*GuildJoinReqOpResult) Descriptor() ([]byte, []int)
Deprecated: Use GuildJoinReqOpResult.ProtoReflect.Descriptor instead.
func (*GuildJoinReqOpResult) GetError ¶
func (x *GuildJoinReqOpResult) GetError() string
func (*GuildJoinReqOpResult) GetGuildId ¶
func (x *GuildJoinReqOpResult) GetGuildId() int64
func (*GuildJoinReqOpResult) GetIsAgree ¶
func (x *GuildJoinReqOpResult) GetIsAgree() bool
func (*GuildJoinReqOpResult) GetJoinPlayerId ¶
func (x *GuildJoinReqOpResult) GetJoinPlayerId() int64
func (*GuildJoinReqOpResult) GetManagerPlayerId ¶
func (x *GuildJoinReqOpResult) GetManagerPlayerId() int64
func (*GuildJoinReqOpResult) ProtoMessage ¶
func (*GuildJoinReqOpResult) ProtoMessage()
func (*GuildJoinReqOpResult) ProtoReflect ¶
func (x *GuildJoinReqOpResult) ProtoReflect() protoreflect.Message
func (*GuildJoinReqOpResult) Reset ¶
func (x *GuildJoinReqOpResult) Reset()
func (*GuildJoinReqOpResult) String ¶
func (x *GuildJoinReqOpResult) String() string
type GuildJoinReqTip ¶
type GuildJoinReqTip struct { PlayerId int64 `protobuf:"varint,1,opt,name=playerId,proto3" json:"playerId,omitempty"` // 玩家id PlayerName string `protobuf:"bytes,2,opt,name=playerName,proto3" json:"playerName,omitempty"` // 玩家名 // contains filtered or unexported fields }
提示有人申请加入本公会
func (*GuildJoinReqTip) Descriptor
deprecated
func (*GuildJoinReqTip) Descriptor() ([]byte, []int)
Deprecated: Use GuildJoinReqTip.ProtoReflect.Descriptor instead.
func (*GuildJoinReqTip) GetPlayerId ¶
func (x *GuildJoinReqTip) GetPlayerId() int64
func (*GuildJoinReqTip) GetPlayerName ¶
func (x *GuildJoinReqTip) GetPlayerName() string
func (*GuildJoinReqTip) ProtoMessage ¶
func (*GuildJoinReqTip) ProtoMessage()
func (*GuildJoinReqTip) ProtoReflect ¶
func (x *GuildJoinReqTip) ProtoReflect() protoreflect.Message
func (*GuildJoinReqTip) Reset ¶
func (x *GuildJoinReqTip) Reset()
func (*GuildJoinReqTip) String ¶
func (x *GuildJoinReqTip) String() string
type GuildJoinRequest ¶
type GuildJoinRequest struct { PlayerId int64 `protobuf:"varint,1,opt,name=playerId,proto3" json:"playerId,omitempty"` // 申请加入公会的玩家id PlayerName string `protobuf:"bytes,2,opt,name=playerName,proto3" json:"playerName,omitempty"` TimestampSec int32 `protobuf:"varint,3,opt,name=timestampSec,proto3" json:"timestampSec,omitempty"` // 时间戳(秒) // contains filtered or unexported fields }
申请加入公会的请求信息
func (*GuildJoinRequest) Descriptor
deprecated
func (*GuildJoinRequest) Descriptor() ([]byte, []int)
Deprecated: Use GuildJoinRequest.ProtoReflect.Descriptor instead.
func (*GuildJoinRequest) GetPlayerId ¶
func (x *GuildJoinRequest) GetPlayerId() int64
func (*GuildJoinRequest) GetPlayerName ¶
func (x *GuildJoinRequest) GetPlayerName() string
func (*GuildJoinRequest) GetTimestampSec ¶
func (x *GuildJoinRequest) GetTimestampSec() int32
func (*GuildJoinRequest) ProtoMessage ¶
func (*GuildJoinRequest) ProtoMessage()
func (*GuildJoinRequest) ProtoReflect ¶
func (x *GuildJoinRequest) ProtoReflect() protoreflect.Message
func (*GuildJoinRequest) Reset ¶
func (x *GuildJoinRequest) Reset()
func (*GuildJoinRequest) String ¶
func (x *GuildJoinRequest) String() string
type GuildJoinRes ¶
type GuildJoinRes struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // 公会id // contains filtered or unexported fields }
加入公会请求返回结果 @Player
func (*GuildJoinRes) Descriptor
deprecated
func (*GuildJoinRes) Descriptor() ([]byte, []int)
Deprecated: Use GuildJoinRes.ProtoReflect.Descriptor instead.
func (*GuildJoinRes) GetError ¶
func (x *GuildJoinRes) GetError() string
func (*GuildJoinRes) GetId ¶
func (x *GuildJoinRes) GetId() int64
func (*GuildJoinRes) ProtoMessage ¶
func (*GuildJoinRes) ProtoMessage()
func (*GuildJoinRes) ProtoReflect ¶
func (x *GuildJoinRes) ProtoReflect() protoreflect.Message
func (*GuildJoinRes) Reset ¶
func (x *GuildJoinRes) Reset()
func (*GuildJoinRes) String ¶
func (x *GuildJoinRes) String() string
type GuildListReq ¶
type GuildListReq struct { PageIndex int32 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"` // 分页索引 // contains filtered or unexported fields }
查看公会列表
func (*GuildListReq) Descriptor
deprecated
func (*GuildListReq) Descriptor() ([]byte, []int)
Deprecated: Use GuildListReq.ProtoReflect.Descriptor instead.
func (*GuildListReq) GetPageIndex ¶
func (x *GuildListReq) GetPageIndex() int32
func (*GuildListReq) ProtoMessage ¶
func (*GuildListReq) ProtoMessage()
func (*GuildListReq) ProtoReflect ¶
func (x *GuildListReq) ProtoReflect() protoreflect.Message
func (*GuildListReq) Reset ¶
func (x *GuildListReq) Reset()
func (*GuildListReq) String ¶
func (x *GuildListReq) String() string
type GuildListRes ¶
type GuildListRes struct { PageIndex int32 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"` // 分页索引 PageCount int32 `protobuf:"varint,2,opt,name=pageCount,proto3" json:"pageCount,omitempty"` // 总页数 GuildInfos []*GuildInfo `protobuf:"bytes,3,rep,name=guildInfos,proto3" json:"guildInfos,omitempty"` // 公会列表 // contains filtered or unexported fields }
查看公会列表返回结果 @Player
func (*GuildListRes) Descriptor
deprecated
func (*GuildListRes) Descriptor() ([]byte, []int)
Deprecated: Use GuildListRes.ProtoReflect.Descriptor instead.
func (*GuildListRes) GetGuildInfos ¶
func (x *GuildListRes) GetGuildInfos() []*GuildInfo
func (*GuildListRes) GetPageCount ¶
func (x *GuildListRes) GetPageCount() int32
func (*GuildListRes) GetPageIndex ¶
func (x *GuildListRes) GetPageIndex() int32
func (*GuildListRes) ProtoMessage ¶
func (*GuildListRes) ProtoMessage()
func (*GuildListRes) ProtoReflect ¶
func (x *GuildListRes) ProtoReflect() protoreflect.Message
func (*GuildListRes) Reset ¶
func (x *GuildListRes) Reset()
func (*GuildListRes) String ¶
func (x *GuildListRes) String() string
type GuildLoadData ¶
type GuildLoadData struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 公会唯一id BaseInfo *GuildInfo `protobuf:"bytes,2,opt,name=baseInfo,proto3" json:"baseInfo,omitempty"` Members map[int64]*GuildMemberData `` // 公会成员(明文) /* 156-byte string literal not displayed */ JoinRequests map[int64][]byte `` // 申请加入公会的请求信息(proto序列化) /* 166-byte string literal not displayed */ // contains filtered or unexported fields }
公会在mongo中的保存格式 用于一次性把公会数据加载进来
func (*GuildLoadData) Descriptor
deprecated
func (*GuildLoadData) Descriptor() ([]byte, []int)
Deprecated: Use GuildLoadData.ProtoReflect.Descriptor instead.
func (*GuildLoadData) GetBaseInfo ¶
func (x *GuildLoadData) GetBaseInfo() *GuildInfo
func (*GuildLoadData) GetId ¶
func (x *GuildLoadData) GetId() int64
func (*GuildLoadData) GetJoinRequests ¶
func (x *GuildLoadData) GetJoinRequests() map[int64][]byte
func (*GuildLoadData) GetMembers ¶
func (x *GuildLoadData) GetMembers() map[int64]*GuildMemberData
func (*GuildLoadData) ProtoMessage ¶
func (*GuildLoadData) ProtoMessage()
func (*GuildLoadData) ProtoReflect ¶
func (x *GuildLoadData) ProtoReflect() protoreflect.Message
func (*GuildLoadData) Reset ¶
func (x *GuildLoadData) Reset()
func (*GuildLoadData) String ¶
func (x *GuildLoadData) String() string
type GuildMemberData ¶
type GuildMemberData struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 玩家id Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 玩家名称 Position int32 `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty"` // 职位 // contains filtered or unexported fields }
公会成员数据
func (*GuildMemberData) Descriptor
deprecated
func (*GuildMemberData) Descriptor() ([]byte, []int)
Deprecated: Use GuildMemberData.ProtoReflect.Descriptor instead.
func (*GuildMemberData) GetId ¶
func (x *GuildMemberData) GetId() int64
func (*GuildMemberData) GetName ¶
func (x *GuildMemberData) GetName() string
func (*GuildMemberData) GetPosition ¶
func (x *GuildMemberData) GetPosition() int32
func (*GuildMemberData) ProtoMessage ¶
func (*GuildMemberData) ProtoMessage()
func (*GuildMemberData) ProtoReflect ¶
func (x *GuildMemberData) ProtoReflect() protoreflect.Message
func (*GuildMemberData) Reset ¶
func (x *GuildMemberData) Reset()
func (*GuildMemberData) String ¶
func (x *GuildMemberData) String() string
type GuildPosition ¶
type GuildPosition int32
const ( GuildPosition_Member GuildPosition = 0 // 普通成员 GuildPosition_Manager GuildPosition = 1 // 管理员 GuildPosition_Leader GuildPosition = 2 // 会长 )
func (GuildPosition) Descriptor ¶
func (GuildPosition) Descriptor() protoreflect.EnumDescriptor
func (GuildPosition) Enum ¶
func (x GuildPosition) Enum() *GuildPosition
func (GuildPosition) EnumDescriptor
deprecated
func (GuildPosition) EnumDescriptor() ([]byte, []int)
Deprecated: Use GuildPosition.Descriptor instead.
func (GuildPosition) Number ¶
func (x GuildPosition) Number() protoreflect.EnumNumber
func (GuildPosition) String ¶
func (x GuildPosition) String() string
func (GuildPosition) Type ¶
func (GuildPosition) Type() protoreflect.EnumType
type GuildRoutePlayerMessageReq ¶
type GuildRoutePlayerMessageReq struct { FromPlayerId int64 `protobuf:"varint,1,opt,name=fromPlayerId,proto3" json:"fromPlayerId,omitempty"` // 玩家id FromGuildId int64 `protobuf:"varint,2,opt,name=fromGuildId,proto3" json:"fromGuildId,omitempty"` // 玩家公会id FromServerId int32 `protobuf:"varint,3,opt,name=fromServerId,proto3" json:"fromServerId,omitempty"` // 玩家当前所在服务器id FromPlayerName string `protobuf:"bytes,4,opt,name=fromPlayerName,proto3" json:"fromPlayerName,omitempty"` // 玩家名 PacketCommand int32 `protobuf:"varint,5,opt,name=packetCommand,proto3" json:"packetCommand,omitempty"` // 消息号 PacketData *anypb.Any `protobuf:"bytes,6,opt,name=packetData,proto3" json:"packetData,omitempty"` // 消息内容 // contains filtered or unexported fields }
路由转发玩家的公会请求消息 server -> otherserver -> guild
func (*GuildRoutePlayerMessageReq) Descriptor
deprecated
func (*GuildRoutePlayerMessageReq) Descriptor() ([]byte, []int)
Deprecated: Use GuildRoutePlayerMessageReq.ProtoReflect.Descriptor instead.
func (*GuildRoutePlayerMessageReq) GetFromGuildId ¶
func (x *GuildRoutePlayerMessageReq) GetFromGuildId() int64
func (*GuildRoutePlayerMessageReq) GetFromPlayerId ¶
func (x *GuildRoutePlayerMessageReq) GetFromPlayerId() int64
func (*GuildRoutePlayerMessageReq) GetFromPlayerName ¶
func (x *GuildRoutePlayerMessageReq) GetFromPlayerName() string
func (*GuildRoutePlayerMessageReq) GetFromServerId ¶
func (x *GuildRoutePlayerMessageReq) GetFromServerId() int32
func (*GuildRoutePlayerMessageReq) GetPacketCommand ¶
func (x *GuildRoutePlayerMessageReq) GetPacketCommand() int32
func (*GuildRoutePlayerMessageReq) GetPacketData ¶
func (x *GuildRoutePlayerMessageReq) GetPacketData() *anypb.Any
func (*GuildRoutePlayerMessageReq) ProtoMessage ¶
func (*GuildRoutePlayerMessageReq) ProtoMessage()
func (*GuildRoutePlayerMessageReq) ProtoReflect ¶
func (x *GuildRoutePlayerMessageReq) ProtoReflect() protoreflect.Message
func (*GuildRoutePlayerMessageReq) Reset ¶
func (x *GuildRoutePlayerMessageReq) Reset()
func (*GuildRoutePlayerMessageReq) String ¶
func (x *GuildRoutePlayerMessageReq) String() string
type HeartBeatReq ¶
type HeartBeatReq struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // 请求方的时间戳(毫秒) // contains filtered or unexported fields }
心跳包请求
func (*HeartBeatReq) Descriptor
deprecated
func (*HeartBeatReq) Descriptor() ([]byte, []int)
Deprecated: Use HeartBeatReq.ProtoReflect.Descriptor instead.
func (*HeartBeatReq) GetTimestamp ¶
func (x *HeartBeatReq) GetTimestamp() int64
func (*HeartBeatReq) ProtoMessage ¶
func (*HeartBeatReq) ProtoMessage()
func (*HeartBeatReq) ProtoReflect ¶
func (x *HeartBeatReq) ProtoReflect() protoreflect.Message
func (*HeartBeatReq) Reset ¶
func (x *HeartBeatReq) Reset()
func (*HeartBeatReq) String ¶
func (x *HeartBeatReq) String() string
type HeartBeatRes ¶
type HeartBeatRes struct { RequestTimestamp int64 `protobuf:"varint,1,opt,name=requestTimestamp,proto3" json:"requestTimestamp,omitempty"` // 请求方的时间戳(毫秒) ResponseTimestamp int64 `protobuf:"varint,2,opt,name=responseTimestamp,proto3" json:"responseTimestamp,omitempty"` // 回复方的时间戳(毫秒) // contains filtered or unexported fields }
心跳包回复
func (*HeartBeatRes) Descriptor
deprecated
func (*HeartBeatRes) Descriptor() ([]byte, []int)
Deprecated: Use HeartBeatRes.ProtoReflect.Descriptor instead.
func (*HeartBeatRes) GetRequestTimestamp ¶
func (x *HeartBeatRes) GetRequestTimestamp() int64
func (*HeartBeatRes) GetResponseTimestamp ¶
func (x *HeartBeatRes) GetResponseTimestamp() int64
func (*HeartBeatRes) ProtoMessage ¶
func (*HeartBeatRes) ProtoMessage()
func (*HeartBeatRes) ProtoReflect ¶
func (x *HeartBeatRes) ProtoReflect() protoreflect.Message
func (*HeartBeatRes) Reset ¶
func (x *HeartBeatRes) Reset()
func (*HeartBeatRes) String ¶
func (x *HeartBeatRes) String() string
type ItemCfg ¶
type ItemCfg struct { CfgId int32 `protobuf:"varint,1,opt,name=CfgId,proto3" json:"CfgId,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Detail string `protobuf:"bytes,3,opt,name=Detail,proto3" json:"Detail,omitempty"` ItemType int32 `protobuf:"varint,4,opt,name=ItemType,proto3" json:"ItemType,omitempty"` // 物品类型(enum ItemType) TimeType int32 `protobuf:"varint,5,opt,name=TimeType,proto3" json:"TimeType,omitempty"` // 时间类型(enum TimeType) Timeout int32 `protobuf:"varint,6,opt,name=Timeout,proto3" json:"Timeout,omitempty"` // 结束时间 // contains filtered or unexported fields }
物品配置
func (*ItemCfg) Descriptor
deprecated
func (*ItemCfg) GetItemType ¶
func (*ItemCfg) GetTimeType ¶
func (*ItemCfg) GetTimeout ¶
func (*ItemCfg) ProtoMessage ¶
func (*ItemCfg) ProtoMessage()
func (*ItemCfg) ProtoReflect ¶
func (x *ItemCfg) ProtoReflect() protoreflect.Message
type ItemNum ¶
type ItemNum struct { CfgId int32 `protobuf:"varint,1,opt,name=CfgId,proto3" json:"CfgId,omitempty"` // 物品配置id Num int32 `protobuf:"varint,2,opt,name=Num,proto3" json:"Num,omitempty"` // 物品数量 // contains filtered or unexported fields }
物品数量
func (*ItemNum) Descriptor
deprecated
func (*ItemNum) ProtoMessage ¶
func (*ItemNum) ProtoMessage()
func (*ItemNum) ProtoReflect ¶
func (x *ItemNum) ProtoReflect() protoreflect.Message
type ItemType ¶
type ItemType int32
物品类型
func (ItemType) Descriptor ¶
func (ItemType) Descriptor() protoreflect.EnumDescriptor
func (ItemType) EnumDescriptor
deprecated
func (ItemType) Number ¶
func (x ItemType) Number() protoreflect.EnumNumber
func (ItemType) Type ¶
func (ItemType) Type() protoreflect.EnumType
type KickPlayerReq ¶
type KickPlayerReq struct { AccountId int64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"` // 账号id PlayerId int64 `protobuf:"varint,2,opt,name=playerId,proto3" json:"playerId,omitempty"` // 玩家id // contains filtered or unexported fields }
踢玩家下线req
func (*KickPlayerReq) Descriptor
deprecated
func (*KickPlayerReq) Descriptor() ([]byte, []int)
Deprecated: Use KickPlayerReq.ProtoReflect.Descriptor instead.
func (*KickPlayerReq) GetAccountId ¶
func (x *KickPlayerReq) GetAccountId() int64
func (*KickPlayerReq) GetPlayerId ¶
func (x *KickPlayerReq) GetPlayerId() int64
func (*KickPlayerReq) ProtoMessage ¶
func (*KickPlayerReq) ProtoMessage()
func (*KickPlayerReq) ProtoReflect ¶
func (x *KickPlayerReq) ProtoReflect() protoreflect.Message
func (*KickPlayerReq) Reset ¶
func (x *KickPlayerReq) Reset()
func (*KickPlayerReq) String ¶
func (x *KickPlayerReq) String() string
type KickPlayerRes ¶
type KickPlayerRes struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` AccountId int64 `protobuf:"varint,2,opt,name=accountId,proto3" json:"accountId,omitempty"` // 账号id PlayerId int64 `protobuf:"varint,3,opt,name=playerId,proto3" json:"playerId,omitempty"` // 玩家id // contains filtered or unexported fields }
踢玩家下线res
func (*KickPlayerRes) Descriptor
deprecated
func (*KickPlayerRes) Descriptor() ([]byte, []int)
Deprecated: Use KickPlayerRes.ProtoReflect.Descriptor instead.
func (*KickPlayerRes) GetAccountId ¶
func (x *KickPlayerRes) GetAccountId() int64
func (*KickPlayerRes) GetError ¶
func (x *KickPlayerRes) GetError() string
func (*KickPlayerRes) GetPlayerId ¶
func (x *KickPlayerRes) GetPlayerId() int64
func (*KickPlayerRes) ProtoMessage ¶
func (*KickPlayerRes) ProtoMessage()
func (*KickPlayerRes) ProtoReflect ¶
func (x *KickPlayerRes) ProtoReflect() protoreflect.Message
func (*KickPlayerRes) Reset ¶
func (x *KickPlayerRes) Reset()
func (*KickPlayerRes) String ¶
func (x *KickPlayerRes) String() string
type LevelExp ¶
type LevelExp struct { Level int32 `protobuf:"varint,1,opt,name=Level,proto3" json:"Level,omitempty"` // 等级 NeedExp int32 `protobuf:"varint,2,opt,name=NeedExp,proto3" json:"NeedExp,omitempty"` // 升到该等级需要的经验值 // contains filtered or unexported fields }
升级经验
func (*LevelExp) Descriptor
deprecated
func (*LevelExp) GetNeedExp ¶
func (*LevelExp) ProtoMessage ¶
func (*LevelExp) ProtoMessage()
func (*LevelExp) ProtoReflect ¶
func (x *LevelExp) ProtoReflect() protoreflect.Message
type LoginReq ¶
type LoginReq struct { AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
账号登录请求
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetAccountName ¶
func (*LoginReq) GetPassword ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type LoginRes ¶
type LoginRes struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` AccountName string `protobuf:"bytes,2,opt,name=accountName,proto3" json:"accountName,omitempty"` AccountId int64 `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"` LoginSession string `protobuf:"bytes,4,opt,name=loginSession,proto3" json:"loginSession,omitempty"` // 账号验证成功后的缓存session GameServer *GameServerInfo `protobuf:"bytes,5,opt,name=gameServer,proto3" json:"gameServer,omitempty"` // 游戏服信息 // contains filtered or unexported fields }
账号登录回复
func (*LoginRes) Descriptor
deprecated
func (*LoginRes) GetAccountId ¶
func (*LoginRes) GetAccountName ¶
func (*LoginRes) GetGameServer ¶
func (x *LoginRes) GetGameServer() *GameServerInfo
func (*LoginRes) GetLoginSession ¶
func (*LoginRes) ProtoMessage ¶
func (*LoginRes) ProtoMessage()
func (*LoginRes) ProtoReflect ¶
func (x *LoginRes) ProtoReflect() protoreflect.Message
type Money ¶
type Money struct { Coin int32 `protobuf:"varint,1,opt,name=coin,proto3" json:"coin,omitempty"` // 金币 Diamond int32 `protobuf:"varint,2,opt,name=diamond,proto3" json:"diamond,omitempty"` // 钻石 // contains filtered or unexported fields }
玩家的钱财数据
func (*Money) Descriptor
deprecated
func (*Money) GetDiamond ¶
func (*Money) ProtoMessage ¶
func (*Money) ProtoMessage()
func (*Money) ProtoReflect ¶
func (x *Money) ProtoReflect() protoreflect.Message
type PendingMessage ¶
type PendingMessage struct { MessageId int64 `protobuf:"varint,1,opt,name=messageId,proto3" json:"messageId,omitempty"` // 唯一id PacketCommand int32 `protobuf:"varint,2,opt,name=packetCommand,proto3" json:"packetCommand,omitempty"` // 消息号 PacketData *anypb.Any `protobuf:"bytes,3,opt,name=packetData,proto3" json:"packetData,omitempty"` // 消息内容 Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // 时间戳 // contains filtered or unexported fields }
待处理消息
func (*PendingMessage) Descriptor
deprecated
func (*PendingMessage) Descriptor() ([]byte, []int)
Deprecated: Use PendingMessage.ProtoReflect.Descriptor instead.
func (*PendingMessage) GetMessageId ¶
func (x *PendingMessage) GetMessageId() int64
func (*PendingMessage) GetPacketCommand ¶
func (x *PendingMessage) GetPacketCommand() int32
func (*PendingMessage) GetPacketData ¶
func (x *PendingMessage) GetPacketData() *anypb.Any
func (*PendingMessage) GetTimestamp ¶
func (x *PendingMessage) GetTimestamp() int64
func (*PendingMessage) ProtoMessage ¶
func (*PendingMessage) ProtoMessage()
func (*PendingMessage) ProtoReflect ¶
func (x *PendingMessage) ProtoReflect() protoreflect.Message
func (*PendingMessage) Reset ¶
func (x *PendingMessage) Reset()
func (*PendingMessage) String ¶
func (x *PendingMessage) String() string
type PlayerData ¶
type PlayerData struct { XId int64 `protobuf:"varint,1,opt,name=_id,json=Id,proto3" json:"_id,omitempty"` // 玩家id Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 玩家名 AccountId int64 `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"` // 账号id RegionId int32 `protobuf:"varint,4,opt,name=regionId,proto3" json:"regionId,omitempty"` // 区服id BaseInfo *BaseInfo `protobuf:"bytes,5,opt,name=baseInfo,proto3" json:"baseInfo,omitempty"` Money []byte `protobuf:"bytes,6,opt,name=money,proto3" json:"money,omitempty"` Bags *BagSaveData `protobuf:"bytes,7,opt,name=bags,proto3" json:"bags,omitempty"` Quest *QuestSaveData `protobuf:"bytes,8,opt,name=quest,proto3" json:"quest,omitempty"` Guild *PlayerGuildData `protobuf:"bytes,9,opt,name=guild,proto3" json:"guild,omitempty"` PendingMessages map[int64][]byte `` /* 173-byte string literal not displayed */ Activities map[int32][]byte `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
玩家在mongo中的保存格式 用于一次性把玩家数据加载进来
func (*PlayerData) Descriptor
deprecated
func (*PlayerData) Descriptor() ([]byte, []int)
Deprecated: Use PlayerData.ProtoReflect.Descriptor instead.
func (*PlayerData) GetAccountId ¶
func (x *PlayerData) GetAccountId() int64
func (*PlayerData) GetActivities ¶
func (x *PlayerData) GetActivities() map[int32][]byte
func (*PlayerData) GetBags ¶
func (x *PlayerData) GetBags() *BagSaveData
func (*PlayerData) GetBaseInfo ¶
func (x *PlayerData) GetBaseInfo() *BaseInfo
func (*PlayerData) GetGuild ¶
func (x *PlayerData) GetGuild() *PlayerGuildData
func (*PlayerData) GetMoney ¶
func (x *PlayerData) GetMoney() []byte
func (*PlayerData) GetName ¶
func (x *PlayerData) GetName() string
func (*PlayerData) GetPendingMessages ¶
func (x *PlayerData) GetPendingMessages() map[int64][]byte
func (*PlayerData) GetQuest ¶
func (x *PlayerData) GetQuest() *QuestSaveData
func (*PlayerData) GetRegionId ¶
func (x *PlayerData) GetRegionId() int32
func (*PlayerData) GetXId ¶
func (x *PlayerData) GetXId() int64
func (*PlayerData) ProtoMessage ¶
func (*PlayerData) ProtoMessage()
func (*PlayerData) ProtoReflect ¶
func (x *PlayerData) ProtoReflect() protoreflect.Message
func (*PlayerData) Reset ¶
func (x *PlayerData) Reset()
func (*PlayerData) String ¶
func (x *PlayerData) String() string
type PlayerEntryGameOk ¶
type PlayerEntryGameOk struct { IsReconnect bool `protobuf:"varint,1,opt,name=isReconnect,proto3" json:"isReconnect,omitempty"` // contains filtered or unexported fields }
玩家进游戏服成功,非客户端消息
func (*PlayerEntryGameOk) Descriptor
deprecated
func (*PlayerEntryGameOk) Descriptor() ([]byte, []int)
Deprecated: Use PlayerEntryGameOk.ProtoReflect.Descriptor instead.
func (*PlayerEntryGameOk) GetIsReconnect ¶
func (x *PlayerEntryGameOk) GetIsReconnect() bool
func (*PlayerEntryGameOk) ProtoMessage ¶
func (*PlayerEntryGameOk) ProtoMessage()
func (*PlayerEntryGameOk) ProtoReflect ¶
func (x *PlayerEntryGameOk) ProtoReflect() protoreflect.Message
func (*PlayerEntryGameOk) Reset ¶
func (x *PlayerEntryGameOk) Reset()
func (*PlayerEntryGameOk) String ¶
func (x *PlayerEntryGameOk) String() string
type PlayerEntryGameReq ¶
type PlayerEntryGameReq struct { AccountId int64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"` LoginSession string `protobuf:"bytes,2,opt,name=loginSession,proto3" json:"loginSession,omitempty"` // 账号验证成功后的缓存session RegionId int32 `protobuf:"varint,3,opt,name=regionId,proto3" json:"regionId,omitempty"` // 区服id // contains filtered or unexported fields }
玩家登录游戏服
func (*PlayerEntryGameReq) Descriptor
deprecated
func (*PlayerEntryGameReq) Descriptor() ([]byte, []int)
Deprecated: Use PlayerEntryGameReq.ProtoReflect.Descriptor instead.
func (*PlayerEntryGameReq) GetAccountId ¶
func (x *PlayerEntryGameReq) GetAccountId() int64
func (*PlayerEntryGameReq) GetLoginSession ¶
func (x *PlayerEntryGameReq) GetLoginSession() string
func (*PlayerEntryGameReq) GetRegionId ¶
func (x *PlayerEntryGameReq) GetRegionId() int32
func (*PlayerEntryGameReq) ProtoMessage ¶
func (*PlayerEntryGameReq) ProtoMessage()
func (*PlayerEntryGameReq) ProtoReflect ¶
func (x *PlayerEntryGameReq) ProtoReflect() protoreflect.Message
func (*PlayerEntryGameReq) Reset ¶
func (x *PlayerEntryGameReq) Reset()
func (*PlayerEntryGameReq) String ¶
func (x *PlayerEntryGameReq) String() string
type PlayerEntryGameRes ¶
type PlayerEntryGameRes struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` AccountId int64 `protobuf:"varint,2,opt,name=accountId,proto3" json:"accountId,omitempty"` PlayerId int64 `protobuf:"varint,3,opt,name=playerId,proto3" json:"playerId,omitempty"` RegionId int32 `protobuf:"varint,4,opt,name=regionId,proto3" json:"regionId,omitempty"` // 区服id PlayerName string `protobuf:"bytes,5,opt,name=playerName,proto3" json:"playerName,omitempty"` GuildData *PlayerGuildData `protobuf:"bytes,6,opt,name=guildData,proto3" json:"guildData,omitempty"` // 公会数据 // contains filtered or unexported fields }
玩家登录游戏服回复 @Player
func (*PlayerEntryGameRes) Descriptor
deprecated
func (*PlayerEntryGameRes) Descriptor() ([]byte, []int)
Deprecated: Use PlayerEntryGameRes.ProtoReflect.Descriptor instead.
func (*PlayerEntryGameRes) GetAccountId ¶
func (x *PlayerEntryGameRes) GetAccountId() int64
func (*PlayerEntryGameRes) GetError ¶
func (x *PlayerEntryGameRes) GetError() string
func (*PlayerEntryGameRes) GetGuildData ¶
func (x *PlayerEntryGameRes) GetGuildData() *PlayerGuildData
func (*PlayerEntryGameRes) GetPlayerId ¶
func (x *PlayerEntryGameRes) GetPlayerId() int64
func (*PlayerEntryGameRes) GetPlayerName ¶
func (x *PlayerEntryGameRes) GetPlayerName() string
func (*PlayerEntryGameRes) GetRegionId ¶
func (x *PlayerEntryGameRes) GetRegionId() int32
func (*PlayerEntryGameRes) ProtoMessage ¶
func (*PlayerEntryGameRes) ProtoMessage()
func (*PlayerEntryGameRes) ProtoReflect ¶
func (x *PlayerEntryGameRes) ProtoReflect() protoreflect.Message
func (*PlayerEntryGameRes) Reset ¶
func (x *PlayerEntryGameRes) Reset()
func (*PlayerEntryGameRes) String ¶
func (x *PlayerEntryGameRes) String() string
type PlayerGuildData ¶
type PlayerGuildData struct { GuildId int64 `protobuf:"varint,1,opt,name=guildId,proto3" json:"guildId,omitempty"` // 公会id // contains filtered or unexported fields }
玩家身上的公会数据
func (*PlayerGuildData) Descriptor
deprecated
func (*PlayerGuildData) Descriptor() ([]byte, []int)
Deprecated: Use PlayerGuildData.ProtoReflect.Descriptor instead.
func (*PlayerGuildData) GetGuildId ¶
func (x *PlayerGuildData) GetGuildId() int64
func (*PlayerGuildData) ProtoMessage ¶
func (*PlayerGuildData) ProtoMessage()
func (*PlayerGuildData) ProtoReflect ¶
func (x *PlayerGuildData) ProtoReflect() protoreflect.Message
func (*PlayerGuildData) Reset ¶
func (x *PlayerGuildData) Reset()
func (*PlayerGuildData) String ¶
func (x *PlayerGuildData) String() string
type ProcessStatInfo ¶
type ProcessStatInfo struct { LastStartupTimestamp int64 `protobuf:"varint,1,opt,name=lastStartupTimestamp,proto3" json:"lastStartupTimestamp,omitempty"` // 最近一次进程启动时间戳 LastShutdownTimestamp int64 `protobuf:"varint,2,opt,name=lastShutdownTimestamp,proto3" json:"lastShutdownTimestamp,omitempty"` // 最近一次进程关闭时间戳 LastUpdateDate int32 `protobuf:"varint,3,opt,name=lastUpdateDate,proto3" json:"lastUpdateDate,omitempty"` // 上次刷新日期,格式:yyyymmdd // contains filtered or unexported fields }
进程统计信息
func (*ProcessStatInfo) Descriptor
deprecated
func (*ProcessStatInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProcessStatInfo.ProtoReflect.Descriptor instead.
func (*ProcessStatInfo) GetLastShutdownTimestamp ¶
func (x *ProcessStatInfo) GetLastShutdownTimestamp() int64
func (*ProcessStatInfo) GetLastStartupTimestamp ¶
func (x *ProcessStatInfo) GetLastStartupTimestamp() int64
func (*ProcessStatInfo) GetLastUpdateDate ¶
func (x *ProcessStatInfo) GetLastUpdateDate() int32
func (*ProcessStatInfo) ProtoMessage ¶
func (*ProcessStatInfo) ProtoMessage()
func (*ProcessStatInfo) ProtoReflect ¶
func (x *ProcessStatInfo) ProtoReflect() protoreflect.Message
func (*ProcessStatInfo) Reset ¶
func (x *ProcessStatInfo) Reset()
func (*ProcessStatInfo) String ¶
func (x *ProcessStatInfo) String() string
type ProgressCfg ¶
type ProgressCfg struct { Type int32 `protobuf:"varint,1,opt,name=Type,proto3" json:"Type,omitempty"` // 进度类型(enum ProgressType) CountType int32 `protobuf:"varint,2,opt,name=CountType,proto3" json:"CountType,omitempty"` // 计数类型 Total int32 `protobuf:"varint,3,opt,name=Total,proto3" json:"Total,omitempty"` // 总进度要求 NeedInit bool `protobuf:"varint,4,opt,name=NeedInit,proto3" json:"NeedInit,omitempty"` // 接任务时,是否初始化一下当前进度 Event string `protobuf:"bytes,5,opt,name=Event,proto3" json:"Event,omitempty"` // 关联的特定事件 EventField string `protobuf:"bytes,6,opt,name=EventField,proto3" json:"EventField,omitempty"` // 以事件字段值作为进度 Properties map[string]string `` // 扩展属性 /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
进度配置
func (*ProgressCfg) Descriptor
deprecated
func (*ProgressCfg) Descriptor() ([]byte, []int)
Deprecated: Use ProgressCfg.ProtoReflect.Descriptor instead.
func (*ProgressCfg) GetCountType ¶
func (x *ProgressCfg) GetCountType() int32
func (*ProgressCfg) GetEvent ¶
func (x *ProgressCfg) GetEvent() string
func (*ProgressCfg) GetEventField ¶
func (x *ProgressCfg) GetEventField() string
func (*ProgressCfg) GetNeedInit ¶
func (x *ProgressCfg) GetNeedInit() bool
func (*ProgressCfg) GetProperties ¶
func (x *ProgressCfg) GetProperties() map[string]string
func (*ProgressCfg) GetTotal ¶
func (x *ProgressCfg) GetTotal() int32
func (*ProgressCfg) GetType ¶
func (x *ProgressCfg) GetType() int32
func (*ProgressCfg) ProtoMessage ¶
func (*ProgressCfg) ProtoMessage()
func (*ProgressCfg) ProtoReflect ¶
func (x *ProgressCfg) ProtoReflect() protoreflect.Message
func (*ProgressCfg) Reset ¶
func (x *ProgressCfg) Reset()
func (*ProgressCfg) String ¶
func (x *ProgressCfg) String() string
type ProgressTemplateCfg ¶
type ProgressTemplateCfg struct { CfgId int32 `protobuf:"varint,3,opt,name=CfgId,proto3" json:"CfgId,omitempty"` // 配置id Type int32 `protobuf:"varint,1,opt,name=Type,proto3" json:"Type,omitempty"` // 进度类型(enum ProgressType) CountType int32 `protobuf:"varint,2,opt,name=CountType,proto3" json:"CountType,omitempty"` // 计数类型 NeedInit bool `protobuf:"varint,4,opt,name=NeedInit,proto3" json:"NeedInit,omitempty"` // 接任务时,是否初始化一下当前进度 Event string `protobuf:"bytes,5,opt,name=Event,proto3" json:"Event,omitempty"` EventField string `protobuf:"bytes,6,opt,name=EventField,proto3" json:"EventField,omitempty"` Properties map[string]string `` // 扩展属性 /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
进度模板配置
func (*ProgressTemplateCfg) Descriptor
deprecated
func (*ProgressTemplateCfg) Descriptor() ([]byte, []int)
Deprecated: Use ProgressTemplateCfg.ProtoReflect.Descriptor instead.
func (*ProgressTemplateCfg) GetCfgId ¶
func (x *ProgressTemplateCfg) GetCfgId() int32
func (*ProgressTemplateCfg) GetCountType ¶
func (x *ProgressTemplateCfg) GetCountType() int32
func (*ProgressTemplateCfg) GetEvent ¶
func (x *ProgressTemplateCfg) GetEvent() string
func (*ProgressTemplateCfg) GetEventField ¶
func (x *ProgressTemplateCfg) GetEventField() string
func (*ProgressTemplateCfg) GetNeedInit ¶
func (x *ProgressTemplateCfg) GetNeedInit() bool
func (*ProgressTemplateCfg) GetProperties ¶
func (x *ProgressTemplateCfg) GetProperties() map[string]string
func (*ProgressTemplateCfg) GetType ¶
func (x *ProgressTemplateCfg) GetType() int32
func (*ProgressTemplateCfg) ProtoMessage ¶
func (*ProgressTemplateCfg) ProtoMessage()
func (*ProgressTemplateCfg) ProtoReflect ¶
func (x *ProgressTemplateCfg) ProtoReflect() protoreflect.Message
func (*ProgressTemplateCfg) Reset ¶
func (x *ProgressTemplateCfg) Reset()
func (*ProgressTemplateCfg) String ¶
func (x *ProgressTemplateCfg) String() string
type ProgressType ¶
type ProgressType int32
进度类型
const ( ProgressType_ProgressType_None ProgressType = 0 // 解决"The first enum value must be zero in proto3."的报错 ProgressType_ProgressType_Event ProgressType = 1 // 通用事件 ProgressType_ProgressType_PlayerProperty ProgressType = 2 // 玩家属性值(int32) ProgressType_ProgressType_ActivityProperty ProgressType = 3 // 活动属性值(int32) )
func (ProgressType) Descriptor ¶
func (ProgressType) Descriptor() protoreflect.EnumDescriptor
func (ProgressType) Enum ¶
func (x ProgressType) Enum() *ProgressType
func (ProgressType) EnumDescriptor
deprecated
func (ProgressType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProgressType.Descriptor instead.
func (ProgressType) Number ¶
func (x ProgressType) Number() protoreflect.EnumNumber
func (ProgressType) String ¶
func (x ProgressType) String() string
func (ProgressType) Type ¶
func (ProgressType) Type() protoreflect.EnumType
type QuestCfg ¶
type QuestCfg struct { CfgId int32 `protobuf:"varint,1,opt,name=CfgId,proto3" json:"CfgId,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` QuestType int32 `protobuf:"varint,3,opt,name=QuestType,proto3" json:"QuestType,omitempty"` // 任务类型(enum QuestType) Rewards []*AddItemArg `protobuf:"bytes,4,rep,name=Rewards,proto3" json:"Rewards,omitempty"` // 任务奖励 PreQuest int32 `protobuf:"varint,5,opt,name=PreQuest,proto3" json:"PreQuest,omitempty"` // 前置任务 NextQuests []int32 `protobuf:"varint,6,rep,packed,name=NextQuests,proto3" json:"NextQuests,omitempty"` // 完成该任务后,自动接后续的任务(任务链) Conditions []*ConditionCfg `protobuf:"bytes,7,rep,name=Conditions,proto3" json:"Conditions,omitempty"` // 任务条件 Progress *ProgressCfg `protobuf:"bytes,8,opt,name=Progress,proto3" json:"Progress,omitempty"` // 任务进度 Properties map[string]string `` // 扩展属性 /* 161-byte string literal not displayed */ Detail string `protobuf:"bytes,10,opt,name=Detail,proto3" json:"Detail,omitempty"` // 任务描述 ConditionTemplates []*CfgArg `protobuf:"bytes,11,rep,name=ConditionTemplates,proto3" json:"ConditionTemplates,omitempty"` // 关联的配置模板id和参数,简化配置表用,业务代码不要调用 ProgressTemplate *CfgArg `protobuf:"bytes,12,opt,name=ProgressTemplate,proto3" json:"ProgressTemplate,omitempty"` // 关联的配置模板id和参数,简化配置表用,业务代码不要调用 // contains filtered or unexported fields }
任务配置
func (*QuestCfg) Descriptor
deprecated
func (*QuestCfg) GetConditionTemplates ¶
func (*QuestCfg) GetConditions ¶
func (x *QuestCfg) GetConditions() []*ConditionCfg
func (*QuestCfg) GetNextQuests ¶
func (*QuestCfg) GetPreQuest ¶
func (*QuestCfg) GetProgress ¶
func (x *QuestCfg) GetProgress() *ProgressCfg
func (*QuestCfg) GetProgressTemplate ¶
func (*QuestCfg) GetProperties ¶
func (*QuestCfg) GetQuestType ¶
func (*QuestCfg) GetRewards ¶
func (x *QuestCfg) GetRewards() []*AddItemArg
func (*QuestCfg) ProtoMessage ¶
func (*QuestCfg) ProtoMessage()
func (*QuestCfg) ProtoReflect ¶
func (x *QuestCfg) ProtoReflect() protoreflect.Message
type QuestData ¶
type QuestData struct { CfgId int32 `protobuf:"varint,1,opt,name=cfgId,proto3" json:"cfgId,omitempty"` // 配置id Progress int32 `protobuf:"varint,2,opt,name=progress,proto3" json:"progress,omitempty"` // 进度 // contains filtered or unexported fields }
任务数据
func (*QuestData) Descriptor
deprecated
func (*QuestData) GetProgress ¶
func (*QuestData) ProtoMessage ¶
func (*QuestData) ProtoMessage()
func (*QuestData) ProtoReflect ¶
func (x *QuestData) ProtoReflect() protoreflect.Message
type QuestSaveData ¶
type QuestSaveData struct { Finished []int32 `protobuf:"varint,1,rep,packed,name=finished,proto3" json:"finished,omitempty"` // 已完成的任务 Quests map[int32][]byte `` // 进行中的任务 /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
任务模块数据
func (*QuestSaveData) Descriptor
deprecated
func (*QuestSaveData) Descriptor() ([]byte, []int)
Deprecated: Use QuestSaveData.ProtoReflect.Descriptor instead.
func (*QuestSaveData) GetFinished ¶
func (x *QuestSaveData) GetFinished() []int32
func (*QuestSaveData) GetQuests ¶
func (x *QuestSaveData) GetQuests() map[int32][]byte
func (*QuestSaveData) ProtoMessage ¶
func (*QuestSaveData) ProtoMessage()
func (*QuestSaveData) ProtoReflect ¶
func (x *QuestSaveData) ProtoReflect() protoreflect.Message
func (*QuestSaveData) Reset ¶
func (x *QuestSaveData) Reset()
func (*QuestSaveData) String ¶
func (x *QuestSaveData) String() string
type QuestType ¶
type QuestType int32
时间类型
func (QuestType) Descriptor ¶
func (QuestType) Descriptor() protoreflect.EnumDescriptor
func (QuestType) EnumDescriptor
deprecated
func (QuestType) Number ¶
func (x QuestType) Number() protoreflect.EnumNumber
func (QuestType) Type ¶
func (QuestType) Type() protoreflect.EnumType
type RefreshType ¶
type RefreshType int32
刷新方式
const ( RefreshType_RefreshType_None RefreshType = 0 // 解决"The first enum value must be zero in proto3."的报错 RefreshType_RefreshType_Day RefreshType = 1 // 每日重置 )
func (RefreshType) Descriptor ¶
func (RefreshType) Descriptor() protoreflect.EnumDescriptor
func (RefreshType) Enum ¶
func (x RefreshType) Enum() *RefreshType
func (RefreshType) EnumDescriptor
deprecated
func (RefreshType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RefreshType.Descriptor instead.
func (RefreshType) Number ¶
func (x RefreshType) Number() protoreflect.EnumNumber
func (RefreshType) String ¶
func (x RefreshType) String() string
func (RefreshType) Type ¶
func (RefreshType) Type() protoreflect.EnumType
type RoutePlayerMessage ¶
type RoutePlayerMessage struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // 错误码 ToPlayerId int64 `protobuf:"varint,2,opt,name=toPlayerId,proto3" json:"toPlayerId,omitempty"` // 玩家id PacketCommand int32 `protobuf:"varint,3,opt,name=packetCommand,proto3" json:"packetCommand,omitempty"` // 消息号 DirectSendClient bool `protobuf:"varint,4,opt,name=directSendClient,proto3" json:"directSendClient,omitempty"` // 是否直接转发给客户端 PendingMessageId int64 `protobuf:"varint,5,opt,name=pendingMessageId,proto3" json:"pendingMessageId,omitempty"` // 待处理消息id PacketData *anypb.Any `protobuf:"bytes,6,opt,name=packetData,proto3" json:"packetData,omitempty"` // 转发的消息 // contains filtered or unexported fields }
路由转发给玩家的消息 server -> otherserver -> player
func (*RoutePlayerMessage) Descriptor
deprecated
func (*RoutePlayerMessage) Descriptor() ([]byte, []int)
Deprecated: Use RoutePlayerMessage.ProtoReflect.Descriptor instead.
func (*RoutePlayerMessage) GetDirectSendClient ¶
func (x *RoutePlayerMessage) GetDirectSendClient() bool
func (*RoutePlayerMessage) GetError ¶
func (x *RoutePlayerMessage) GetError() string
func (*RoutePlayerMessage) GetPacketCommand ¶
func (x *RoutePlayerMessage) GetPacketCommand() int32
func (*RoutePlayerMessage) GetPacketData ¶
func (x *RoutePlayerMessage) GetPacketData() *anypb.Any
func (*RoutePlayerMessage) GetPendingMessageId ¶
func (x *RoutePlayerMessage) GetPendingMessageId() int64
func (*RoutePlayerMessage) GetToPlayerId ¶
func (x *RoutePlayerMessage) GetToPlayerId() int64
func (*RoutePlayerMessage) ProtoMessage ¶
func (*RoutePlayerMessage) ProtoMessage()
func (*RoutePlayerMessage) ProtoReflect ¶
func (x *RoutePlayerMessage) ProtoReflect() protoreflect.Message
func (*RoutePlayerMessage) Reset ¶
func (x *RoutePlayerMessage) Reset()
func (*RoutePlayerMessage) String ¶
func (x *RoutePlayerMessage) String() string
type ServerHello ¶
type ServerHello struct { ServerId int32 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"` // 服务器id ServerType string `protobuf:"bytes,2,opt,name=serverType,proto3" json:"serverType,omitempty"` // 服务器类型 // contains filtered or unexported fields }
服务器连接上其他服务器时,发的初始化信息
func (*ServerHello) Descriptor
deprecated
func (*ServerHello) Descriptor() ([]byte, []int)
Deprecated: Use ServerHello.ProtoReflect.Descriptor instead.
func (*ServerHello) GetServerId ¶
func (x *ServerHello) GetServerId() int32
func (*ServerHello) GetServerType ¶
func (x *ServerHello) GetServerType() string
func (*ServerHello) ProtoMessage ¶
func (*ServerHello) ProtoMessage()
func (*ServerHello) ProtoReflect ¶
func (x *ServerHello) ProtoReflect() protoreflect.Message
func (*ServerHello) Reset ¶
func (x *ServerHello) Reset()
func (*ServerHello) String ¶
func (x *ServerHello) String() string
type ServerInfo ¶
type ServerInfo struct { ServerId int32 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"` // 服务器id ServerType string `protobuf:"bytes,2,opt,name=serverType,proto3" json:"serverType,omitempty"` // 服务器类型 ServerListenAddr string `protobuf:"bytes,3,opt,name=serverListenAddr,proto3" json:"serverListenAddr,omitempty"` // 监听服务器地址 ClientListenAddr string `protobuf:"bytes,4,opt,name=clientListenAddr,proto3" json:"clientListenAddr,omitempty"` // 监听客户端地址 GateListenAddr string `protobuf:"bytes,5,opt,name=gateListenAddr,proto3" json:"gateListenAddr,omitempty"` // 监听网关地址 LastActiveTime int64 `protobuf:"varint,6,opt,name=lastActiveTime,proto3" json:"lastActiveTime,omitempty"` // 最近上传信息的时间戳(毫秒) Ping int32 `protobuf:"varint,7,opt,name=ping,proto3" json:"ping,omitempty"` // ping值(毫秒) // contains filtered or unexported fields }
服务器信息
func (*ServerInfo) Descriptor
deprecated
func (*ServerInfo) Descriptor() ([]byte, []int)
Deprecated: Use ServerInfo.ProtoReflect.Descriptor instead.
func (*ServerInfo) GetClientListenAddr ¶
func (x *ServerInfo) GetClientListenAddr() string
func (*ServerInfo) GetGateListenAddr ¶
func (x *ServerInfo) GetGateListenAddr() string
func (*ServerInfo) GetLastActiveTime ¶
func (x *ServerInfo) GetLastActiveTime() int64
func (*ServerInfo) GetPing ¶
func (x *ServerInfo) GetPing() int32
func (*ServerInfo) GetServerId ¶
func (x *ServerInfo) GetServerId() int32
func (*ServerInfo) GetServerListenAddr ¶
func (x *ServerInfo) GetServerListenAddr() string
func (*ServerInfo) GetServerType ¶
func (x *ServerInfo) GetServerType() string
func (*ServerInfo) ProtoMessage ¶
func (*ServerInfo) ProtoMessage()
func (*ServerInfo) ProtoReflect ¶
func (x *ServerInfo) ProtoReflect() protoreflect.Message
func (*ServerInfo) Reset ¶
func (x *ServerInfo) Reset()
func (*ServerInfo) String ¶
func (x *ServerInfo) String() string
type ShutdownReq ¶
type ShutdownReq struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*ShutdownReq) Descriptor
deprecated
func (*ShutdownReq) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownReq.ProtoReflect.Descriptor instead.
func (*ShutdownReq) GetTimestamp ¶
func (x *ShutdownReq) GetTimestamp() int64
func (*ShutdownReq) ProtoMessage ¶
func (*ShutdownReq) ProtoMessage()
func (*ShutdownReq) ProtoReflect ¶
func (x *ShutdownReq) ProtoReflect() protoreflect.Message
func (*ShutdownReq) Reset ¶
func (x *ShutdownReq) Reset()
func (*ShutdownReq) String ¶
func (x *ShutdownReq) String() string
type StartupReq ¶
type StartupReq struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*StartupReq) Descriptor
deprecated
func (*StartupReq) Descriptor() ([]byte, []int)
Deprecated: Use StartupReq.ProtoReflect.Descriptor instead.
func (*StartupReq) GetTimestamp ¶
func (x *StartupReq) GetTimestamp() int64
func (*StartupReq) ProtoMessage ¶
func (*StartupReq) ProtoMessage()
func (*StartupReq) ProtoReflect ¶
func (x *StartupReq) ProtoReflect() protoreflect.Message
func (*StartupReq) Reset ¶
func (x *StartupReq) Reset()
func (*StartupReq) String ¶
func (x *StartupReq) String() string
type TestCmd ¶
type TestCmd struct { Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"` // contains filtered or unexported fields }
测试命令
func (*TestCmd) Descriptor
deprecated
func (*TestCmd) ProtoMessage ¶
func (*TestCmd) ProtoMessage()
func (*TestCmd) ProtoReflect ¶
func (x *TestCmd) ProtoReflect() protoreflect.Message
type TimeType ¶
type TimeType int32
时间类型
func (TimeType) Descriptor ¶
func (TimeType) Descriptor() protoreflect.EnumDescriptor
func (TimeType) EnumDescriptor
deprecated
func (TimeType) Number ¶
func (x TimeType) Number() protoreflect.EnumNumber
func (TimeType) Type ¶
func (TimeType) Type() protoreflect.EnumType
type UniqueCountItem ¶
type UniqueCountItem struct { UniqueId int64 `protobuf:"varint,1,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"` // 唯一id CfgId int32 `protobuf:"varint,2,opt,name=cfgId,proto3" json:"cfgId,omitempty"` // 物品配置id Timeout int32 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间戳(秒) // contains filtered or unexported fields }
不可叠加的普通物品(比如普通物品加了限时属性,就是不可叠加的了)
func (*UniqueCountItem) Descriptor
deprecated
func (*UniqueCountItem) Descriptor() ([]byte, []int)
Deprecated: Use UniqueCountItem.ProtoReflect.Descriptor instead.
func (*UniqueCountItem) GetCfgId ¶
func (x *UniqueCountItem) GetCfgId() int32
func (*UniqueCountItem) GetTimeout ¶
func (x *UniqueCountItem) GetTimeout() int32
func (*UniqueCountItem) GetUniqueId ¶
func (x *UniqueCountItem) GetUniqueId() int64
func (*UniqueCountItem) ProtoMessage ¶
func (*UniqueCountItem) ProtoMessage()
func (*UniqueCountItem) ProtoReflect ¶
func (x *UniqueCountItem) ProtoReflect() protoreflect.Message
func (*UniqueCountItem) Reset ¶
func (x *UniqueCountItem) Reset()
func (*UniqueCountItem) String ¶
func (x *UniqueCountItem) String() string