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 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 BagSaveData
- func (*BagSaveData) Descriptor() ([]byte, []int)deprecated
- func (x *BagSaveData) GetCountItem() map[int32]int32
- 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 BaseActivityCfg
- func (*BaseActivityCfg) Descriptor() ([]byte, []int)deprecated
- func (x *BaseActivityCfg) GetBeginTime() int32
- func (x *BaseActivityCfg) GetCfgId() int32
- func (x *BaseActivityCfg) GetCycleType() int32
- func (x *BaseActivityCfg) GetDetail() string
- func (x *BaseActivityCfg) GetEndTime() int32
- func (x *BaseActivityCfg) GetExchangeCfg(cfgId int32) *ExchangeCfg
- func (x *BaseActivityCfg) GetExchanges() []*ExchangeCfg
- func (x *BaseActivityCfg) GetIsOff() bool
- func (x *BaseActivityCfg) GetMaxPlayerLevel() int32
- func (x *BaseActivityCfg) GetMinPlayerLevel() int32
- func (x *BaseActivityCfg) GetName() string
- func (x *BaseActivityCfg) GetRefreshType() int32
- func (x *BaseActivityCfg) GetRemoveDataWhenEnd() bool
- func (x *BaseActivityCfg) GetTemplate() string
- func (x *BaseActivityCfg) GetTimeType() int32
- func (*BaseActivityCfg) ProtoMessage()
- func (x *BaseActivityCfg) ProtoReflect() protoreflect.Message
- func (x *BaseActivityCfg) Reset()
- func (x *BaseActivityCfg) String() string
- type BaseConditionCfg
- func (*BaseConditionCfg) Descriptor() ([]byte, []int)deprecated
- func (x *BaseConditionCfg) GetArg() int32
- func (x *BaseConditionCfg) GetOp() string
- func (x *BaseConditionCfg) GetType() int32
- func (*BaseConditionCfg) ProtoMessage()
- func (x *BaseConditionCfg) ProtoReflect() protoreflect.Message
- func (x *BaseConditionCfg) Reset()
- func (x *BaseConditionCfg) 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 BaseProgressCfg
- func (*BaseProgressCfg) Descriptor() ([]byte, []int)deprecated
- func (x *BaseProgressCfg) GetCountType() int32
- func (x *BaseProgressCfg) GetEvents() []string
- func (x *BaseProgressCfg) GetTotal() int32
- func (x *BaseProgressCfg) GetType() int32
- func (*BaseProgressCfg) ProtoMessage()
- func (x *BaseProgressCfg) ProtoReflect() protoreflect.Message
- func (x *BaseProgressCfg) Reset()
- func (x *BaseProgressCfg) String() string
- type BaseQuestCfg
- func (*BaseQuestCfg) Descriptor() ([]byte, []int)deprecated
- func (x *BaseQuestCfg) GetCfgId() int32
- func (x *BaseQuestCfg) GetDetail() string
- func (x *BaseQuestCfg) GetName() string
- func (x *BaseQuestCfg) GetPreQuest() int32
- func (x *BaseQuestCfg) GetRewards() []*ItemNum
- func (*BaseQuestCfg) ProtoMessage()
- func (x *BaseQuestCfg) ProtoReflect() protoreflect.Message
- func (x *BaseQuestCfg) Reset()
- func (x *BaseQuestCfg) String() string
- type ClientDisconnect
- type CmdClient
- type CmdServer
- type CoinReq
- type CoinRes
- type Color
- 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 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 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 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 EventPlayerLevelup
- func (*EventPlayerLevelup) Descriptor() ([]byte, []int)deprecated
- func (x *EventPlayerLevelup) GetLevel() int32
- func (x *EventPlayerLevelup) GetPlayerId() int64
- func (*EventPlayerLevelup) ProtoMessage()
- func (x *EventPlayerLevelup) ProtoReflect() protoreflect.Message
- func (x *EventPlayerLevelup) Reset()
- func (x *EventPlayerLevelup) String() string
- type EventPlayerPropertyInc
- func (*EventPlayerPropertyInc) Descriptor() ([]byte, []int)deprecated
- func (x *EventPlayerPropertyInc) GetPlayerId() int64
- func (x *EventPlayerPropertyInc) GetPropertyName() string
- func (x *EventPlayerPropertyInc) GetPropertyValue() int32
- func (*EventPlayerPropertyInc) ProtoMessage()
- func (x *EventPlayerPropertyInc) ProtoReflect() protoreflect.Message
- func (x *EventPlayerPropertyInc) Reset()
- func (x *EventPlayerPropertyInc) String() string
- type ExchangeCfg
- func (*ExchangeCfg) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeCfg) GetCfgId() int32
- func (x *ExchangeCfg) GetConsumeItems() []*ItemNum
- func (x *ExchangeCfg) GetCountLimit() int32
- func (x *ExchangeCfg) GetRewards() []*ItemNum
- 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 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) GetName() string
- func (x *ItemCfg) GetUnique() bool
- func (*ItemCfg) ProtoMessage()
- func (x *ItemCfg) ProtoReflect() protoreflect.Message
- func (x *ItemCfg) Reset()
- func (x *ItemCfg) String() string
- type ItemNum
- 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) GetBag() *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 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 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 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 UniqueItem
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 ( CmdClient_name = map[int32]string{ 0: "CmdClient_None", 1: "Cmd_HeartBeatReq", 2: "Cmd_HeartBeatRes", 3: "Cmd_ErrorRes", 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_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_PlayerLevelup", 2: "ProgressType_Fight", 3: "ProgressType_PlayerPropertyInc", } ProgressType_value = map[string]int32{ "ProgressType_None": 0, "ProgressType_PlayerLevelup": 1, "ProgressType_Fight": 2, "ProgressType_PlayerPropertyInc": 3, } )
Enum value maps for ProgressType.
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 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 BagSaveData ¶
type BagSaveData struct { CountItem map[int32]int32 `` /* 161-byte string literal not displayed */ UniqueItem map[int64][]byte `` /* 162-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) 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 BaseActivityCfg ¶
type BaseActivityCfg 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"` // 结束时间 Exchanges []*ExchangeCfg `protobuf:"bytes,10,rep,name=Exchanges,proto3" json:"Exchanges,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"` // 参与活动的最大玩家等级上限 // contains filtered or unexported fields }
活动基础配置
func (*BaseActivityCfg) Descriptor
deprecated
func (*BaseActivityCfg) Descriptor() ([]byte, []int)
Deprecated: Use BaseActivityCfg.ProtoReflect.Descriptor instead.
func (*BaseActivityCfg) GetBeginTime ¶
func (x *BaseActivityCfg) GetBeginTime() int32
func (*BaseActivityCfg) GetCfgId ¶
func (x *BaseActivityCfg) GetCfgId() int32
func (*BaseActivityCfg) GetCycleType ¶
func (x *BaseActivityCfg) GetCycleType() int32
func (*BaseActivityCfg) GetDetail ¶
func (x *BaseActivityCfg) GetDetail() string
func (*BaseActivityCfg) GetEndTime ¶
func (x *BaseActivityCfg) GetEndTime() int32
func (*BaseActivityCfg) GetExchangeCfg ¶
func (x *BaseActivityCfg) GetExchangeCfg(cfgId int32) *ExchangeCfg
func (*BaseActivityCfg) GetExchanges ¶
func (x *BaseActivityCfg) GetExchanges() []*ExchangeCfg
func (*BaseActivityCfg) GetIsOff ¶
func (x *BaseActivityCfg) GetIsOff() bool
func (*BaseActivityCfg) GetMaxPlayerLevel ¶
func (x *BaseActivityCfg) GetMaxPlayerLevel() int32
func (*BaseActivityCfg) GetMinPlayerLevel ¶
func (x *BaseActivityCfg) GetMinPlayerLevel() int32
func (*BaseActivityCfg) GetName ¶
func (x *BaseActivityCfg) GetName() string
func (*BaseActivityCfg) GetRefreshType ¶
func (x *BaseActivityCfg) GetRefreshType() int32
func (*BaseActivityCfg) GetRemoveDataWhenEnd ¶
func (x *BaseActivityCfg) GetRemoveDataWhenEnd() bool
func (*BaseActivityCfg) GetTemplate ¶
func (x *BaseActivityCfg) GetTemplate() string
func (*BaseActivityCfg) GetTimeType ¶
func (x *BaseActivityCfg) GetTimeType() int32
func (*BaseActivityCfg) ProtoMessage ¶
func (*BaseActivityCfg) ProtoMessage()
func (*BaseActivityCfg) ProtoReflect ¶
func (x *BaseActivityCfg) ProtoReflect() protoreflect.Message
func (*BaseActivityCfg) Reset ¶
func (x *BaseActivityCfg) Reset()
func (*BaseActivityCfg) String ¶
func (x *BaseActivityCfg) String() string
type BaseConditionCfg ¶
type BaseConditionCfg struct { Type int32 `protobuf:"varint,1,opt,name=Type,proto3" json:"Type,omitempty"` Arg int32 `protobuf:"varint,2,opt,name=Arg,proto3" json:"Arg,omitempty"` Op string `protobuf:"bytes,3,opt,name=Op,proto3" json:"Op,omitempty"` // contains filtered or unexported fields }
条件基础配置
func (*BaseConditionCfg) Descriptor
deprecated
func (*BaseConditionCfg) Descriptor() ([]byte, []int)
Deprecated: Use BaseConditionCfg.ProtoReflect.Descriptor instead.
func (*BaseConditionCfg) GetArg ¶
func (x *BaseConditionCfg) GetArg() int32
func (*BaseConditionCfg) GetOp ¶
func (x *BaseConditionCfg) GetOp() string
func (*BaseConditionCfg) GetType ¶
func (x *BaseConditionCfg) GetType() int32
func (*BaseConditionCfg) ProtoMessage ¶
func (*BaseConditionCfg) ProtoMessage()
func (*BaseConditionCfg) ProtoReflect ¶
func (x *BaseConditionCfg) ProtoReflect() protoreflect.Message
func (*BaseConditionCfg) Reset ¶
func (x *BaseConditionCfg) Reset()
func (*BaseConditionCfg) String ¶
func (x *BaseConditionCfg) 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 BaseProgressCfg ¶
type BaseProgressCfg struct { Type int32 `protobuf:"varint,1,opt,name=Type,proto3" json:"Type,omitempty"` // 进度类型 CountType int32 `protobuf:"varint,2,opt,name=CountType,proto3" json:"CountType,omitempty"` // 计数类型 Total int32 `protobuf:"varint,3,opt,name=Total,proto3" json:"Total,omitempty"` // 总进度要求 Events []string `protobuf:"bytes,4,rep,name=Events,proto3" json:"Events,omitempty"` // 响应事件 // contains filtered or unexported fields }
进度基础配置
func (*BaseProgressCfg) Descriptor
deprecated
func (*BaseProgressCfg) Descriptor() ([]byte, []int)
Deprecated: Use BaseProgressCfg.ProtoReflect.Descriptor instead.
func (*BaseProgressCfg) GetCountType ¶
func (x *BaseProgressCfg) GetCountType() int32
func (*BaseProgressCfg) GetEvents ¶
func (x *BaseProgressCfg) GetEvents() []string
func (*BaseProgressCfg) GetTotal ¶
func (x *BaseProgressCfg) GetTotal() int32
func (*BaseProgressCfg) GetType ¶
func (x *BaseProgressCfg) GetType() int32
func (*BaseProgressCfg) ProtoMessage ¶
func (*BaseProgressCfg) ProtoMessage()
func (*BaseProgressCfg) ProtoReflect ¶
func (x *BaseProgressCfg) ProtoReflect() protoreflect.Message
func (*BaseProgressCfg) Reset ¶
func (x *BaseProgressCfg) Reset()
func (*BaseProgressCfg) String ¶
func (x *BaseProgressCfg) String() string
type BaseQuestCfg ¶
type BaseQuestCfg 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"` Rewards []*ItemNum `protobuf:"bytes,4,rep,name=Rewards,proto3" json:"Rewards,omitempty"` PreQuest int32 `protobuf:"varint,5,opt,name=PreQuest,proto3" json:"PreQuest,omitempty"` // 前置任务 // contains filtered or unexported fields }
任务基础配置
func (*BaseQuestCfg) Descriptor
deprecated
func (*BaseQuestCfg) Descriptor() ([]byte, []int)
Deprecated: Use BaseQuestCfg.ProtoReflect.Descriptor instead.
func (*BaseQuestCfg) GetCfgId ¶
func (x *BaseQuestCfg) GetCfgId() int32
func (*BaseQuestCfg) GetDetail ¶
func (x *BaseQuestCfg) GetDetail() string
func (*BaseQuestCfg) GetName ¶
func (x *BaseQuestCfg) GetName() string
func (*BaseQuestCfg) GetPreQuest ¶
func (x *BaseQuestCfg) GetPreQuest() int32
func (*BaseQuestCfg) GetRewards ¶
func (x *BaseQuestCfg) GetRewards() []*ItemNum
func (*BaseQuestCfg) ProtoMessage ¶
func (*BaseQuestCfg) ProtoMessage()
func (*BaseQuestCfg) ProtoReflect ¶
func (x *BaseQuestCfg) ProtoReflect() protoreflect.Message
func (*BaseQuestCfg) Reset ¶
func (x *BaseQuestCfg) Reset()
func (*BaseQuestCfg) String ¶
func (x *BaseQuestCfg) String() string
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 // 通用的错误返回消息 // 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 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 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 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 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 EventPlayerLevelup ¶
type EventPlayerLevelup struct { PlayerId int64 `protobuf:"varint,1,opt,name=playerId,proto3" json:"playerId,omitempty"` Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` // contains filtered or unexported fields }
玩家升级事件
func (*EventPlayerLevelup) Descriptor
deprecated
func (*EventPlayerLevelup) Descriptor() ([]byte, []int)
Deprecated: Use EventPlayerLevelup.ProtoReflect.Descriptor instead.
func (*EventPlayerLevelup) GetLevel ¶
func (x *EventPlayerLevelup) GetLevel() int32
func (*EventPlayerLevelup) GetPlayerId ¶
func (x *EventPlayerLevelup) GetPlayerId() int64
func (*EventPlayerLevelup) ProtoMessage ¶
func (*EventPlayerLevelup) ProtoMessage()
func (*EventPlayerLevelup) ProtoReflect ¶
func (x *EventPlayerLevelup) ProtoReflect() protoreflect.Message
func (*EventPlayerLevelup) Reset ¶
func (x *EventPlayerLevelup) Reset()
func (*EventPlayerLevelup) String ¶
func (x *EventPlayerLevelup) String() string
type EventPlayerPropertyInc ¶
type EventPlayerPropertyInc 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 (*EventPlayerPropertyInc) Descriptor
deprecated
func (*EventPlayerPropertyInc) Descriptor() ([]byte, []int)
Deprecated: Use EventPlayerPropertyInc.ProtoReflect.Descriptor instead.
func (*EventPlayerPropertyInc) GetPlayerId ¶
func (x *EventPlayerPropertyInc) GetPlayerId() int64
func (*EventPlayerPropertyInc) GetPropertyName ¶
func (x *EventPlayerPropertyInc) GetPropertyName() string
func (*EventPlayerPropertyInc) GetPropertyValue ¶
func (x *EventPlayerPropertyInc) GetPropertyValue() int32
func (*EventPlayerPropertyInc) ProtoMessage ¶
func (*EventPlayerPropertyInc) ProtoMessage()
func (*EventPlayerPropertyInc) ProtoReflect ¶
func (x *EventPlayerPropertyInc) ProtoReflect() protoreflect.Message
func (*EventPlayerPropertyInc) Reset ¶
func (x *EventPlayerPropertyInc) Reset()
func (*EventPlayerPropertyInc) String ¶
func (x *EventPlayerPropertyInc) String() string
type ExchangeCfg ¶
type ExchangeCfg struct { CfgId int32 `protobuf:"varint,1,opt,name=CfgId,proto3" json:"CfgId,omitempty"` ConsumeItems []*ItemNum `protobuf:"bytes,2,rep,name=ConsumeItems,proto3" json:"ConsumeItems,omitempty"` // 需要消耗的物品 Rewards []*ItemNum `protobuf:"bytes,3,rep,name=Rewards,proto3" json:"Rewards,omitempty"` // 获得物品 CountLimit int32 `protobuf:"varint,4,opt,name=CountLimit,proto3" json:"CountLimit,omitempty"` // 兑换次数限制 // 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) GetConsumeItems ¶
func (x *ExchangeCfg) GetConsumeItems() []*ItemNum
func (*ExchangeCfg) GetCountLimit ¶
func (x *ExchangeCfg) GetCountLimit() int32
func (*ExchangeCfg) GetRewards ¶
func (x *ExchangeCfg) GetRewards() []*ItemNum
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 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"` Unique bool `protobuf:"varint,4,opt,name=Unique,proto3" json:"Unique,omitempty"` // 是否不可叠加 // contains filtered or unexported fields }
物品配置
func (*ItemCfg) Descriptor
deprecated
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 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"` Bag *BagSaveData `protobuf:"bytes,7,opt,name=bag,proto3" json:"bag,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) GetBag ¶
func (x *PlayerData) GetBag() *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 ProgressType ¶
type ProgressType int32
进度类型
const ( ProgressType_ProgressType_None ProgressType = 0 // 解决"The first enum value must be zero in proto3."的报错 ProgressType_ProgressType_PlayerLevelup ProgressType = 1 // 玩家升级 ProgressType_ProgressType_Fight ProgressType = 2 // 战斗 ProgressType_ProgressType_PlayerPropertyInc 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 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 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 UniqueItem ¶
type UniqueItem 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 // contains filtered or unexported fields }
不可叠加的物品
func (*UniqueItem) Descriptor
deprecated
func (*UniqueItem) Descriptor() ([]byte, []int)
Deprecated: Use UniqueItem.ProtoReflect.Descriptor instead.
func (*UniqueItem) GetCfgId ¶
func (x *UniqueItem) GetCfgId() int32
func (*UniqueItem) GetUniqueId ¶
func (x *UniqueItem) GetUniqueId() int64
func (*UniqueItem) ProtoMessage ¶
func (*UniqueItem) ProtoMessage()
func (*UniqueItem) ProtoReflect ¶
func (x *UniqueItem) ProtoReflect() protoreflect.Message
func (*UniqueItem) Reset ¶
func (x *UniqueItem) Reset()
func (*UniqueItem) String ¶
func (x *UniqueItem) String() string