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) 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) 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) GetLastUpdateDate() int32
- func (x *BaseInfo) GetLevel() 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 CmdGuild
- type CmdInner
- type CmdLogin
- type CmdMoney
- type CmdQuest
- type CmdRoute
- type CoinReq
- type CoinRes
- 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 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 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 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() uint64
- func (x *HeartBeatRes) GetResponseTimestamp() uint64
- 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 KickPlayer
- 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 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() []byte
- 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 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 QuestData
- 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) GetMessageId() int64
- func (x *RoutePlayerMessage) GetPacketCommand() int32
- func (x *RoutePlayerMessage) GetPacketData() *anypb.Any
- func (x *RoutePlayerMessage) GetToPlayerId() int64
- func (*RoutePlayerMessage) ProtoMessage()
- func (x *RoutePlayerMessage) ProtoReflect() protoreflect.Message
- func (x *RoutePlayerMessage) Reset()
- func (x *RoutePlayerMessage) 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) 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 TestCmd
- type TimeType
- type UniqueItem
Constants ¶
This section is empty.
Variables ¶
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 ( 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 ( CmdGuild_name = map[int32]string{ 0: "CmdGuild_None", 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", } CmdGuild_value = map[string]int32{ "CmdGuild_None": 0, "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, } )
Enum value maps for CmdGuild.
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 ( CmdInner_name = map[int32]string{ 0: "CmdInner_None", 1: "Cmd_HeartBeatReq", 2: "Cmd_HeartBeatRes", 3: "Cmd_ErrorRes", 4: "Cmd_KickPlayer", 5: "Cmd_TestCmd", 6: "Cmd_ClientDisconnect", } CmdInner_value = map[string]int32{ "CmdInner_None": 0, "Cmd_HeartBeatReq": 1, "Cmd_HeartBeatRes": 2, "Cmd_ErrorRes": 3, "Cmd_KickPlayer": 4, "Cmd_TestCmd": 5, "Cmd_ClientDisconnect": 6, } )
Enum value maps for CmdInner.
var ( CmdLogin_name = map[int32]string{ 0: "CmdLogin_None", 1001: "Cmd_LoginReq", 1002: "Cmd_LoginRes", 1003: "Cmd_AccountReg", 1004: "Cmd_AccountRes", 1005: "Cmd_PlayerEntryGameReq", 1006: "Cmd_PlayerEntryGameRes", 1007: "Cmd_CreatePlayerReq", 1008: "Cmd_CreatePlayerRes", } CmdLogin_value = map[string]int32{ "CmdLogin_None": 0, "Cmd_LoginReq": 1001, "Cmd_LoginRes": 1002, "Cmd_AccountReg": 1003, "Cmd_AccountRes": 1004, "Cmd_PlayerEntryGameReq": 1005, "Cmd_PlayerEntryGameRes": 1006, "Cmd_CreatePlayerReq": 1007, "Cmd_CreatePlayerRes": 1008, } )
Enum value maps for CmdLogin.
var ( CmdMoney_name = map[int32]string{ 0: "CmdMoney_None", 1101: "Cmd_CoinReq", 1102: "Cmd_CoinRes", } CmdMoney_value = map[string]int32{ "CmdMoney_None": 0, "Cmd_CoinReq": 1101, "Cmd_CoinRes": 1102, } )
Enum value maps for CmdMoney.
var ( CmdQuest_name = map[int32]string{ 0: "CmdQuest_None", 1201: "Cmd_FinishQuestReq", 1202: "Cmd_FinishQuestRes", } CmdQuest_value = map[string]int32{ "CmdQuest_None": 0, "Cmd_FinishQuestReq": 1201, "Cmd_FinishQuestRes": 1202, } )
Enum value maps for CmdQuest.
var ( CmdRoute_name = map[int32]string{ 0: "CmdRoute_None", 3001: "Cmd_RoutePlayerMessage", 3003: "Cmd_GuildRoutePlayerMessageReq", } CmdRoute_value = map[string]int32{ "CmdRoute_None": 0, "Cmd_RoutePlayerMessage": 3001, "Cmd_GuildRoutePlayerMessageReq": 3003, } )
Enum value maps for CmdRoute.
var File_account_proto protoreflect.FileDescriptor
var File_cfg_proto protoreflect.FileDescriptor
var File_condition_proto protoreflect.FileDescriptor
var File_guild_proto protoreflect.FileDescriptor
var File_inner_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_quest_proto protoreflect.FileDescriptor
var File_route_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) 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) 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 // contains filtered or unexported fields }
玩家基础信息
func (*BaseInfo) Descriptor
deprecated
func (*BaseInfo) GetLastUpdateDate ¶
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 CmdGuild ¶
type CmdGuild int32
const ( CmdGuild_CmdGuild_None CmdGuild = 0 // 解决"The first enum value must be zero in proto3."的报错 CmdGuild_Cmd_GuildListReq CmdGuild = 2001 CmdGuild_Cmd_GuildListRes CmdGuild = 2002 CmdGuild_Cmd_GuildCreateReq CmdGuild = 2003 CmdGuild_Cmd_GuildCreateRes CmdGuild = 2004 CmdGuild_Cmd_GuildJoinReq CmdGuild = 2005 CmdGuild_Cmd_GuildJoinRes CmdGuild = 2006 CmdGuild_Cmd_GuildJoinAgreeReq CmdGuild = 2007 CmdGuild_Cmd_GuildJoinAgreeRes CmdGuild = 2008 CmdGuild_Cmd_GuildDataViewReq CmdGuild = 2009 CmdGuild_Cmd_GuildDataViewRes CmdGuild = 2010 CmdGuild_Cmd_GuildJoinReqTip CmdGuild = 2012 )
func (CmdGuild) Descriptor ¶
func (CmdGuild) Descriptor() protoreflect.EnumDescriptor
func (CmdGuild) EnumDescriptor
deprecated
func (CmdGuild) Number ¶
func (x CmdGuild) Number() protoreflect.EnumNumber
func (CmdGuild) Type ¶
func (CmdGuild) Type() protoreflect.EnumType
type CmdInner ¶
type CmdInner int32
消息号定义
const ( CmdInner_CmdInner_None CmdInner = 0 // 解决"The first enum value must be zero in proto3."的报错 // 消息号枚举值的命名规范:Cmd_MessageName,便于工具处理,生成一些辅助代码 CmdInner_Cmd_HeartBeatReq CmdInner = 1 // 心跳请求 CmdInner_Cmd_HeartBeatRes CmdInner = 2 // 心跳返回 CmdInner_Cmd_ErrorRes CmdInner = 3 // 通用的错误返回消息 CmdInner_Cmd_KickPlayer CmdInner = 4 // 踢玩家下线 CmdInner_Cmd_TestCmd CmdInner = 5 // 测试命令 CmdInner_Cmd_ClientDisconnect CmdInner = 6 // 客户端掉线 )
func (CmdInner) Descriptor ¶
func (CmdInner) Descriptor() protoreflect.EnumDescriptor
func (CmdInner) EnumDescriptor
deprecated
func (CmdInner) Number ¶
func (x CmdInner) Number() protoreflect.EnumNumber
func (CmdInner) Type ¶
func (CmdInner) Type() protoreflect.EnumType
type CmdLogin ¶
type CmdLogin int32
消息号定义
const ( CmdLogin_CmdLogin_None CmdLogin = 0 // 解决"The first enum value must be zero in proto3."的报错 CmdLogin_Cmd_LoginReq CmdLogin = 1001 CmdLogin_Cmd_LoginRes CmdLogin = 1002 CmdLogin_Cmd_AccountReg CmdLogin = 1003 CmdLogin_Cmd_AccountRes CmdLogin = 1004 CmdLogin_Cmd_PlayerEntryGameReq CmdLogin = 1005 CmdLogin_Cmd_PlayerEntryGameRes CmdLogin = 1006 CmdLogin_Cmd_CreatePlayerReq CmdLogin = 1007 CmdLogin_Cmd_CreatePlayerRes CmdLogin = 1008 )
func (CmdLogin) Descriptor ¶
func (CmdLogin) Descriptor() protoreflect.EnumDescriptor
func (CmdLogin) EnumDescriptor
deprecated
func (CmdLogin) Number ¶
func (x CmdLogin) Number() protoreflect.EnumNumber
func (CmdLogin) Type ¶
func (CmdLogin) Type() protoreflect.EnumType
type CmdMoney ¶
type CmdMoney int32
消息号定义
func (CmdMoney) Descriptor ¶
func (CmdMoney) Descriptor() protoreflect.EnumDescriptor
func (CmdMoney) EnumDescriptor
deprecated
func (CmdMoney) Number ¶
func (x CmdMoney) Number() protoreflect.EnumNumber
func (CmdMoney) Type ¶
func (CmdMoney) Type() protoreflect.EnumType
type CmdQuest ¶
type CmdQuest int32
消息号定义
func (CmdQuest) Descriptor ¶
func (CmdQuest) Descriptor() protoreflect.EnumDescriptor
func (CmdQuest) EnumDescriptor
deprecated
func (CmdQuest) Number ¶
func (x CmdQuest) Number() protoreflect.EnumNumber
func (CmdQuest) Type ¶
func (CmdQuest) Type() protoreflect.EnumType
type CmdRoute ¶
type CmdRoute int32
func (CmdRoute) Descriptor ¶
func (CmdRoute) Descriptor() protoreflect.EnumDescriptor
func (CmdRoute) EnumDescriptor
deprecated
func (CmdRoute) Number ¶
func (x CmdRoute) Number() protoreflect.EnumNumber
func (CmdRoute) Type ¶
func (CmdRoute) 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的测试消息 @Client表示是客户端发的消息,工具也可以考虑为客户端生成相应的辅助代码(c#或lua) @Client @PlayerHandler
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的返回结果 @Player表示是服务器上的玩家对象发给客户端的消息,工具会生成相应的辅助代码 @Player
func (*CoinRes) Descriptor
deprecated
func (*CoinRes) GetTotalCoin ¶
func (*CoinRes) ProtoMessage ¶
func (*CoinRes) ProtoMessage()
func (*CoinRes) ProtoReflect ¶
func (x *CoinRes) ProtoReflect() protoreflect.Message
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 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 }
完成任务 @Client表示是客户端发的消息,工具也可以考虑为客户端生成相应的辅助代码(c#或lua) @Client @PlayerHandler
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 }
完成任务的返回结果 @Player表示是服务器上的玩家对象发给客户端的消息,工具会生成相应的辅助代码 @Player
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 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 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 uint64 `protobuf:"fixed64,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() uint64
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 uint64 `protobuf:"fixed64,1,opt,name=requestTimestamp,proto3" json:"requestTimestamp,omitempty"` // 请求方的时间戳 ResponseTimestamp uint64 `protobuf:"fixed64,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() uint64
func (*HeartBeatRes) GetResponseTimestamp ¶
func (x *HeartBeatRes) GetResponseTimestamp() uint64
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 KickPlayer ¶
type KickPlayer 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 }
踢玩家下线 @Server表示是服务器用的普通消息,工具会生成相应的辅助代码 @Server
func (*KickPlayer) Descriptor
deprecated
func (*KickPlayer) Descriptor() ([]byte, []int)
Deprecated: Use KickPlayer.ProtoReflect.Descriptor instead.
func (*KickPlayer) GetAccountId ¶
func (x *KickPlayer) GetAccountId() int64
func (*KickPlayer) GetPlayerId ¶
func (x *KickPlayer) GetPlayerId() int64
func (*KickPlayer) ProtoMessage ¶
func (*KickPlayer) ProtoMessage()
func (*KickPlayer) ProtoReflect ¶
func (x *KickPlayer) ProtoReflect() protoreflect.Message
func (*KickPlayer) Reset ¶
func (x *KickPlayer) Reset()
func (*KickPlayer) String ¶
func (x *KickPlayer) String() string
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 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 []byte `protobuf:"bytes,9,opt,name=guild,proto3" json:"guild,omitempty"` // (proto序列化) 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() []byte
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 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 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 { ToPlayerId int64 `protobuf:"varint,1,opt,name=toPlayerId,proto3" json:"toPlayerId,omitempty"` // 玩家id PacketCommand int32 `protobuf:"varint,2,opt,name=packetCommand,proto3" json:"packetCommand,omitempty"` // 消息号 DirectSendClient bool `protobuf:"varint,3,opt,name=directSendClient,proto3" json:"directSendClient,omitempty"` // 是否直接转发给客户端 MessageId int64 `protobuf:"varint,4,opt,name=messageId,proto3" json:"messageId,omitempty"` // 消息id PacketData *anypb.Any `protobuf:"bytes,5,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) GetMessageId ¶
func (x *RoutePlayerMessage) GetMessageId() int64
func (*RoutePlayerMessage) GetPacketCommand ¶
func (x *RoutePlayerMessage) GetPacketCommand() int32
func (*RoutePlayerMessage) GetPacketData ¶
func (x *RoutePlayerMessage) GetPacketData() *anypb.Any
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 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"` // 最近上传信息的时间戳(毫秒) // 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) 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 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