Documentation
¶
Index ¶
- Constants
- Variables
- func UnregisterDebugRpc(initializer runtime.Initializer) error
- func UnregisterRpc(initializer runtime.Initializer, ids ...RpcId) error
- type Achievement
- func (*Achievement) Descriptor() ([]byte, []int)deprecated
- func (x *Achievement) GetAdditionalProperties() map[string]string
- func (x *Achievement) GetAutoClaim() bool
- func (x *Achievement) GetAutoClaimTotal() bool
- func (x *Achievement) GetAutoReset() bool
- func (x *Achievement) GetAvailableRewards() *AvailableRewards
- func (x *Achievement) GetAvailableTotalReward() *AvailableRewards
- func (x *Achievement) GetCategory() string
- func (x *Achievement) GetClaimTimeSec() int64
- func (x *Achievement) GetCount() int64
- func (x *Achievement) GetCurrentTimeSec() int64
- func (x *Achievement) GetDescription() string
- func (x *Achievement) GetEndTimeSec() int64
- func (x *Achievement) GetExpireTimeSec() int64
- func (x *Achievement) GetId() string
- func (x *Achievement) GetIsActive() bool
- func (x *Achievement) GetMaxCount() int64
- func (x *Achievement) GetName() string
- func (x *Achievement) GetPreconditionIds() []string
- func (x *Achievement) GetResetTimeSec() int64
- func (x *Achievement) GetReward() *Reward
- func (x *Achievement) GetStartTimeSec() int64
- func (x *Achievement) GetSubAchievements() map[string]*SubAchievement
- func (x *Achievement) GetTotalClaimTimeSec() int64
- func (x *Achievement) GetTotalReward() *Reward
- func (x *Achievement) GetUpdateTimeSec() int64
- func (*Achievement) ProtoMessage()
- func (x *Achievement) ProtoReflect() protoreflect.Message
- func (x *Achievement) Reset()
- func (x *Achievement) String() string
- type AchievementList
- func (*AchievementList) Descriptor() ([]byte, []int)deprecated
- func (x *AchievementList) GetAchievements() map[string]*Achievement
- func (x *AchievementList) GetRepeatAchievements() map[string]*Achievement
- func (*AchievementList) ProtoMessage()
- func (x *AchievementList) ProtoReflect() protoreflect.Message
- func (x *AchievementList) Reset()
- func (x *AchievementList) String() string
- type AchievementsClaimRequest
- func (*AchievementsClaimRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AchievementsClaimRequest) GetClaimTotalReward() bool
- func (x *AchievementsClaimRequest) GetIds() []string
- func (*AchievementsClaimRequest) ProtoMessage()
- func (x *AchievementsClaimRequest) ProtoReflect() protoreflect.Message
- func (x *AchievementsClaimRequest) Reset()
- func (x *AchievementsClaimRequest) String() string
- type AchievementsConfig
- type AchievementsConfigAchievement
- type AchievementsConfigSubAchievement
- type AchievementsGetRequest
- type AchievementsSystem
- type AchievementsUpdateAck
- func (*AchievementsUpdateAck) Descriptor() ([]byte, []int)deprecated
- func (x *AchievementsUpdateAck) GetAchievements() map[string]*Achievement
- func (x *AchievementsUpdateAck) GetRepeatAchievements() map[string]*Achievement
- func (*AchievementsUpdateAck) ProtoMessage()
- func (x *AchievementsUpdateAck) ProtoReflect() protoreflect.Message
- func (x *AchievementsUpdateAck) Reset()
- func (x *AchievementsUpdateAck) String() string
- type AchievementsUpdateRequest
- func (*AchievementsUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AchievementsUpdateRequest) GetAchievements() map[string]int64
- func (x *AchievementsUpdateRequest) GetAmount() int64
- func (x *AchievementsUpdateRequest) GetIds() []string
- func (*AchievementsUpdateRequest) ProtoMessage()
- func (x *AchievementsUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *AchievementsUpdateRequest) Reset()
- func (x *AchievementsUpdateRequest) String() string
- type ActiveRewardModifier
- func (*ActiveRewardModifier) Descriptor() ([]byte, []int)deprecated
- func (x *ActiveRewardModifier) GetEndTimeSec() int64
- func (x *ActiveRewardModifier) GetId() string
- func (x *ActiveRewardModifier) GetOperator() string
- func (x *ActiveRewardModifier) GetStartTimeSec() int64
- func (x *ActiveRewardModifier) GetType() string
- func (x *ActiveRewardModifier) GetValue() int64
- func (*ActiveRewardModifier) ProtoMessage()
- func (x *ActiveRewardModifier) ProtoReflect() protoreflect.Message
- func (x *ActiveRewardModifier) Reset()
- func (x *ActiveRewardModifier) String() string
- type ActivityCalculator
- type AfterAuthenticateFn
- type Auction
- func (*Auction) Descriptor() ([]byte, []int)deprecated
- func (x *Auction) GetBid() *AuctionBid
- func (x *Auction) GetBidFirst() *AuctionBid
- func (x *Auction) GetBidHistory() []*AuctionBid
- func (x *Auction) GetBidNext() *AuctionBidAmount
- func (x *Auction) GetCanBid() bool
- func (x *Auction) GetCanCancel() bool
- func (x *Auction) GetCanClaim() bool
- func (x *Auction) GetCancelTimeSec() int64
- func (x *Auction) GetCreateTimeSec() int64
- func (x *Auction) GetCurrentTimeSec() int64
- func (x *Auction) GetDurationSec() int64
- func (x *Auction) GetEndTimeSec() int64
- func (x *Auction) GetExtensionAddedSec() int64
- func (x *Auction) GetExtensionMaxSec() int64
- func (x *Auction) GetExtensionRemainingSec() int64
- func (x *Auction) GetExtensionSec() int64
- func (x *Auction) GetExtensionThresholdSec() int64
- func (x *Auction) GetFee() *AuctionFee
- func (x *Auction) GetHasEnded() bool
- func (x *Auction) GetHasStarted() bool
- func (x *Auction) GetId() string
- func (x *Auction) GetOriginalDurationSec() int64
- func (x *Auction) GetOriginalEndTimeSec() int64
- func (x *Auction) GetOwnerClaimSec() int64
- func (x *Auction) GetReward() *AuctionReward
- func (x *Auction) GetStartTimeSec() int64
- func (x *Auction) GetUpdateTimeSec() int64
- func (x *Auction) GetUserId() string
- func (x *Auction) GetVersion() string
- func (x *Auction) GetWinnerClaimSec() int64
- func (*Auction) ProtoMessage()
- func (x *Auction) ProtoReflect() protoreflect.Message
- func (x *Auction) Reset()
- func (x *Auction) String() string
- type AuctionBid
- func (*AuctionBid) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionBid) GetBid() *AuctionBidAmount
- func (x *AuctionBid) GetCreateTimeSec() int64
- func (x *AuctionBid) GetUserId() string
- func (*AuctionBid) ProtoMessage()
- func (x *AuctionBid) ProtoReflect() protoreflect.Message
- func (x *AuctionBid) Reset()
- func (x *AuctionBid) String() string
- type AuctionBidAmount
- func (*AuctionBidAmount) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionBidAmount) GetCurrencies() map[string]int64
- func (*AuctionBidAmount) ProtoMessage()
- func (x *AuctionBidAmount) ProtoReflect() protoreflect.Message
- func (x *AuctionBidAmount) Reset()
- func (x *AuctionBidAmount) String() string
- type AuctionBidRequest
- func (*AuctionBidRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionBidRequest) GetBid() *AuctionBidAmount
- func (x *AuctionBidRequest) GetId() string
- func (x *AuctionBidRequest) GetVersion() string
- func (*AuctionBidRequest) ProtoMessage()
- func (x *AuctionBidRequest) ProtoReflect() protoreflect.Message
- func (x *AuctionBidRequest) Reset()
- func (x *AuctionBidRequest) String() string
- type AuctionCancel
- func (*AuctionCancel) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionCancel) GetAuction() *Auction
- func (x *AuctionCancel) GetReward() *AuctionReward
- func (*AuctionCancel) ProtoMessage()
- func (x *AuctionCancel) ProtoReflect() protoreflect.Message
- func (x *AuctionCancel) Reset()
- func (x *AuctionCancel) String() string
- type AuctionCancelRequest
- func (*AuctionCancelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionCancelRequest) GetId() string
- func (*AuctionCancelRequest) ProtoMessage()
- func (x *AuctionCancelRequest) ProtoReflect() protoreflect.Message
- func (x *AuctionCancelRequest) Reset()
- func (x *AuctionCancelRequest) String() string
- type AuctionClaimBid
- func (*AuctionClaimBid) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionClaimBid) GetAuction() *Auction
- func (x *AuctionClaimBid) GetReward() *AuctionReward
- func (*AuctionClaimBid) ProtoMessage()
- func (x *AuctionClaimBid) ProtoReflect() protoreflect.Message
- func (x *AuctionClaimBid) Reset()
- func (x *AuctionClaimBid) String() string
- type AuctionClaimBidRequest
- func (*AuctionClaimBidRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionClaimBidRequest) GetId() string
- func (*AuctionClaimBidRequest) ProtoMessage()
- func (x *AuctionClaimBidRequest) ProtoReflect() protoreflect.Message
- func (x *AuctionClaimBidRequest) Reset()
- func (x *AuctionClaimBidRequest) String() string
- type AuctionClaimCreated
- func (*AuctionClaimCreated) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionClaimCreated) GetAuction() *Auction
- func (x *AuctionClaimCreated) GetFee() *AuctionBidAmount
- func (x *AuctionClaimCreated) GetReturnedItems() []*InventoryItem
- func (x *AuctionClaimCreated) GetReward() *AuctionBidAmount
- func (*AuctionClaimCreated) ProtoMessage()
- func (x *AuctionClaimCreated) ProtoReflect() protoreflect.Message
- func (x *AuctionClaimCreated) Reset()
- func (x *AuctionClaimCreated) String() string
- type AuctionClaimCreatedRequest
- func (*AuctionClaimCreatedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionClaimCreatedRequest) GetId() string
- func (*AuctionClaimCreatedRequest) ProtoMessage()
- func (x *AuctionClaimCreatedRequest) ProtoReflect() protoreflect.Message
- func (x *AuctionClaimCreatedRequest) Reset()
- func (x *AuctionClaimCreatedRequest) String() string
- type AuctionCreateRequest
- func (*AuctionCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionCreateRequest) GetConditionId() string
- func (x *AuctionCreateRequest) GetInstanceIds() []string
- func (x *AuctionCreateRequest) GetStartTimeSec() int64
- func (x *AuctionCreateRequest) GetTemplateId() string
- func (*AuctionCreateRequest) ProtoMessage()
- func (x *AuctionCreateRequest) ProtoReflect() protoreflect.Message
- func (x *AuctionCreateRequest) Reset()
- func (x *AuctionCreateRequest) String() string
- type AuctionFee
- func (*AuctionFee) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionFee) GetFixed() *AuctionBidAmount
- func (x *AuctionFee) GetPercentage() float64
- func (*AuctionFee) ProtoMessage()
- func (x *AuctionFee) ProtoReflect() protoreflect.Message
- func (x *AuctionFee) Reset()
- func (x *AuctionFee) String() string
- type AuctionList
- func (*AuctionList) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionList) GetAuctions() []*Auction
- func (x *AuctionList) GetCursor() string
- func (*AuctionList) ProtoMessage()
- func (x *AuctionList) ProtoReflect() protoreflect.Message
- func (x *AuctionList) Reset()
- func (x *AuctionList) String() string
- type AuctionListBidsRequest
- func (*AuctionListBidsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionListBidsRequest) GetCursor() string
- func (x *AuctionListBidsRequest) GetLimit() int64
- func (*AuctionListBidsRequest) ProtoMessage()
- func (x *AuctionListBidsRequest) ProtoReflect() protoreflect.Message
- func (x *AuctionListBidsRequest) Reset()
- func (x *AuctionListBidsRequest) String() string
- type AuctionListCreatedRequest
- func (*AuctionListCreatedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionListCreatedRequest) GetCursor() string
- func (x *AuctionListCreatedRequest) GetLimit() int64
- func (*AuctionListCreatedRequest) ProtoMessage()
- func (x *AuctionListCreatedRequest) ProtoReflect() protoreflect.Message
- func (x *AuctionListCreatedRequest) Reset()
- func (x *AuctionListCreatedRequest) String() string
- type AuctionListRequest
- func (*AuctionListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionListRequest) GetCursor() string
- func (x *AuctionListRequest) GetLimit() int64
- func (x *AuctionListRequest) GetQuery() string
- func (x *AuctionListRequest) GetSort() []string
- func (*AuctionListRequest) ProtoMessage()
- func (x *AuctionListRequest) ProtoReflect() protoreflect.Message
- func (x *AuctionListRequest) Reset()
- func (x *AuctionListRequest) String() string
- type AuctionNotificationBid
- func (*AuctionNotificationBid) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionNotificationBid) GetBid() *AuctionBid
- func (x *AuctionNotificationBid) GetBidNext() *AuctionBidAmount
- func (x *AuctionNotificationBid) GetCurrentTimeSec() int64
- func (x *AuctionNotificationBid) GetEndTimeSec() int64
- func (x *AuctionNotificationBid) GetExtensionAddedSec() int64
- func (x *AuctionNotificationBid) GetExtensionRemainingSec() int64
- func (x *AuctionNotificationBid) GetId() string
- func (x *AuctionNotificationBid) GetUpdateTimeSec() int64
- func (x *AuctionNotificationBid) GetVersion() string
- func (*AuctionNotificationBid) ProtoMessage()
- func (x *AuctionNotificationBid) ProtoReflect() protoreflect.Message
- func (x *AuctionNotificationBid) Reset()
- func (x *AuctionNotificationBid) String() string
- type AuctionReward
- type AuctionTemplate
- func (*AuctionTemplate) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionTemplate) GetBidHistoryCount() int32
- func (x *AuctionTemplate) GetConditions() map[string]*AuctionTemplateCondition
- func (x *AuctionTemplate) GetItemSets() []string
- func (x *AuctionTemplate) GetItems() []string
- func (*AuctionTemplate) ProtoMessage()
- func (x *AuctionTemplate) ProtoReflect() protoreflect.Message
- func (x *AuctionTemplate) Reset()
- func (x *AuctionTemplate) String() string
- type AuctionTemplateCondition
- func (*AuctionTemplateCondition) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionTemplateCondition) GetBidIncrement() *AuctionTemplateConditionBidIncrement
- func (x *AuctionTemplateCondition) GetBidStart() *AuctionBidAmount
- func (x *AuctionTemplateCondition) GetDurationSec() int64
- func (x *AuctionTemplateCondition) GetExtensionMaxSec() int64
- func (x *AuctionTemplateCondition) GetExtensionSec() int64
- func (x *AuctionTemplateCondition) GetExtensionThresholdSec() int64
- func (x *AuctionTemplateCondition) GetFee() *AuctionFee
- func (x *AuctionTemplateCondition) GetListingCost() *AuctionTemplateConditionListingCost
- func (*AuctionTemplateCondition) ProtoMessage()
- func (x *AuctionTemplateCondition) ProtoReflect() protoreflect.Message
- func (x *AuctionTemplateCondition) Reset()
- func (x *AuctionTemplateCondition) String() string
- type AuctionTemplateConditionBidIncrement
- func (*AuctionTemplateConditionBidIncrement) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionTemplateConditionBidIncrement) GetFixed() *AuctionBidAmount
- func (x *AuctionTemplateConditionBidIncrement) GetPercentage() float64
- func (*AuctionTemplateConditionBidIncrement) ProtoMessage()
- func (x *AuctionTemplateConditionBidIncrement) ProtoReflect() protoreflect.Message
- func (x *AuctionTemplateConditionBidIncrement) Reset()
- func (x *AuctionTemplateConditionBidIncrement) String() string
- type AuctionTemplateConditionListingCost
- func (*AuctionTemplateConditionListingCost) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionTemplateConditionListingCost) GetCurrencies() map[string]int64
- func (x *AuctionTemplateConditionListingCost) GetEnergies() map[string]int64
- func (x *AuctionTemplateConditionListingCost) GetItems() map[string]int64
- func (*AuctionTemplateConditionListingCost) ProtoMessage()
- func (x *AuctionTemplateConditionListingCost) ProtoReflect() protoreflect.Message
- func (x *AuctionTemplateConditionListingCost) Reset()
- func (x *AuctionTemplateConditionListingCost) String() string
- type AuctionTemplates
- func (*AuctionTemplates) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionTemplates) GetTemplates() map[string]*AuctionTemplate
- func (*AuctionTemplates) ProtoMessage()
- func (x *AuctionTemplates) ProtoReflect() protoreflect.Message
- func (x *AuctionTemplates) Reset()
- func (x *AuctionTemplates) String() string
- type AuctionsConfig
- type AuctionsConfigAuction
- type AuctionsConfigAuctionCondition
- type AuctionsConfigAuctionConditionBid
- type AuctionsConfigAuctionConditionBidIncrement
- type AuctionsConfigAuctionConditionCost
- type AuctionsConfigAuctionConditionFee
- type AuctionsFollowRequest
- func (*AuctionsFollowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionsFollowRequest) GetIds() []string
- func (*AuctionsFollowRequest) ProtoMessage()
- func (x *AuctionsFollowRequest) ProtoReflect() protoreflect.Message
- func (x *AuctionsFollowRequest) Reset()
- func (x *AuctionsFollowRequest) String() string
- type AuctionsSystem
- type AvailableRewards
- func (*AvailableRewards) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableRewards) GetGuaranteed() *AvailableRewardsContents
- func (x *AvailableRewards) GetMaxRepeatRolls() int64
- func (x *AvailableRewards) GetMaxRolls() int64
- func (x *AvailableRewards) GetMessage() string
- func (x *AvailableRewards) GetTeamReward() *AvailableTeamRewards
- func (x *AvailableRewards) GetToMailboxExpirySec() int64
- func (x *AvailableRewards) GetTotalWeight() int64
- func (x *AvailableRewards) GetWeighted() []*AvailableRewardsContents
- func (*AvailableRewards) ProtoMessage()
- func (x *AvailableRewards) ProtoReflect() protoreflect.Message
- func (x *AvailableRewards) Reset()
- func (x *AvailableRewards) String() string
- type AvailableRewardsContents
- func (*AvailableRewardsContents) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableRewardsContents) GetCurrencies() map[string]*AvailableRewardsCurrency
- func (x *AvailableRewardsContents) GetEnergies() map[string]*AvailableRewardsEnergy
- func (x *AvailableRewardsContents) GetEnergyModifiers() []*AvailableRewardsEnergyModifier
- func (x *AvailableRewardsContents) GetItemSets() []*AvailableRewardsItemSet
- func (x *AvailableRewardsContents) GetItems() map[string]*AvailableRewardsItem
- func (x *AvailableRewardsContents) GetRewardModifiers() []*AvailableRewardsRewardModifier
- func (x *AvailableRewardsContents) GetWeight() int64
- func (*AvailableRewardsContents) ProtoMessage()
- func (x *AvailableRewardsContents) ProtoReflect() protoreflect.Message
- func (x *AvailableRewardsContents) Reset()
- func (x *AvailableRewardsContents) String() string
- type AvailableRewardsCurrency
- func (*AvailableRewardsCurrency) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableRewardsCurrency) GetCount() *RewardRangeInt64
- func (*AvailableRewardsCurrency) ProtoMessage()
- func (x *AvailableRewardsCurrency) ProtoReflect() protoreflect.Message
- func (x *AvailableRewardsCurrency) Reset()
- func (x *AvailableRewardsCurrency) String() string
- type AvailableRewardsEnergy
- func (*AvailableRewardsEnergy) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableRewardsEnergy) GetCount() *RewardRangeInt32
- func (*AvailableRewardsEnergy) ProtoMessage()
- func (x *AvailableRewardsEnergy) ProtoReflect() protoreflect.Message
- func (x *AvailableRewardsEnergy) Reset()
- func (x *AvailableRewardsEnergy) String() string
- type AvailableRewardsEnergyModifier
- func (*AvailableRewardsEnergyModifier) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableRewardsEnergyModifier) GetDurationSec() *RewardRangeUInt64
- func (x *AvailableRewardsEnergyModifier) GetId() string
- func (x *AvailableRewardsEnergyModifier) GetOperator() string
- func (x *AvailableRewardsEnergyModifier) GetValue() *RewardRangeInt64
- func (*AvailableRewardsEnergyModifier) ProtoMessage()
- func (x *AvailableRewardsEnergyModifier) ProtoReflect() protoreflect.Message
- func (x *AvailableRewardsEnergyModifier) Reset()
- func (x *AvailableRewardsEnergyModifier) String() string
- type AvailableRewardsItem
- func (*AvailableRewardsItem) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableRewardsItem) GetCount() *RewardRangeInt64
- func (x *AvailableRewardsItem) GetNumericProperties() map[string]*RewardRangeDouble
- func (x *AvailableRewardsItem) GetStringProperties() map[string]*AvailableRewardsStringProperty
- func (*AvailableRewardsItem) ProtoMessage()
- func (x *AvailableRewardsItem) ProtoReflect() protoreflect.Message
- func (x *AvailableRewardsItem) Reset()
- func (x *AvailableRewardsItem) String() string
- type AvailableRewardsItemSet
- func (*AvailableRewardsItemSet) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableRewardsItemSet) GetCount() *RewardRangeInt64
- func (x *AvailableRewardsItemSet) GetMaxRepeats() int64
- func (x *AvailableRewardsItemSet) GetSet() []string
- func (*AvailableRewardsItemSet) ProtoMessage()
- func (x *AvailableRewardsItemSet) ProtoReflect() protoreflect.Message
- func (x *AvailableRewardsItemSet) Reset()
- func (x *AvailableRewardsItemSet) String() string
- type AvailableRewardsRewardModifier
- func (*AvailableRewardsRewardModifier) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableRewardsRewardModifier) GetDurationSec() *RewardRangeUInt64
- func (x *AvailableRewardsRewardModifier) GetId() string
- func (x *AvailableRewardsRewardModifier) GetOperator() string
- func (x *AvailableRewardsRewardModifier) GetType() string
- func (x *AvailableRewardsRewardModifier) GetValue() *RewardRangeInt64
- func (*AvailableRewardsRewardModifier) ProtoMessage()
- func (x *AvailableRewardsRewardModifier) ProtoReflect() protoreflect.Message
- func (x *AvailableRewardsRewardModifier) Reset()
- func (x *AvailableRewardsRewardModifier) String() string
- type AvailableRewardsStringProperty
- func (*AvailableRewardsStringProperty) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableRewardsStringProperty) GetOptions() map[string]*AvailableRewardsStringPropertyOption
- func (x *AvailableRewardsStringProperty) GetTotalWeight() int64
- func (*AvailableRewardsStringProperty) ProtoMessage()
- func (x *AvailableRewardsStringProperty) ProtoReflect() protoreflect.Message
- func (x *AvailableRewardsStringProperty) Reset()
- func (x *AvailableRewardsStringProperty) String() string
- type AvailableRewardsStringPropertyOption
- func (*AvailableRewardsStringPropertyOption) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableRewardsStringPropertyOption) GetWeight() int64
- func (*AvailableRewardsStringPropertyOption) ProtoMessage()
- func (x *AvailableRewardsStringPropertyOption) ProtoReflect() protoreflect.Message
- func (x *AvailableRewardsStringPropertyOption) Reset()
- func (x *AvailableRewardsStringPropertyOption) String() string
- type AvailableTeamMemberRewards
- func (*AvailableTeamMemberRewards) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableTeamMemberRewards) GetGuaranteed() *AvailableRewardsContents
- func (x *AvailableTeamMemberRewards) GetMaxRepeatRolls() int64
- func (x *AvailableTeamMemberRewards) GetMaxRolls() int64
- func (x *AvailableTeamMemberRewards) GetTotalWeight() int64
- func (x *AvailableTeamMemberRewards) GetWeighted() []*AvailableRewardsContents
- func (*AvailableTeamMemberRewards) ProtoMessage()
- func (x *AvailableTeamMemberRewards) ProtoReflect() protoreflect.Message
- func (x *AvailableTeamMemberRewards) Reset()
- func (x *AvailableTeamMemberRewards) String() string
- type AvailableTeamRewards
- func (*AvailableTeamRewards) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableTeamRewards) GetGuaranteed() *AvailableTeamRewardsContents
- func (x *AvailableTeamRewards) GetMaxRepeatRolls() int64
- func (x *AvailableTeamRewards) GetMaxRolls() int64
- func (x *AvailableTeamRewards) GetMemberReward() *AvailableTeamMemberRewards
- func (x *AvailableTeamRewards) GetToMailboxExpirySec() int64
- func (x *AvailableTeamRewards) GetTotalWeight() int64
- func (x *AvailableTeamRewards) GetWeighted() []*AvailableTeamRewardsContents
- func (*AvailableTeamRewards) ProtoMessage()
- func (x *AvailableTeamRewards) ProtoReflect() protoreflect.Message
- func (x *AvailableTeamRewards) Reset()
- func (x *AvailableTeamRewards) String() string
- type AvailableTeamRewardsContents
- func (*AvailableTeamRewardsContents) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableTeamRewardsContents) GetCurrencies() map[string]*AvailableRewardsCurrency
- func (x *AvailableTeamRewardsContents) GetItemSets() []*AvailableRewardsItemSet
- func (x *AvailableTeamRewardsContents) GetItems() map[string]*AvailableRewardsItem
- func (x *AvailableTeamRewardsContents) GetRewardModifiers() []*AvailableRewardsRewardModifier
- func (x *AvailableTeamRewardsContents) GetWeight() int64
- func (*AvailableTeamRewardsContents) ProtoMessage()
- func (x *AvailableTeamRewardsContents) ProtoReflect() protoreflect.Message
- func (x *AvailableTeamRewardsContents) Reset()
- func (x *AvailableTeamRewardsContents) String() string
- type BaseSystem
- type BaseSystemConfig
- type BaseSystemOption
- func WithBaseSystemProfanityFilter(fn ProfanityFilterFn) BaseSystemOption
- func WithBaseSystemProfanityFilterChat(threshold float64) BaseSystemOption
- func WithBaseSystemProfanityFilterTeamName(threshold float64) BaseSystemOption
- func WithBaseSystemProfanityFilterUsername(threshold float64) BaseSystemOption
- func WithBaseSystemUsernameOverride(fn UsernameOverrideFn) BaseSystemOption
- type Challenge
- func (*Challenge) Descriptor() ([]byte, []int)deprecated
- func (x *Challenge) GetAdditionalProperties() map[string]string
- func (x *Challenge) GetAscending() bool
- func (x *Challenge) GetAvailableRewards() *AvailableRewards
- func (x *Challenge) GetCanClaim() bool
- func (x *Challenge) GetCategory() string
- func (x *Challenge) GetClaimTimeSec() int64
- func (x *Challenge) GetCurrentTimeSec() int64
- func (x *Challenge) GetDescription() string
- func (x *Challenge) GetEndTimeSec() int64
- func (x *Challenge) GetId() string
- func (x *Challenge) GetIsActive() bool
- func (x *Challenge) GetMaxNumScore() int64
- func (x *Challenge) GetMaxSize() int64
- func (x *Challenge) GetMetadata() map[string]string
- func (x *Challenge) GetName() string
- func (x *Challenge) GetOpen() bool
- func (x *Challenge) GetOperator() string
- func (x *Challenge) GetOwnerId() string
- func (x *Challenge) GetReward() *Reward
- func (x *Challenge) GetRewardTiers() []*ChallengeRewardTier
- func (x *Challenge) GetScores() []*ChallengeScore
- func (x *Challenge) GetSize() int64
- func (x *Challenge) GetStartTimeSec() int64
- func (x *Challenge) GetState() ChallengeState
- func (*Challenge) ProtoMessage()
- func (x *Challenge) ProtoReflect() protoreflect.Message
- func (x *Challenge) Reset()
- func (x *Challenge) String() string
- type ChallengeClaimRequest
- func (*ChallengeClaimRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeClaimRequest) GetChallengeId() string
- func (*ChallengeClaimRequest) ProtoMessage()
- func (x *ChallengeClaimRequest) ProtoReflect() protoreflect.Message
- func (x *ChallengeClaimRequest) Reset()
- func (x *ChallengeClaimRequest) String() string
- type ChallengeCreateRequest
- func (*ChallengeCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeCreateRequest) GetCategory() string
- func (x *ChallengeCreateRequest) GetDescription() string
- func (x *ChallengeCreateRequest) GetDurationSec() int64
- func (x *ChallengeCreateRequest) GetInvitees() []string
- func (x *ChallengeCreateRequest) GetMaxParticipants() int64
- func (x *ChallengeCreateRequest) GetMaxScores() int64
- func (x *ChallengeCreateRequest) GetMetadata() map[string]string
- func (x *ChallengeCreateRequest) GetName() string
- func (x *ChallengeCreateRequest) GetOpen() bool
- func (x *ChallengeCreateRequest) GetStartDelaySec() int64
- func (x *ChallengeCreateRequest) GetTemplateId() string
- func (*ChallengeCreateRequest) ProtoMessage()
- func (x *ChallengeCreateRequest) ProtoReflect() protoreflect.Message
- func (x *ChallengeCreateRequest) Reset()
- func (x *ChallengeCreateRequest) String() string
- type ChallengeGetRequest
- func (*ChallengeGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeGetRequest) GetChallengeId() string
- func (x *ChallengeGetRequest) GetWithScores() bool
- func (*ChallengeGetRequest) ProtoMessage()
- func (x *ChallengeGetRequest) ProtoReflect() protoreflect.Message
- func (x *ChallengeGetRequest) Reset()
- func (x *ChallengeGetRequest) String() string
- type ChallengeInviteRequest
- func (*ChallengeInviteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeInviteRequest) GetChallengeId() string
- func (x *ChallengeInviteRequest) GetInvitees() []string
- func (*ChallengeInviteRequest) ProtoMessage()
- func (x *ChallengeInviteRequest) ProtoReflect() protoreflect.Message
- func (x *ChallengeInviteRequest) Reset()
- func (x *ChallengeInviteRequest) String() string
- type ChallengeJoinRequest
- func (*ChallengeJoinRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeJoinRequest) GetChallengeId() string
- func (*ChallengeJoinRequest) ProtoMessage()
- func (x *ChallengeJoinRequest) ProtoReflect() protoreflect.Message
- func (x *ChallengeJoinRequest) Reset()
- func (x *ChallengeJoinRequest) String() string
- type ChallengeLeaveRequest
- func (*ChallengeLeaveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeLeaveRequest) GetChallengeId() string
- func (*ChallengeLeaveRequest) ProtoMessage()
- func (x *ChallengeLeaveRequest) ProtoReflect() protoreflect.Message
- func (x *ChallengeLeaveRequest) Reset()
- func (x *ChallengeLeaveRequest) String() string
- type ChallengeListRequest
- func (*ChallengeListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeListRequest) GetCategories() []string
- func (x *ChallengeListRequest) GetWithScores() bool
- func (*ChallengeListRequest) ProtoMessage()
- func (x *ChallengeListRequest) ProtoReflect() protoreflect.Message
- func (x *ChallengeListRequest) Reset()
- func (x *ChallengeListRequest) String() string
- type ChallengeMaxMinPlayers
- func (*ChallengeMaxMinPlayers) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeMaxMinPlayers) GetMax() int64
- func (x *ChallengeMaxMinPlayers) GetMin() int64
- func (*ChallengeMaxMinPlayers) ProtoMessage()
- func (x *ChallengeMaxMinPlayers) ProtoReflect() protoreflect.Message
- func (x *ChallengeMaxMinPlayers) Reset()
- func (x *ChallengeMaxMinPlayers) String() string
- type ChallengeMinMaxDuration
- func (*ChallengeMinMaxDuration) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeMinMaxDuration) GetMaxSec() int64
- func (x *ChallengeMinMaxDuration) GetMinSec() int64
- func (*ChallengeMinMaxDuration) ProtoMessage()
- func (x *ChallengeMinMaxDuration) ProtoReflect() protoreflect.Message
- func (x *ChallengeMinMaxDuration) Reset()
- func (x *ChallengeMinMaxDuration) String() string
- type ChallengeRewardTier
- func (*ChallengeRewardTier) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeRewardTier) GetAvailableRewards() *AvailableRewards
- func (x *ChallengeRewardTier) GetRankMax() int64
- func (x *ChallengeRewardTier) GetRankMin() int64
- func (*ChallengeRewardTier) ProtoMessage()
- func (x *ChallengeRewardTier) ProtoReflect() protoreflect.Message
- func (x *ChallengeRewardTier) Reset()
- func (x *ChallengeRewardTier) String() string
- type ChallengeScore
- func (*ChallengeScore) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeScore) GetAvatarUrl() string
- func (x *ChallengeScore) GetCreateTimeSec() int64
- func (x *ChallengeScore) GetDisplayName() string
- func (x *ChallengeScore) GetId() string
- func (x *ChallengeScore) GetMetadata() string
- func (x *ChallengeScore) GetNumScores() int64
- func (x *ChallengeScore) GetRank() int64
- func (x *ChallengeScore) GetScore() int64
- func (x *ChallengeScore) GetState() ChallengeState
- func (x *ChallengeScore) GetSubscore() int64
- func (x *ChallengeScore) GetUpdateTimeSec() int64
- func (x *ChallengeScore) GetUsername() string
- func (*ChallengeScore) ProtoMessage()
- func (x *ChallengeScore) ProtoReflect() protoreflect.Message
- func (x *ChallengeScore) Reset()
- func (x *ChallengeScore) String() string
- type ChallengeSearchRequest
- func (*ChallengeSearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeSearchRequest) GetCategory() string
- func (x *ChallengeSearchRequest) GetLimit() int64
- func (x *ChallengeSearchRequest) GetName() string
- func (*ChallengeSearchRequest) ProtoMessage()
- func (x *ChallengeSearchRequest) ProtoReflect() protoreflect.Message
- func (x *ChallengeSearchRequest) Reset()
- func (x *ChallengeSearchRequest) String() string
- type ChallengeState
- func (ChallengeState) Descriptor() protoreflect.EnumDescriptor
- func (x ChallengeState) Enum() *ChallengeState
- func (ChallengeState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChallengeState) Number() protoreflect.EnumNumber
- func (x ChallengeState) String() string
- func (ChallengeState) Type() protoreflect.EnumType
- type ChallengeSubmitScoreRequest
- func (*ChallengeSubmitScoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeSubmitScoreRequest) GetChallengeId() string
- func (x *ChallengeSubmitScoreRequest) GetConditionalMetadataUpdate() bool
- func (x *ChallengeSubmitScoreRequest) GetMetadata() string
- func (x *ChallengeSubmitScoreRequest) GetScore() int64
- func (x *ChallengeSubmitScoreRequest) GetSubscore() int64
- func (*ChallengeSubmitScoreRequest) ProtoMessage()
- func (x *ChallengeSubmitScoreRequest) ProtoReflect() protoreflect.Message
- func (x *ChallengeSubmitScoreRequest) Reset()
- func (x *ChallengeSubmitScoreRequest) String() string
- type ChallengeTemplate
- func (*ChallengeTemplate) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeTemplate) GetAdditionalProperties() map[string]string
- func (x *ChallengeTemplate) GetAscending() bool
- func (x *ChallengeTemplate) GetDuration() *ChallengeMinMaxDuration
- func (x *ChallengeTemplate) GetMaxNumScore() int64
- func (x *ChallengeTemplate) GetOperator() string
- func (x *ChallengeTemplate) GetPlayers() *ChallengeMaxMinPlayers
- func (x *ChallengeTemplate) GetRewardTiers() []*ChallengeRewardTier
- func (x *ChallengeTemplate) GetStartDelayMax() int64
- func (*ChallengeTemplate) ProtoMessage()
- func (x *ChallengeTemplate) ProtoReflect() protoreflect.Message
- func (x *ChallengeTemplate) Reset()
- func (x *ChallengeTemplate) String() string
- type ChallengeTemplates
- func (*ChallengeTemplates) Descriptor() ([]byte, []int)deprecated
- func (x *ChallengeTemplates) GetTemplates() map[string]*ChallengeTemplate
- func (*ChallengeTemplates) ProtoMessage()
- func (x *ChallengeTemplates) ProtoReflect() protoreflect.Message
- func (x *ChallengeTemplates) Reset()
- func (x *ChallengeTemplates) String() string
- type ChallengesConfig
- type ChallengesConfigChallenge
- type ChallengesConfigChallengeRewardTier
- type ChallengesConfigDuration
- type ChallengesConfigPlayers
- type ChallengesList
- type ChallengesSystem
- type ChannelMessageAck
- func (*ChannelMessageAck) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelMessageAck) GetChannelId() string
- func (x *ChannelMessageAck) GetCode() int32
- func (x *ChannelMessageAck) GetCreateTime() int64
- func (x *ChannelMessageAck) GetGroupId() string
- func (x *ChannelMessageAck) GetMessageId() string
- func (x *ChannelMessageAck) GetPersistent() bool
- func (x *ChannelMessageAck) GetRoomName() string
- func (x *ChannelMessageAck) GetUpdateTime() int64
- func (x *ChannelMessageAck) GetUserIdOne() string
- func (x *ChannelMessageAck) GetUserIdTwo() string
- func (x *ChannelMessageAck) GetUsername() string
- func (*ChannelMessageAck) ProtoMessage()
- func (x *ChannelMessageAck) ProtoReflect() protoreflect.Message
- func (x *ChannelMessageAck) Reset()
- func (x *ChannelMessageAck) String() string
- type CollectionResolverFn
- type ConfigSource
- type DevicePrefsRequest
- func (*DevicePrefsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DevicePrefsRequest) GetDeviceId() string
- func (x *DevicePrefsRequest) GetPreferences() map[string]bool
- func (x *DevicePrefsRequest) GetPushTokenAndroid() string
- func (x *DevicePrefsRequest) GetPushTokenIos() string
- func (*DevicePrefsRequest) ProtoMessage()
- func (x *DevicePrefsRequest) ProtoReflect() protoreflect.Message
- func (x *DevicePrefsRequest) Reset()
- func (x *DevicePrefsRequest) String() string
- type EconomyConfig
- type EconomyConfigDonation
- type EconomyConfigDonationCost
- type EconomyConfigInitializeUser
- type EconomyConfigPlacement
- type EconomyConfigReward
- type EconomyConfigRewardContents
- type EconomyConfigRewardCurrency
- type EconomyConfigRewardEnergy
- type EconomyConfigRewardEnergyModifier
- type EconomyConfigRewardItem
- type EconomyConfigRewardItemSet
- type EconomyConfigRewardRangeFloat64
- type EconomyConfigRewardRangeInt32
- type EconomyConfigRewardRangeInt64
- type EconomyConfigRewardRangeUInt64
- type EconomyConfigRewardRewardModifier
- type EconomyConfigRewardStringProperty
- type EconomyConfigRewardStringPropertyOption
- type EconomyConfigStoreItem
- type EconomyConfigStoreItemCost
- type EconomyConfigTeamMemberReward
- type EconomyConfigTeamReward
- type EconomyConfigTeamRewardContents
- type EconomyDonation
- func (*EconomyDonation) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyDonation) GetAdditionalProperties() map[string]string
- func (x *EconomyDonation) GetClaimCount() int64
- func (x *EconomyDonation) GetContributorAvailableRewards() *AvailableRewards
- func (x *EconomyDonation) GetContributors() []*EconomyDonationContributor
- func (x *EconomyDonation) GetCount() int64
- func (x *EconomyDonation) GetCurrentTimeSec() int64
- func (x *EconomyDonation) GetDescription() string
- func (x *EconomyDonation) GetExpireTimeSec() int64
- func (x *EconomyDonation) GetId() string
- func (x *EconomyDonation) GetMaxCount() int64
- func (x *EconomyDonation) GetName() string
- func (x *EconomyDonation) GetRecipientAvailableRewards() *AvailableRewards
- func (x *EconomyDonation) GetRecipientRewards() []*Reward
- func (x *EconomyDonation) GetUserContributionMaxCount() int64
- func (x *EconomyDonation) GetUserId() string
- func (*EconomyDonation) ProtoMessage()
- func (x *EconomyDonation) ProtoReflect() protoreflect.Message
- func (x *EconomyDonation) Reset()
- func (x *EconomyDonation) String() string
- type EconomyDonationAck
- func (*EconomyDonationAck) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyDonationAck) GetCreated() bool
- func (x *EconomyDonationAck) GetDonation() *EconomyDonation
- func (*EconomyDonationAck) ProtoMessage()
- func (x *EconomyDonationAck) ProtoReflect() protoreflect.Message
- func (x *EconomyDonationAck) Reset()
- func (x *EconomyDonationAck) String() string
- type EconomyDonationClaimRequest
- func (*EconomyDonationClaimRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyDonationClaimRequest) GetDonationIds() []string
- func (x *EconomyDonationClaimRequest) GetDonations() map[string]*EconomyDonationClaimRequestDetails
- func (*EconomyDonationClaimRequest) ProtoMessage()
- func (x *EconomyDonationClaimRequest) ProtoReflect() protoreflect.Message
- func (x *EconomyDonationClaimRequest) Reset()
- func (x *EconomyDonationClaimRequest) String() string
- type EconomyDonationClaimRequestDetails
- func (*EconomyDonationClaimRequestDetails) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyDonationClaimRequestDetails) GetDonors() map[string]int64
- func (*EconomyDonationClaimRequestDetails) ProtoMessage()
- func (x *EconomyDonationClaimRequestDetails) ProtoReflect() protoreflect.Message
- func (x *EconomyDonationClaimRequestDetails) Reset()
- func (x *EconomyDonationClaimRequestDetails) String() string
- type EconomyDonationClaimRewards
- func (*EconomyDonationClaimRewards) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyDonationClaimRewards) GetClaimedRewards() map[string]*RewardList
- func (x *EconomyDonationClaimRewards) GetDonations() *EconomyDonationsList
- func (*EconomyDonationClaimRewards) ProtoMessage()
- func (x *EconomyDonationClaimRewards) ProtoReflect() protoreflect.Message
- func (x *EconomyDonationClaimRewards) Reset()
- func (x *EconomyDonationClaimRewards) String() string
- type EconomyDonationContributor
- func (*EconomyDonationContributor) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyDonationContributor) GetClaimCount() int64
- func (x *EconomyDonationContributor) GetCount() int64
- func (x *EconomyDonationContributor) GetUserId() string
- func (*EconomyDonationContributor) ProtoMessage()
- func (x *EconomyDonationContributor) ProtoReflect() protoreflect.Message
- func (x *EconomyDonationContributor) Reset()
- func (x *EconomyDonationContributor) String() string
- type EconomyDonationGetRequest
- func (*EconomyDonationGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyDonationGetRequest) GetIds() []string
- func (*EconomyDonationGetRequest) ProtoMessage()
- func (x *EconomyDonationGetRequest) ProtoReflect() protoreflect.Message
- func (x *EconomyDonationGetRequest) Reset()
- func (x *EconomyDonationGetRequest) String() string
- type EconomyDonationGiveRequest
- func (*EconomyDonationGiveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyDonationGiveRequest) GetDonationId() string
- func (x *EconomyDonationGiveRequest) GetUserId() string
- func (*EconomyDonationGiveRequest) ProtoMessage()
- func (x *EconomyDonationGiveRequest) ProtoReflect() protoreflect.Message
- func (x *EconomyDonationGiveRequest) Reset()
- func (x *EconomyDonationGiveRequest) String() string
- type EconomyDonationRequest
- func (*EconomyDonationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyDonationRequest) GetDonationId() string
- func (*EconomyDonationRequest) ProtoMessage()
- func (x *EconomyDonationRequest) ProtoReflect() protoreflect.Message
- func (x *EconomyDonationRequest) Reset()
- func (x *EconomyDonationRequest) String() string
- type EconomyDonationsByUserList
- func (*EconomyDonationsByUserList) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyDonationsByUserList) GetUserDonations() map[string]*EconomyDonationsList
- func (*EconomyDonationsByUserList) ProtoMessage()
- func (x *EconomyDonationsByUserList) ProtoReflect() protoreflect.Message
- func (x *EconomyDonationsByUserList) Reset()
- func (x *EconomyDonationsByUserList) String() string
- type EconomyDonationsList
- func (*EconomyDonationsList) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyDonationsList) GetDonations() []*EconomyDonation
- func (*EconomyDonationsList) ProtoMessage()
- func (x *EconomyDonationsList) ProtoReflect() protoreflect.Message
- func (x *EconomyDonationsList) Reset()
- func (x *EconomyDonationsList) String() string
- type EconomyGrantRequest
- func (*EconomyGrantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyGrantRequest) GetCurrencies() map[string]int64
- func (x *EconomyGrantRequest) GetItems() map[string]int64
- func (x *EconomyGrantRequest) GetRewardModifiers() []*RewardModifier
- func (*EconomyGrantRequest) ProtoMessage()
- func (x *EconomyGrantRequest) ProtoReflect() protoreflect.Message
- func (x *EconomyGrantRequest) Reset()
- func (x *EconomyGrantRequest) String() string
- type EconomyList
- func (*EconomyList) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyList) GetActiveRewardModifiers() []*ActiveRewardModifier
- func (x *EconomyList) GetCurrentTimeSec() int64
- func (x *EconomyList) GetDonations() map[string]*EconomyDonation
- func (x *EconomyList) GetPlacements() []*EconomyListPlacement
- func (x *EconomyList) GetStoreItems() []*EconomyListStoreItem
- func (*EconomyList) ProtoMessage()
- func (x *EconomyList) ProtoReflect() protoreflect.Message
- func (x *EconomyList) Reset()
- func (x *EconomyList) String() string
- type EconomyListPlacement
- func (*EconomyListPlacement) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyListPlacement) GetAdditionalProperties() map[string]string
- func (x *EconomyListPlacement) GetAvailableRewards() *AvailableRewards
- func (x *EconomyListPlacement) GetId() string
- func (x *EconomyListPlacement) GetReward() *Reward
- func (*EconomyListPlacement) ProtoMessage()
- func (x *EconomyListPlacement) ProtoReflect() protoreflect.Message
- func (x *EconomyListPlacement) Reset()
- func (x *EconomyListPlacement) String() string
- type EconomyListRequest
- func (*EconomyListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyListRequest) GetStoreType() EconomyStoreType
- func (*EconomyListRequest) ProtoMessage()
- func (x *EconomyListRequest) ProtoReflect() protoreflect.Message
- func (x *EconomyListRequest) Reset()
- func (x *EconomyListRequest) String() string
- type EconomyListStoreItem
- func (*EconomyListStoreItem) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyListStoreItem) GetAdditionalProperties() map[string]string
- func (x *EconomyListStoreItem) GetAvailableRewards() *AvailableRewards
- func (x *EconomyListStoreItem) GetCategory() string
- func (x *EconomyListStoreItem) GetCost() *EconomyListStoreItemCost
- func (x *EconomyListStoreItem) GetDescription() string
- func (x *EconomyListStoreItem) GetId() string
- func (x *EconomyListStoreItem) GetName() string
- func (x *EconomyListStoreItem) GetUnavailable() bool
- func (*EconomyListStoreItem) ProtoMessage()
- func (x *EconomyListStoreItem) ProtoReflect() protoreflect.Message
- func (x *EconomyListStoreItem) Reset()
- func (x *EconomyListStoreItem) String() string
- type EconomyListStoreItemCost
- func (*EconomyListStoreItemCost) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyListStoreItemCost) GetCurrencies() map[string]int64
- func (x *EconomyListStoreItemCost) GetSku() string
- func (*EconomyListStoreItemCost) ProtoMessage()
- func (x *EconomyListStoreItemCost) ProtoReflect() protoreflect.Message
- func (x *EconomyListStoreItemCost) Reset()
- func (x *EconomyListStoreItemCost) String() string
- type EconomyPlacementInfo
- type EconomyPlacementStartRequest
- func (*EconomyPlacementStartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyPlacementStartRequest) GetMetadata() map[string]string
- func (x *EconomyPlacementStartRequest) GetPlacementId() string
- func (*EconomyPlacementStartRequest) ProtoMessage()
- func (x *EconomyPlacementStartRequest) ProtoReflect() protoreflect.Message
- func (x *EconomyPlacementStartRequest) Reset()
- func (x *EconomyPlacementStartRequest) String() string
- type EconomyPlacementStatus
- func (*EconomyPlacementStatus) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyPlacementStatus) GetCompleteTimeSec() int64
- func (x *EconomyPlacementStatus) GetCreateTimeSec() int64
- func (x *EconomyPlacementStatus) GetMetadata() map[string]string
- func (x *EconomyPlacementStatus) GetPlacementId() string
- func (x *EconomyPlacementStatus) GetReward() *Reward
- func (x *EconomyPlacementStatus) GetRewardId() string
- func (x *EconomyPlacementStatus) GetSuccess() bool
- func (*EconomyPlacementStatus) ProtoMessage()
- func (x *EconomyPlacementStatus) ProtoReflect() protoreflect.Message
- func (x *EconomyPlacementStatus) Reset()
- func (x *EconomyPlacementStatus) String() string
- type EconomyPlacementStatusRequest
- func (*EconomyPlacementStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyPlacementStatusRequest) GetCount() int32
- func (x *EconomyPlacementStatusRequest) GetPlacementId() string
- func (x *EconomyPlacementStatusRequest) GetRewardId() string
- func (*EconomyPlacementStatusRequest) ProtoMessage()
- func (x *EconomyPlacementStatusRequest) ProtoReflect() protoreflect.Message
- func (x *EconomyPlacementStatusRequest) Reset()
- func (x *EconomyPlacementStatusRequest) String() string
- type EconomyPurchaseAck
- func (*EconomyPurchaseAck) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyPurchaseAck) GetInventory() *Inventory
- func (x *EconomyPurchaseAck) GetIsSandboxPurchase() bool
- func (x *EconomyPurchaseAck) GetReward() *Reward
- func (x *EconomyPurchaseAck) GetWallet() map[string]int64
- func (*EconomyPurchaseAck) ProtoMessage()
- func (x *EconomyPurchaseAck) ProtoReflect() protoreflect.Message
- func (x *EconomyPurchaseAck) Reset()
- func (x *EconomyPurchaseAck) String() string
- type EconomyPurchaseIntentRequest
- func (*EconomyPurchaseIntentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyPurchaseIntentRequest) GetAmount() float64
- func (x *EconomyPurchaseIntentRequest) GetCurrency() string
- func (x *EconomyPurchaseIntentRequest) GetItemId() string
- func (x *EconomyPurchaseIntentRequest) GetSku() string
- func (x *EconomyPurchaseIntentRequest) GetStoreType() EconomyStoreType
- func (*EconomyPurchaseIntentRequest) ProtoMessage()
- func (x *EconomyPurchaseIntentRequest) ProtoReflect() protoreflect.Message
- func (x *EconomyPurchaseIntentRequest) Reset()
- func (x *EconomyPurchaseIntentRequest) String() string
- type EconomyPurchaseRequest
- func (*EconomyPurchaseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyPurchaseRequest) GetItemId() string
- func (x *EconomyPurchaseRequest) GetReceipt() string
- func (x *EconomyPurchaseRequest) GetStoreType() EconomyStoreType
- func (*EconomyPurchaseRequest) ProtoMessage()
- func (x *EconomyPurchaseRequest) ProtoReflect() protoreflect.Message
- func (x *EconomyPurchaseRequest) Reset()
- func (x *EconomyPurchaseRequest) String() string
- type EconomyPurchaseRestoreRequest
- func (*EconomyPurchaseRestoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyPurchaseRestoreRequest) GetReceipts() []string
- func (x *EconomyPurchaseRestoreRequest) GetStoreType() EconomyStoreType
- func (*EconomyPurchaseRestoreRequest) ProtoMessage()
- func (x *EconomyPurchaseRestoreRequest) ProtoReflect() protoreflect.Message
- func (x *EconomyPurchaseRestoreRequest) Reset()
- func (x *EconomyPurchaseRestoreRequest) String() string
- type EconomyStoreType
- func (EconomyStoreType) Descriptor() protoreflect.EnumDescriptor
- func (x EconomyStoreType) Enum() *EconomyStoreType
- func (EconomyStoreType) EnumDescriptor() ([]byte, []int)deprecated
- func (x EconomyStoreType) Number() protoreflect.EnumNumber
- func (x EconomyStoreType) String() string
- func (EconomyStoreType) Type() protoreflect.EnumType
- type EconomySystem
- type EconomyUpdateAck
- func (*EconomyUpdateAck) Descriptor() ([]byte, []int)deprecated
- func (x *EconomyUpdateAck) GetActiveRewardModifiers() []*ActiveRewardModifier
- func (x *EconomyUpdateAck) GetCurrentTimeSec() int64
- func (x *EconomyUpdateAck) GetInventory() *Inventory
- func (x *EconomyUpdateAck) GetReward() *Reward
- func (x *EconomyUpdateAck) GetWallet() map[string]int64
- func (*EconomyUpdateAck) ProtoMessage()
- func (x *EconomyUpdateAck) ProtoReflect() protoreflect.Message
- func (x *EconomyUpdateAck) Reset()
- func (x *EconomyUpdateAck) String() string
- type Energy
- func (*Energy) Descriptor() ([]byte, []int)deprecated
- func (x *Energy) GetAdditionalProperties() map[string]string
- func (x *Energy) GetAvailableRewards() *AvailableRewards
- func (x *Energy) GetCurrent() int32
- func (x *Energy) GetCurrentTimeSec() int64
- func (x *Energy) GetId() string
- func (x *Energy) GetMax() int32
- func (x *Energy) GetMaxRefillTimeSec() int64
- func (x *Energy) GetModifiers() []*EnergyModifier
- func (x *Energy) GetNextRefillTimeSec() int64
- func (x *Energy) GetRefill() int32
- func (x *Energy) GetRefillSec() int64
- func (x *Energy) GetStartRefillTimeSec() int64
- func (*Energy) ProtoMessage()
- func (x *Energy) ProtoReflect() protoreflect.Message
- func (x *Energy) Reset()
- func (x *Energy) String() string
- type EnergyConfig
- type EnergyConfigEnergy
- type EnergyGrantRequest
- func (*EnergyGrantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnergyGrantRequest) GetAmounts() map[string]int32
- func (*EnergyGrantRequest) ProtoMessage()
- func (x *EnergyGrantRequest) ProtoReflect() protoreflect.Message
- func (x *EnergyGrantRequest) Reset()
- func (x *EnergyGrantRequest) String() string
- type EnergyList
- type EnergyModifier
- func (*EnergyModifier) Descriptor() ([]byte, []int)deprecated
- func (x *EnergyModifier) GetEndTimeSec() int64
- func (x *EnergyModifier) GetOperator() string
- func (x *EnergyModifier) GetStartTimeSec() int64
- func (x *EnergyModifier) GetValue() int32
- func (*EnergyModifier) ProtoMessage()
- func (x *EnergyModifier) ProtoReflect() protoreflect.Message
- func (x *EnergyModifier) Reset()
- func (x *EnergyModifier) String() string
- type EnergySpendRequest
- func (*EnergySpendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnergySpendRequest) GetAmounts() map[string]int32
- func (*EnergySpendRequest) ProtoMessage()
- func (x *EnergySpendRequest) ProtoReflect() protoreflect.Message
- func (x *EnergySpendRequest) Reset()
- func (x *EnergySpendRequest) String() string
- type EnergySpendReward
- func (*EnergySpendReward) Descriptor() ([]byte, []int)deprecated
- func (x *EnergySpendReward) GetEnergies() *EnergyList
- func (x *EnergySpendReward) GetReward() *Reward
- func (*EnergySpendReward) ProtoMessage()
- func (x *EnergySpendReward) ProtoReflect() protoreflect.Message
- func (x *EnergySpendReward) Reset()
- func (x *EnergySpendReward) String() string
- type EnergySpendWithRefillStartTimeRequest
- func (*EnergySpendWithRefillStartTimeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnergySpendWithRefillStartTimeRequest) GetSpends() map[string]*EnergySpendWithTime
- func (*EnergySpendWithRefillStartTimeRequest) ProtoMessage()
- func (x *EnergySpendWithRefillStartTimeRequest) ProtoReflect() protoreflect.Message
- func (x *EnergySpendWithRefillStartTimeRequest) Reset()
- func (x *EnergySpendWithRefillStartTimeRequest) String() string
- type EnergySpendWithTime
- func (*EnergySpendWithTime) Descriptor() ([]byte, []int)deprecated
- func (x *EnergySpendWithTime) GetAmount() int32
- func (x *EnergySpendWithTime) GetRefillStartTime() int64
- func (*EnergySpendWithTime) ProtoMessage()
- func (x *EnergySpendWithTime) ProtoReflect() protoreflect.Message
- func (x *EnergySpendWithTime) Reset()
- func (x *EnergySpendWithTime) String() string
- type EnergySystem
- type EventLeaderboard
- func (*EventLeaderboard) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboard) GetAdditionalProperties() map[string]string
- func (x *EventLeaderboard) GetAscending() bool
- func (x *EventLeaderboard) GetAvailableRewards() *AvailableRewards
- func (x *EventLeaderboard) GetBackingId() string
- func (x *EventLeaderboard) GetCanClaim() bool
- func (x *EventLeaderboard) GetCanRoll() bool
- func (x *EventLeaderboard) GetCategory() string
- func (x *EventLeaderboard) GetChangeZones() map[int32]*EventLeaderboardChangeZone
- func (x *EventLeaderboard) GetClaimTimeSec() int64
- func (x *EventLeaderboard) GetCohortId() string
- func (x *EventLeaderboard) GetCount() int64
- func (x *EventLeaderboard) GetCurrentTimeSec() int64
- func (x *EventLeaderboard) GetDescription() string
- func (x *EventLeaderboard) GetEndTimeSec() int64
- func (x *EventLeaderboard) GetExpiryTimeSec() int64
- func (x *EventLeaderboard) GetId() string
- func (x *EventLeaderboard) GetIsActive() bool
- func (x *EventLeaderboard) GetMatchmakerProperties() *structpb.Struct
- func (x *EventLeaderboard) GetMaxCount() int64
- func (x *EventLeaderboard) GetMaxNumScore() int64
- func (x *EventLeaderboard) GetName() string
- func (x *EventLeaderboard) GetOperator() string
- func (x *EventLeaderboard) GetReward() *Reward
- func (x *EventLeaderboard) GetRewardTiers() map[int32]*EventLeaderboardRewardTiers
- func (x *EventLeaderboard) GetScores() []*EventLeaderboardScore
- func (x *EventLeaderboard) GetStartTimeSec() int64
- func (x *EventLeaderboard) GetTier() int32
- func (*EventLeaderboard) ProtoMessage()
- func (x *EventLeaderboard) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboard) Reset()
- func (x *EventLeaderboard) String() string
- type EventLeaderboardChangeZone
- func (*EventLeaderboardChangeZone) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboardChangeZone) GetDemoteIdle() bool
- func (x *EventLeaderboardChangeZone) GetDemotion() float64
- func (x *EventLeaderboardChangeZone) GetPromotion() float64
- func (x *EventLeaderboardChangeZone) GetUseMaxCohortSize() bool
- func (*EventLeaderboardChangeZone) ProtoMessage()
- func (x *EventLeaderboardChangeZone) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboardChangeZone) Reset()
- func (x *EventLeaderboardChangeZone) String() string
- type EventLeaderboardClaim
- func (*EventLeaderboardClaim) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboardClaim) GetId() string
- func (*EventLeaderboardClaim) ProtoMessage()
- func (x *EventLeaderboardClaim) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboardClaim) Reset()
- func (x *EventLeaderboardClaim) String() string
- type EventLeaderboardCohortConfig
- type EventLeaderboardDebugFillRequest
- func (*EventLeaderboardDebugFillRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboardDebugFillRequest) GetId() string
- func (x *EventLeaderboardDebugFillRequest) GetTargetCount() int32
- func (*EventLeaderboardDebugFillRequest) ProtoMessage()
- func (x *EventLeaderboardDebugFillRequest) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboardDebugFillRequest) Reset()
- func (x *EventLeaderboardDebugFillRequest) String() string
- type EventLeaderboardDebugRandomScoresRequest
- func (*EventLeaderboardDebugRandomScoresRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboardDebugRandomScoresRequest) GetId() string
- func (x *EventLeaderboardDebugRandomScoresRequest) GetMax() int64
- func (x *EventLeaderboardDebugRandomScoresRequest) GetMin() int64
- func (x *EventLeaderboardDebugRandomScoresRequest) GetOperator() *wrapperspb.Int32Value
- func (x *EventLeaderboardDebugRandomScoresRequest) GetSubscoreMax() int64
- func (x *EventLeaderboardDebugRandomScoresRequest) GetSubscoreMin() int64
- func (*EventLeaderboardDebugRandomScoresRequest) ProtoMessage()
- func (x *EventLeaderboardDebugRandomScoresRequest) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboardDebugRandomScoresRequest) Reset()
- func (x *EventLeaderboardDebugRandomScoresRequest) String() string
- type EventLeaderboardGet
- func (*EventLeaderboardGet) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboardGet) GetId() string
- func (*EventLeaderboardGet) ProtoMessage()
- func (x *EventLeaderboardGet) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboardGet) Reset()
- func (x *EventLeaderboardGet) String() string
- type EventLeaderboardList
- func (*EventLeaderboardList) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboardList) GetCategories() []string
- func (x *EventLeaderboardList) GetWithScores() bool
- func (*EventLeaderboardList) ProtoMessage()
- func (x *EventLeaderboardList) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboardList) Reset()
- func (x *EventLeaderboardList) String() string
- type EventLeaderboardRewardTier
- func (*EventLeaderboardRewardTier) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboardRewardTier) GetAvailableRewards() *AvailableRewards
- func (x *EventLeaderboardRewardTier) GetName() string
- func (x *EventLeaderboardRewardTier) GetRankMax() int32
- func (x *EventLeaderboardRewardTier) GetRankMin() int32
- func (x *EventLeaderboardRewardTier) GetTierChange() int32
- func (*EventLeaderboardRewardTier) ProtoMessage()
- func (x *EventLeaderboardRewardTier) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboardRewardTier) Reset()
- func (x *EventLeaderboardRewardTier) String() string
- type EventLeaderboardRewardTiers
- func (*EventLeaderboardRewardTiers) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboardRewardTiers) GetRewardTiers() []*EventLeaderboardRewardTier
- func (*EventLeaderboardRewardTiers) ProtoMessage()
- func (x *EventLeaderboardRewardTiers) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboardRewardTiers) Reset()
- func (x *EventLeaderboardRewardTiers) String() string
- type EventLeaderboardRoll
- func (*EventLeaderboardRoll) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboardRoll) GetClaimReward() bool
- func (x *EventLeaderboardRoll) GetId() string
- func (x *EventLeaderboardRoll) GetMetadata() string
- func (*EventLeaderboardRoll) ProtoMessage()
- func (x *EventLeaderboardRoll) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboardRoll) Reset()
- func (x *EventLeaderboardRoll) String() string
- type EventLeaderboardScore
- func (*EventLeaderboardScore) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboardScore) GetAvatarUrl() string
- func (x *EventLeaderboardScore) GetCreateTimeSec() int64
- func (x *EventLeaderboardScore) GetDisplayName() string
- func (x *EventLeaderboardScore) GetId() string
- func (x *EventLeaderboardScore) GetMetadata() string
- func (x *EventLeaderboardScore) GetNumScores() int64
- func (x *EventLeaderboardScore) GetRank() int64
- func (x *EventLeaderboardScore) GetScore() int64
- func (x *EventLeaderboardScore) GetSubscore() int64
- func (x *EventLeaderboardScore) GetUpdateTimeSec() int64
- func (x *EventLeaderboardScore) GetUsername() string
- func (*EventLeaderboardScore) ProtoMessage()
- func (x *EventLeaderboardScore) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboardScore) Reset()
- func (x *EventLeaderboardScore) String() string
- type EventLeaderboardUpdate
- func (*EventLeaderboardUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboardUpdate) GetConditionalMetadataUpdate() bool
- func (x *EventLeaderboardUpdate) GetId() string
- func (x *EventLeaderboardUpdate) GetMetadata() string
- func (x *EventLeaderboardUpdate) GetScore() int64
- func (x *EventLeaderboardUpdate) GetSubscore() int64
- func (*EventLeaderboardUpdate) ProtoMessage()
- func (x *EventLeaderboardUpdate) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboardUpdate) Reset()
- func (x *EventLeaderboardUpdate) String() string
- type EventLeaderboards
- func (*EventLeaderboards) Descriptor() ([]byte, []int)deprecated
- func (x *EventLeaderboards) GetEventLeaderboards() []*EventLeaderboard
- func (*EventLeaderboards) ProtoMessage()
- func (x *EventLeaderboards) ProtoReflect() protoreflect.Message
- func (x *EventLeaderboards) Reset()
- func (x *EventLeaderboards) String() string
- type EventLeaderboardsConfig
- type EventLeaderboardsConfigChangeZone
- type EventLeaderboardsConfigLeaderboard
- type EventLeaderboardsConfigLeaderboardRewardTier
- type EventLeaderboardsConfigLeaderboardTierOverride
- type EventLeaderboardsSystem
- type Hiro
- type Incentive
- func (*Incentive) Descriptor() ([]byte, []int)deprecated
- func (x *Incentive) GetAdditionalProperties() *structpb.Struct
- func (x *Incentive) GetClaims() map[string]*IncentiveClaim
- func (x *Incentive) GetCode() string
- func (x *Incentive) GetCreateTimeSec() int64
- func (x *Incentive) GetDescription() string
- func (x *Incentive) GetExpiryTimeSec() int64
- func (x *Incentive) GetId() string
- func (x *Incentive) GetMaxClaims() int64
- func (x *Incentive) GetName() string
- func (x *Incentive) GetRecipientRewards() *AvailableRewards
- func (x *Incentive) GetRewards() []*Reward
- func (x *Incentive) GetSenderRewards() *AvailableRewards
- func (x *Incentive) GetType() IncentiveType
- func (x *Incentive) GetUnclaimedRecipients() []string
- func (x *Incentive) GetUpdateTimeSec() int64
- func (*Incentive) ProtoMessage()
- func (x *Incentive) ProtoReflect() protoreflect.Message
- func (x *Incentive) Reset()
- func (x *Incentive) String() string
- type IncentiveClaim
- func (*IncentiveClaim) Descriptor() ([]byte, []int)deprecated
- func (x *IncentiveClaim) GetClaimTimeSec() int64
- func (x *IncentiveClaim) GetReward() *Reward
- func (*IncentiveClaim) ProtoMessage()
- func (x *IncentiveClaim) ProtoReflect() protoreflect.Message
- func (x *IncentiveClaim) Reset()
- func (x *IncentiveClaim) String() string
- type IncentiveInfo
- func (*IncentiveInfo) Descriptor() ([]byte, []int)deprecated
- func (x *IncentiveInfo) GetAvailableRewards() *AvailableRewards
- func (x *IncentiveInfo) GetCanClaim() bool
- func (x *IncentiveInfo) GetClaimTimeSec() int64
- func (x *IncentiveInfo) GetCode() string
- func (x *IncentiveInfo) GetCreateTimeSec() int64
- func (x *IncentiveInfo) GetDescription() string
- func (x *IncentiveInfo) GetExpiryTimeSec() int64
- func (x *IncentiveInfo) GetId() string
- func (x *IncentiveInfo) GetName() string
- func (x *IncentiveInfo) GetReward() *Reward
- func (x *IncentiveInfo) GetSender() string
- func (x *IncentiveInfo) GetType() IncentiveType
- func (x *IncentiveInfo) GetUpdateTimeSec() int64
- func (*IncentiveInfo) ProtoMessage()
- func (x *IncentiveInfo) ProtoReflect() protoreflect.Message
- func (x *IncentiveInfo) Reset()
- func (x *IncentiveInfo) String() string
- type IncentiveList
- type IncentiveRecipientClaimRequest
- func (*IncentiveRecipientClaimRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IncentiveRecipientClaimRequest) GetCode() string
- func (*IncentiveRecipientClaimRequest) ProtoMessage()
- func (x *IncentiveRecipientClaimRequest) ProtoReflect() protoreflect.Message
- func (x *IncentiveRecipientClaimRequest) Reset()
- func (x *IncentiveRecipientClaimRequest) String() string
- type IncentiveRecipientGetRequest
- func (*IncentiveRecipientGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IncentiveRecipientGetRequest) GetCode() string
- func (*IncentiveRecipientGetRequest) ProtoMessage()
- func (x *IncentiveRecipientGetRequest) ProtoReflect() protoreflect.Message
- func (x *IncentiveRecipientGetRequest) Reset()
- func (x *IncentiveRecipientGetRequest) String() string
- type IncentiveSenderClaimRequest
- func (*IncentiveSenderClaimRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IncentiveSenderClaimRequest) GetCode() string
- func (x *IncentiveSenderClaimRequest) GetRecipientIds() []string
- func (*IncentiveSenderClaimRequest) ProtoMessage()
- func (x *IncentiveSenderClaimRequest) ProtoReflect() protoreflect.Message
- func (x *IncentiveSenderClaimRequest) Reset()
- func (x *IncentiveSenderClaimRequest) String() string
- type IncentiveSenderCreateRequest
- func (*IncentiveSenderCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IncentiveSenderCreateRequest) GetId() string
- func (*IncentiveSenderCreateRequest) ProtoMessage()
- func (x *IncentiveSenderCreateRequest) ProtoReflect() protoreflect.Message
- func (x *IncentiveSenderCreateRequest) Reset()
- func (x *IncentiveSenderCreateRequest) String() string
- type IncentiveSenderDeleteRequest
- func (*IncentiveSenderDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IncentiveSenderDeleteRequest) GetCode() string
- func (*IncentiveSenderDeleteRequest) ProtoMessage()
- func (x *IncentiveSenderDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *IncentiveSenderDeleteRequest) Reset()
- func (x *IncentiveSenderDeleteRequest) String() string
- type IncentiveType
- func (IncentiveType) Descriptor() protoreflect.EnumDescriptor
- func (x IncentiveType) Enum() *IncentiveType
- func (IncentiveType) EnumDescriptor() ([]byte, []int)deprecated
- func (x IncentiveType) Number() protoreflect.EnumNumber
- func (x IncentiveType) String() string
- func (IncentiveType) Type() protoreflect.EnumType
- type IncentivesConfig
- type IncentivesConfigIncentive
- type IncentivesSystem
- type Inventory
- type InventoryConfig
- type InventoryConfigItem
- type InventoryConfigLimits
- type InventoryConsumeRequest
- func (*InventoryConsumeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InventoryConsumeRequest) GetInstances() map[string]int64
- func (x *InventoryConsumeRequest) GetItems() map[string]int64
- func (x *InventoryConsumeRequest) GetOverconsume() bool
- func (*InventoryConsumeRequest) ProtoMessage()
- func (x *InventoryConsumeRequest) ProtoReflect() protoreflect.Message
- func (x *InventoryConsumeRequest) Reset()
- func (x *InventoryConsumeRequest) String() string
- type InventoryConsumeRewards
- func (*InventoryConsumeRewards) Descriptor() ([]byte, []int)deprecated
- func (x *InventoryConsumeRewards) GetInstanceRewards() map[string]*RewardList
- func (x *InventoryConsumeRewards) GetInventory() *Inventory
- func (x *InventoryConsumeRewards) GetRewards() map[string]*RewardList
- func (*InventoryConsumeRewards) ProtoMessage()
- func (x *InventoryConsumeRewards) ProtoReflect() protoreflect.Message
- func (x *InventoryConsumeRewards) Reset()
- func (x *InventoryConsumeRewards) String() string
- type InventoryDeleteItemsRequest
- func (*InventoryDeleteItemsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InventoryDeleteItemsRequest) GetInstanceIds() []string
- func (*InventoryDeleteItemsRequest) ProtoMessage()
- func (x *InventoryDeleteItemsRequest) ProtoReflect() protoreflect.Message
- func (x *InventoryDeleteItemsRequest) Reset()
- func (x *InventoryDeleteItemsRequest) String() string
- type InventoryGrantRequest
- func (*InventoryGrantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InventoryGrantRequest) GetItems() map[string]int64
- func (*InventoryGrantRequest) ProtoMessage()
- func (x *InventoryGrantRequest) ProtoReflect() protoreflect.Message
- func (x *InventoryGrantRequest) Reset()
- func (x *InventoryGrantRequest) String() string
- type InventoryItem
- func (*InventoryItem) Descriptor() ([]byte, []int)deprecated
- func (x *InventoryItem) GetCategory() string
- func (x *InventoryItem) GetConsumable() bool
- func (x *InventoryItem) GetConsumeAvailableRewards() *AvailableRewards
- func (x *InventoryItem) GetCount() int64
- func (x *InventoryItem) GetDescription() string
- func (x *InventoryItem) GetId() string
- func (x *InventoryItem) GetInstanceId() string
- func (x *InventoryItem) GetItemSets() []string
- func (x *InventoryItem) GetKeepZero() bool
- func (x *InventoryItem) GetMaxCount() int64
- func (x *InventoryItem) GetName() string
- func (x *InventoryItem) GetNumericProperties() map[string]float64
- func (x *InventoryItem) GetOwnedTimeSec() int64
- func (x *InventoryItem) GetStackable() bool
- func (x *InventoryItem) GetStringProperties() map[string]string
- func (x *InventoryItem) GetUpdateTimeSec() int64
- func (*InventoryItem) ProtoMessage()
- func (x *InventoryItem) ProtoReflect() protoreflect.Message
- func (x *InventoryItem) Reset()
- func (x *InventoryItem) String() string
- type InventoryList
- type InventoryListRequest
- func (*InventoryListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InventoryListRequest) GetItemCategory() string
- func (*InventoryListRequest) ProtoMessage()
- func (x *InventoryListRequest) ProtoReflect() protoreflect.Message
- func (x *InventoryListRequest) Reset()
- func (x *InventoryListRequest) String() string
- type InventorySystem
- type InventoryUpdateAck
- func (*InventoryUpdateAck) Descriptor() ([]byte, []int)deprecated
- func (x *InventoryUpdateAck) GetInventory() *Inventory
- func (*InventoryUpdateAck) ProtoMessage()
- func (x *InventoryUpdateAck) ProtoReflect() protoreflect.Message
- func (x *InventoryUpdateAck) Reset()
- func (x *InventoryUpdateAck) String() string
- type InventoryUpdateItemProperties
- func (*InventoryUpdateItemProperties) Descriptor() ([]byte, []int)deprecated
- func (x *InventoryUpdateItemProperties) GetNumericProperties() map[string]float64
- func (x *InventoryUpdateItemProperties) GetStringProperties() map[string]string
- func (*InventoryUpdateItemProperties) ProtoMessage()
- func (x *InventoryUpdateItemProperties) ProtoReflect() protoreflect.Message
- func (x *InventoryUpdateItemProperties) Reset()
- func (x *InventoryUpdateItemProperties) String() string
- type InventoryUpdateItemsRequest
- func (*InventoryUpdateItemsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InventoryUpdateItemsRequest) GetItemUpdates() map[string]*InventoryUpdateItemProperties
- func (*InventoryUpdateItemsRequest) ProtoMessage()
- func (x *InventoryUpdateItemsRequest) ProtoReflect() protoreflect.Message
- func (x *InventoryUpdateItemsRequest) Reset()
- func (x *InventoryUpdateItemsRequest) String() string
- type LeaderboardConfig
- func (*LeaderboardConfig) Descriptor() ([]byte, []int)deprecated
- func (x *LeaderboardConfig) GetAuthoritative() bool
- func (x *LeaderboardConfig) GetId() string
- func (x *LeaderboardConfig) GetOperator() string
- func (x *LeaderboardConfig) GetRegions() []string
- func (x *LeaderboardConfig) GetResetSchedule() string
- func (x *LeaderboardConfig) GetSortOrder() string
- func (*LeaderboardConfig) ProtoMessage()
- func (x *LeaderboardConfig) ProtoReflect() protoreflect.Message
- func (x *LeaderboardConfig) Reset()
- func (x *LeaderboardConfig) String() string
- type LeaderboardConfigList
- func (*LeaderboardConfigList) Descriptor() ([]byte, []int)deprecated
- func (x *LeaderboardConfigList) GetLeaderboardConfigs() []*LeaderboardConfig
- func (*LeaderboardConfigList) ProtoMessage()
- func (x *LeaderboardConfigList) ProtoReflect() protoreflect.Message
- func (x *LeaderboardConfigList) Reset()
- func (x *LeaderboardConfigList) String() string
- type LeaderboardsConfig
- type LeaderboardsConfigLeaderboard
- type LeaderboardsSystem
- type OnAuctionReward
- type OnEventLeaderboardCohortSelection
- type OnReward
- type OnTeamEventLeaderboardCohortSelection
- type OnTeamReward
- type Personalizer
- type ProfanityFilterFn
- type Progression
- func (*Progression) Descriptor() ([]byte, []int)deprecated
- func (x *Progression) GetAdditionalProperties() map[string]string
- func (x *Progression) GetCategory() string
- func (x *Progression) GetCounts() map[string]int64
- func (x *Progression) GetDescription() string
- func (x *Progression) GetId() string
- func (x *Progression) GetName() string
- func (x *Progression) GetPermanentUnlock() bool
- func (x *Progression) GetPreconditions() *ProgressionPreconditionsBlock
- func (x *Progression) GetUnconditionalUpdates() bool
- func (x *Progression) GetUnlocked() bool
- func (x *Progression) GetUnmetPreconditions() *ProgressionPreconditionsBlock
- func (*Progression) ProtoMessage()
- func (x *Progression) ProtoReflect() protoreflect.Message
- func (x *Progression) Reset()
- func (x *Progression) String() string
- type ProgressionConfig
- type ProgressionConfigProgression
- type ProgressionCost
- func (*ProgressionCost) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressionCost) GetCurrencies() map[string]int64
- func (x *ProgressionCost) GetItems() map[string]int64
- func (*ProgressionCost) ProtoMessage()
- func (x *ProgressionCost) ProtoReflect() protoreflect.Message
- func (x *ProgressionCost) Reset()
- func (x *ProgressionCost) String() string
- type ProgressionDelta
- func (*ProgressionDelta) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressionDelta) GetCounts() map[string]int64
- func (x *ProgressionDelta) GetId() string
- func (x *ProgressionDelta) GetPreconditions() *ProgressionPreconditionsBlock
- func (x *ProgressionDelta) GetState() ProgressionDeltaState
- func (*ProgressionDelta) ProtoMessage()
- func (x *ProgressionDelta) ProtoReflect() protoreflect.Message
- func (x *ProgressionDelta) Reset()
- func (x *ProgressionDelta) String() string
- type ProgressionDeltaState
- func (ProgressionDeltaState) Descriptor() protoreflect.EnumDescriptor
- func (x ProgressionDeltaState) Enum() *ProgressionDeltaState
- func (ProgressionDeltaState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProgressionDeltaState) Number() protoreflect.EnumNumber
- func (x ProgressionDeltaState) String() string
- func (ProgressionDeltaState) Type() protoreflect.EnumType
- type ProgressionGetRequest
- func (*ProgressionGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressionGetRequest) GetProgressions() map[string]*Progression
- func (*ProgressionGetRequest) ProtoMessage()
- func (x *ProgressionGetRequest) ProtoReflect() protoreflect.Message
- func (x *ProgressionGetRequest) Reset()
- func (x *ProgressionGetRequest) String() string
- type ProgressionList
- func (*ProgressionList) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressionList) GetDeltas() map[string]*ProgressionDelta
- func (x *ProgressionList) GetProgressions() map[string]*Progression
- func (*ProgressionList) ProtoMessage()
- func (x *ProgressionList) ProtoReflect() protoreflect.Message
- func (x *ProgressionList) Reset()
- func (x *ProgressionList) String() string
- type ProgressionPreconditions
- func (*ProgressionPreconditions) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressionPreconditions) GetAchievements() []string
- func (x *ProgressionPreconditions) GetCost() *ProgressionCost
- func (x *ProgressionPreconditions) GetCounts() map[string]int64
- func (x *ProgressionPreconditions) GetCurrencyMax() map[string]int64
- func (x *ProgressionPreconditions) GetCurrencyMin() map[string]int64
- func (x *ProgressionPreconditions) GetEnergyMax() map[string]int64
- func (x *ProgressionPreconditions) GetEnergyMin() map[string]int64
- func (x *ProgressionPreconditions) GetItemsMax() map[string]int64
- func (x *ProgressionPreconditions) GetItemsMin() map[string]int64
- func (x *ProgressionPreconditions) GetProgressions() []string
- func (x *ProgressionPreconditions) GetStatsMax() map[string]int64
- func (x *ProgressionPreconditions) GetStatsMin() map[string]int64
- func (*ProgressionPreconditions) ProtoMessage()
- func (x *ProgressionPreconditions) ProtoReflect() protoreflect.Message
- func (x *ProgressionPreconditions) Reset()
- func (x *ProgressionPreconditions) String() string
- type ProgressionPreconditionsBlock
- func (*ProgressionPreconditionsBlock) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressionPreconditionsBlock) GetDirect() *ProgressionPreconditions
- func (x *ProgressionPreconditionsBlock) GetNested() *ProgressionPreconditionsBlock
- func (x *ProgressionPreconditionsBlock) GetOperator() ProgressionPreconditionsOperator
- func (*ProgressionPreconditionsBlock) ProtoMessage()
- func (x *ProgressionPreconditionsBlock) ProtoReflect() protoreflect.Message
- func (x *ProgressionPreconditionsBlock) Reset()
- func (x *ProgressionPreconditionsBlock) String() string
- type ProgressionPreconditionsOperator
- func (ProgressionPreconditionsOperator) Descriptor() protoreflect.EnumDescriptor
- func (x ProgressionPreconditionsOperator) Enum() *ProgressionPreconditionsOperator
- func (ProgressionPreconditionsOperator) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProgressionPreconditionsOperator) Number() protoreflect.EnumNumber
- func (x ProgressionPreconditionsOperator) String() string
- func (ProgressionPreconditionsOperator) Type() protoreflect.EnumType
- type ProgressionPurchaseRequest
- func (*ProgressionPurchaseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressionPurchaseRequest) GetId() string
- func (*ProgressionPurchaseRequest) ProtoMessage()
- func (x *ProgressionPurchaseRequest) ProtoReflect() protoreflect.Message
- func (x *ProgressionPurchaseRequest) Reset()
- func (x *ProgressionPurchaseRequest) String() string
- type ProgressionResetRequest
- func (*ProgressionResetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressionResetRequest) GetIds() []string
- func (*ProgressionResetRequest) ProtoMessage()
- func (x *ProgressionResetRequest) ProtoReflect() protoreflect.Message
- func (x *ProgressionResetRequest) Reset()
- func (x *ProgressionResetRequest) String() string
- type ProgressionSystem
- type ProgressionUpdateRequest
- func (*ProgressionUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressionUpdateRequest) GetCounts() map[string]int64
- func (x *ProgressionUpdateRequest) GetId() string
- func (*ProgressionUpdateRequest) ProtoMessage()
- func (x *ProgressionUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *ProgressionUpdateRequest) Reset()
- func (x *ProgressionUpdateRequest) String() string
- type Publisher
- type PublisherEvent
- type RateAppRequest
- func (*RateAppRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RateAppRequest) GetMessage() string
- func (x *RateAppRequest) GetScore() uint32
- func (*RateAppRequest) ProtoMessage()
- func (x *RateAppRequest) ProtoReflect() protoreflect.Message
- func (x *RateAppRequest) Reset()
- func (x *RateAppRequest) String() string
- type Reward
- func (*Reward) Descriptor() ([]byte, []int)deprecated
- func (x *Reward) GetCurrencies() map[string]int64
- func (x *Reward) GetEnergies() map[string]int32
- func (x *Reward) GetEnergyModifiers() []*RewardEnergyModifier
- func (x *Reward) GetGrantTimeSec() int64
- func (x *Reward) GetItemInstances() map[string]*RewardInventoryItem
- func (x *Reward) GetItems() map[string]int64
- func (x *Reward) GetMessage() string
- func (x *Reward) GetRewardModifiers() []*RewardModifier
- func (x *Reward) GetTeamReward() *TeamReward
- func (x *Reward) GetToMailboxExpirySec() int64
- func (*Reward) ProtoMessage()
- func (x *Reward) ProtoReflect() protoreflect.Message
- func (x *Reward) Reset()
- func (x *Reward) String() string
- type RewardEnergyModifier
- func (*RewardEnergyModifier) Descriptor() ([]byte, []int)deprecated
- func (x *RewardEnergyModifier) GetDurationSec() uint64
- func (x *RewardEnergyModifier) GetId() string
- func (x *RewardEnergyModifier) GetOperator() string
- func (x *RewardEnergyModifier) GetValue() int64
- func (x *RewardEnergyModifier) GetWeight() int64
- func (*RewardEnergyModifier) ProtoMessage()
- func (x *RewardEnergyModifier) ProtoReflect() protoreflect.Message
- func (x *RewardEnergyModifier) Reset()
- func (x *RewardEnergyModifier) String() string
- type RewardInventoryItem
- func (*RewardInventoryItem) Descriptor() ([]byte, []int)deprecated
- func (x *RewardInventoryItem) GetCount() int64
- func (x *RewardInventoryItem) GetId() string
- func (x *RewardInventoryItem) GetInstanceId() string
- func (x *RewardInventoryItem) GetNumericProperties() map[string]float64
- func (x *RewardInventoryItem) GetStringProperties() map[string]string
- func (*RewardInventoryItem) ProtoMessage()
- func (x *RewardInventoryItem) ProtoReflect() protoreflect.Message
- func (x *RewardInventoryItem) Reset()
- func (x *RewardInventoryItem) String() string
- type RewardList
- type RewardMailboxClaimRequest
- func (*RewardMailboxClaimRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RewardMailboxClaimRequest) GetDelete() bool
- func (x *RewardMailboxClaimRequest) GetId() string
- func (*RewardMailboxClaimRequest) ProtoMessage()
- func (x *RewardMailboxClaimRequest) ProtoReflect() protoreflect.Message
- func (x *RewardMailboxClaimRequest) Reset()
- func (x *RewardMailboxClaimRequest) String() string
- type RewardMailboxConfig
- type RewardMailboxDeleteRequest
- func (*RewardMailboxDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RewardMailboxDeleteRequest) GetIds() []string
- func (*RewardMailboxDeleteRequest) ProtoMessage()
- func (x *RewardMailboxDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *RewardMailboxDeleteRequest) Reset()
- func (x *RewardMailboxDeleteRequest) String() string
- type RewardMailboxEntry
- func (*RewardMailboxEntry) Descriptor() ([]byte, []int)deprecated
- func (x *RewardMailboxEntry) GetCanClaim() bool
- func (x *RewardMailboxEntry) GetClaimTimeSec() int64
- func (x *RewardMailboxEntry) GetCreateTimeSec() int64
- func (x *RewardMailboxEntry) GetExpiryTimeSec() int64
- func (x *RewardMailboxEntry) GetId() string
- func (x *RewardMailboxEntry) GetReward() *Reward
- func (x *RewardMailboxEntry) GetUpdateTimeSec() int64
- func (*RewardMailboxEntry) ProtoMessage()
- func (x *RewardMailboxEntry) ProtoReflect() protoreflect.Message
- func (x *RewardMailboxEntry) Reset()
- func (x *RewardMailboxEntry) String() string
- type RewardMailboxList
- func (*RewardMailboxList) Descriptor() ([]byte, []int)deprecated
- func (x *RewardMailboxList) GetCursor() string
- func (x *RewardMailboxList) GetEntries() []*RewardMailboxEntry
- func (*RewardMailboxList) ProtoMessage()
- func (x *RewardMailboxList) ProtoReflect() protoreflect.Message
- func (x *RewardMailboxList) Reset()
- func (x *RewardMailboxList) String() string
- type RewardMailboxListRequest
- func (*RewardMailboxListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RewardMailboxListRequest) GetCursor() string
- func (x *RewardMailboxListRequest) GetLimit() int64
- func (*RewardMailboxListRequest) ProtoMessage()
- func (x *RewardMailboxListRequest) ProtoReflect() protoreflect.Message
- func (x *RewardMailboxListRequest) Reset()
- func (x *RewardMailboxListRequest) String() string
- type RewardMailboxSystem
- type RewardModifier
- func (*RewardModifier) Descriptor() ([]byte, []int)deprecated
- func (x *RewardModifier) GetDurationSec() uint64
- func (x *RewardModifier) GetId() string
- func (x *RewardModifier) GetOperator() string
- func (x *RewardModifier) GetType() string
- func (x *RewardModifier) GetValue() int64
- func (*RewardModifier) ProtoMessage()
- func (x *RewardModifier) ProtoReflect() protoreflect.Message
- func (x *RewardModifier) Reset()
- func (x *RewardModifier) String() string
- type RewardRangeDouble
- func (*RewardRangeDouble) Descriptor() ([]byte, []int)deprecated
- func (x *RewardRangeDouble) GetMax() float64
- func (x *RewardRangeDouble) GetMin() float64
- func (x *RewardRangeDouble) GetMultiple() float64
- func (*RewardRangeDouble) ProtoMessage()
- func (x *RewardRangeDouble) ProtoReflect() protoreflect.Message
- func (x *RewardRangeDouble) Reset()
- func (x *RewardRangeDouble) String() string
- type RewardRangeInt32
- func (*RewardRangeInt32) Descriptor() ([]byte, []int)deprecated
- func (x *RewardRangeInt32) GetMax() int32
- func (x *RewardRangeInt32) GetMin() int32
- func (x *RewardRangeInt32) GetMultiple() int32
- func (*RewardRangeInt32) ProtoMessage()
- func (x *RewardRangeInt32) ProtoReflect() protoreflect.Message
- func (x *RewardRangeInt32) Reset()
- func (x *RewardRangeInt32) String() string
- type RewardRangeInt64
- func (*RewardRangeInt64) Descriptor() ([]byte, []int)deprecated
- func (x *RewardRangeInt64) GetMax() int64
- func (x *RewardRangeInt64) GetMin() int64
- func (x *RewardRangeInt64) GetMultiple() int64
- func (*RewardRangeInt64) ProtoMessage()
- func (x *RewardRangeInt64) ProtoReflect() protoreflect.Message
- func (x *RewardRangeInt64) Reset()
- func (x *RewardRangeInt64) String() string
- type RewardRangeUInt64
- func (*RewardRangeUInt64) Descriptor() ([]byte, []int)deprecated
- func (x *RewardRangeUInt64) GetMax() uint64
- func (x *RewardRangeUInt64) GetMin() uint64
- func (x *RewardRangeUInt64) GetMultiple() uint64
- func (*RewardRangeUInt64) ProtoMessage()
- func (x *RewardRangeUInt64) ProtoReflect() protoreflect.Message
- func (x *RewardRangeUInt64) Reset()
- func (x *RewardRangeUInt64) String() string
- type RpcId
- type RpcSocketId
- func (RpcSocketId) Descriptor() protoreflect.EnumDescriptor
- func (x RpcSocketId) Enum() *RpcSocketId
- func (RpcSocketId) EnumDescriptor() ([]byte, []int)deprecated
- func (x RpcSocketId) Number() protoreflect.EnumNumber
- func (x RpcSocketId) String() string
- func (RpcSocketId) Type() protoreflect.EnumType
- type SatoriPersonalizer
- func (p *SatoriPersonalizer) Authenticate(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, ...)
- func (p *SatoriPersonalizer) GetValue(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, ...) (any, error)
- func (p *SatoriPersonalizer) IsPublishAchievementsEvents() bool
- func (p *SatoriPersonalizer) IsPublishAuctionsEvents() bool
- func (p *SatoriPersonalizer) IsPublishAuthenticateRequest() bool
- func (p *SatoriPersonalizer) IsPublishAuthenticateRequestWithSession() bool
- func (p *SatoriPersonalizer) IsPublishBaseEvents() bool
- func (p *SatoriPersonalizer) IsPublishChallengeEvents() bool
- func (p *SatoriPersonalizer) IsPublishEconomyEvents() bool
- func (p *SatoriPersonalizer) IsPublishEnergyEvents() bool
- func (p *SatoriPersonalizer) IsPublishEventLeaderboardsEvents() bool
- func (p *SatoriPersonalizer) IsPublishIncentivesEvents() bool
- func (p *SatoriPersonalizer) IsPublishInventoryEvents() bool
- func (p *SatoriPersonalizer) IsPublishLeaderboardsEvents() bool
- func (p *SatoriPersonalizer) IsPublishProgressionEvents() bool
- func (p *SatoriPersonalizer) IsPublishStatsEvents() bool
- func (p *SatoriPersonalizer) IsPublishStreaksEvents() bool
- func (p *SatoriPersonalizer) IsPublishTeamsEvents() bool
- func (p *SatoriPersonalizer) IsPublishTutorialsEvents() bool
- func (p *SatoriPersonalizer) IsPublishUnlockablesEvents() bool
- func (p *SatoriPersonalizer) Send(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, ...)
- type SatoriPersonalizerCache
- type SatoriPersonalizerOption
- func SatoriPersonalizerNoCache() SatoriPersonalizerOption
- func SatoriPersonalizerPublishAchievementsEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishAllEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishAuctionsEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishAuthenticateEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishAuthenticateEventsWithSession() SatoriPersonalizerOption
- func SatoriPersonalizerPublishBaseEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishChallengeEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishEconomyEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishEnergyEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishEventLeaderboardsEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishIncentivesEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishInventoryEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishLeaderboardsEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishProgressionEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishStatsEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishStreaksEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishTeamsEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishTutorialsEvents() SatoriPersonalizerOption
- func SatoriPersonalizerPublishUnlockablesEvents() SatoriPersonalizerOption
- type Stat
- func (*Stat) Descriptor() ([]byte, []int)deprecated
- func (x *Stat) GetAdditionalProperties() *structpb.Struct
- func (x *Stat) GetCount() int64
- func (x *Stat) GetFirst() int64
- func (x *Stat) GetLast() int64
- func (x *Stat) GetMax() int64
- func (x *Stat) GetMin() int64
- func (x *Stat) GetName() string
- func (x *Stat) GetPublic() bool
- func (x *Stat) GetTotal() int64
- func (x *Stat) GetUpdateTimeSec() int64
- func (x *Stat) GetValue() int64
- func (*Stat) ProtoMessage()
- func (x *Stat) ProtoReflect() protoreflect.Message
- func (x *Stat) Reset()
- func (x *Stat) String() string
- type StatList
- func (*StatList) Descriptor() ([]byte, []int)deprecated
- func (x *StatList) GetPrivate() map[string]*Stat
- func (x *StatList) GetPublic() map[string]*Stat
- func (*StatList) ProtoMessage()
- func (x *StatList) ProtoReflect() protoreflect.Message
- func (x *StatList) Reset()
- func (x *StatList) String() string
- type StatUpdate
- func (*StatUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *StatUpdate) GetName() string
- func (x *StatUpdate) GetOperator() StatUpdateOperator
- func (x *StatUpdate) GetValue() int64
- func (*StatUpdate) ProtoMessage()
- func (x *StatUpdate) ProtoReflect() protoreflect.Message
- func (x *StatUpdate) Reset()
- func (x *StatUpdate) String() string
- type StatUpdateOperator
- func (StatUpdateOperator) Descriptor() protoreflect.EnumDescriptor
- func (x StatUpdateOperator) Enum() *StatUpdateOperator
- func (StatUpdateOperator) EnumDescriptor() ([]byte, []int)deprecated
- func (x StatUpdateOperator) Number() protoreflect.EnumNumber
- func (x StatUpdateOperator) String() string
- func (StatUpdateOperator) Type() protoreflect.EnumType
- type StatUpdateRequest
- func (*StatUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StatUpdateRequest) GetPrivate() []*StatUpdate
- func (x *StatUpdateRequest) GetPublic() []*StatUpdate
- func (*StatUpdateRequest) ProtoMessage()
- func (x *StatUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *StatUpdateRequest) Reset()
- func (x *StatUpdateRequest) String() string
- type StatsConfig
- type StatsConfigStat
- type StatsSystem
- type StoragePersonalizer
- type StoragePersonalizerCachedStorageObject
- type Streak
- func (*Streak) Descriptor() ([]byte, []int)deprecated
- func (x *Streak) GetAvailableRewards() []*StreakAvailableReward
- func (x *Streak) GetCanClaim() bool
- func (x *Streak) GetCanReset() bool
- func (x *Streak) GetCanUpdate() bool
- func (x *Streak) GetClaimCount() int64
- func (x *Streak) GetClaimTimeSec() int64
- func (x *Streak) GetClaimedRewards() []*StreakReward
- func (x *Streak) GetCount() int64
- func (x *Streak) GetCountCurrentReset() int64
- func (x *Streak) GetCreateTimeSec() int64
- func (x *Streak) GetDescription() string
- func (x *Streak) GetEndTimeSec() int64
- func (x *Streak) GetId() string
- func (x *Streak) GetIdleCountDecayReset() int64
- func (x *Streak) GetMaxCount() int64
- func (x *Streak) GetMaxCountCurrentReset() int64
- func (x *Streak) GetMaxIdleCountDecay() int64
- func (x *Streak) GetName() string
- func (x *Streak) GetPrevResetTimeSec() int64
- func (x *Streak) GetResetTimeSec() int64
- func (x *Streak) GetRewards() []*StreakAvailableReward
- func (x *Streak) GetStartTimeSec() int64
- func (x *Streak) GetUpdateTimeSec() int64
- func (*Streak) ProtoMessage()
- func (x *Streak) ProtoReflect() protoreflect.Message
- func (x *Streak) Reset()
- func (x *Streak) String() string
- type StreakAvailableReward
- func (*StreakAvailableReward) Descriptor() ([]byte, []int)deprecated
- func (x *StreakAvailableReward) GetCountMax() int64
- func (x *StreakAvailableReward) GetCountMin() int64
- func (x *StreakAvailableReward) GetRepeatable() bool
- func (x *StreakAvailableReward) GetReward() *AvailableRewards
- func (*StreakAvailableReward) ProtoMessage()
- func (x *StreakAvailableReward) ProtoReflect() protoreflect.Message
- func (x *StreakAvailableReward) Reset()
- func (x *StreakAvailableReward) String() string
- type StreakReward
- func (*StreakReward) Descriptor() ([]byte, []int)deprecated
- func (x *StreakReward) GetClaimTimeSec() int64
- func (x *StreakReward) GetCountMax() int64
- func (x *StreakReward) GetCountMin() int64
- func (x *StreakReward) GetRepeatable() bool
- func (x *StreakReward) GetReward() *Reward
- func (*StreakReward) ProtoMessage()
- func (x *StreakReward) ProtoReflect() protoreflect.Message
- func (x *StreakReward) Reset()
- func (x *StreakReward) String() string
- type StreaksClaimRequest
- func (*StreaksClaimRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreaksClaimRequest) GetIds() []string
- func (*StreaksClaimRequest) ProtoMessage()
- func (x *StreaksClaimRequest) ProtoReflect() protoreflect.Message
- func (x *StreaksClaimRequest) Reset()
- func (x *StreaksClaimRequest) String() string
- type StreaksConfig
- type StreaksConfigStreak
- type StreaksConfigStreakReward
- type StreaksList
- type StreaksResetRequest
- func (*StreaksResetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreaksResetRequest) GetIds() []string
- func (*StreaksResetRequest) ProtoMessage()
- func (x *StreaksResetRequest) ProtoReflect() protoreflect.Message
- func (x *StreaksResetRequest) Reset()
- func (x *StreaksResetRequest) String() string
- type StreaksSystem
- type StreaksUpdateRequest
- func (*StreaksUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreaksUpdateRequest) GetUpdates() map[string]int64
- func (*StreaksUpdateRequest) ProtoMessage()
- func (x *StreaksUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *StreaksUpdateRequest) Reset()
- func (x *StreaksUpdateRequest) String() string
- type StreamEnvelope
- func (*StreamEnvelope) Descriptor() ([]byte, []int)deprecated
- func (x *StreamEnvelope) GetAuctionBid() *AuctionNotificationBid
- func (m *StreamEnvelope) GetMessage() isStreamEnvelope_Message
- func (*StreamEnvelope) ProtoMessage()
- func (x *StreamEnvelope) ProtoReflect() protoreflect.Message
- func (x *StreamEnvelope) Reset()
- func (x *StreamEnvelope) String() string
- type StreamEnvelope_AuctionBid
- type SubAchievement
- func (*SubAchievement) Descriptor() ([]byte, []int)deprecated
- func (x *SubAchievement) GetAdditionalProperties() map[string]string
- func (x *SubAchievement) GetAutoClaim() bool
- func (x *SubAchievement) GetAutoReset() bool
- func (x *SubAchievement) GetAvailableRewards() *AvailableRewards
- func (x *SubAchievement) GetCategory() string
- func (x *SubAchievement) GetClaimTimeSec() int64
- func (x *SubAchievement) GetCount() int64
- func (x *SubAchievement) GetCurrentTimeSec() int64
- func (x *SubAchievement) GetDescription() string
- func (x *SubAchievement) GetExpireTimeSec() int64
- func (x *SubAchievement) GetId() string
- func (x *SubAchievement) GetIsActive() bool
- func (x *SubAchievement) GetMaxCount() int64
- func (x *SubAchievement) GetName() string
- func (x *SubAchievement) GetPreconditionIds() []string
- func (x *SubAchievement) GetResetTimeSec() int64
- func (x *SubAchievement) GetReward() *Reward
- func (x *SubAchievement) GetUpdateTimeSec() int64
- func (*SubAchievement) ProtoMessage()
- func (x *SubAchievement) ProtoReflect() protoreflect.Message
- func (x *SubAchievement) Reset()
- func (x *SubAchievement) String() string
- type SyncAchievements
- func (*SyncAchievements) Descriptor() ([]byte, []int)deprecated
- func (x *SyncAchievements) GetAchievements() map[string]*SyncAchievementsUpdate
- func (*SyncAchievements) ProtoMessage()
- func (x *SyncAchievements) ProtoReflect() protoreflect.Message
- func (x *SyncAchievements) Reset()
- func (x *SyncAchievements) String() string
- type SyncAchievementsUpdate
- func (*SyncAchievementsUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *SyncAchievementsUpdate) GetClaimTimeSec() int64
- func (x *SyncAchievementsUpdate) GetCount() int64
- func (x *SyncAchievementsUpdate) GetCreateTimeSec() int64
- func (x *SyncAchievementsUpdate) GetTotalClaimTimeSec() int64
- func (x *SyncAchievementsUpdate) GetUpdateTimeSec() int64
- func (*SyncAchievementsUpdate) ProtoMessage()
- func (x *SyncAchievementsUpdate) ProtoReflect() protoreflect.Message
- func (x *SyncAchievementsUpdate) Reset()
- func (x *SyncAchievementsUpdate) String() string
- type SyncEconomy
- func (*SyncEconomy) Descriptor() ([]byte, []int)deprecated
- func (x *SyncEconomy) GetCurrencies() map[string]int64
- func (x *SyncEconomy) GetModifiers() []*ActiveRewardModifier
- func (*SyncEconomy) ProtoMessage()
- func (x *SyncEconomy) ProtoReflect() protoreflect.Message
- func (x *SyncEconomy) Reset()
- func (x *SyncEconomy) String() string
- type SyncEnergy
- func (*SyncEnergy) Descriptor() ([]byte, []int)deprecated
- func (x *SyncEnergy) GetEnergies() map[string]*SyncEnergyState
- func (x *SyncEnergy) GetModifiers() []*EnergyModifier
- func (*SyncEnergy) ProtoMessage()
- func (x *SyncEnergy) ProtoReflect() protoreflect.Message
- func (x *SyncEnergy) Reset()
- func (x *SyncEnergy) String() string
- type SyncEnergyState
- func (*SyncEnergyState) Descriptor() ([]byte, []int)deprecated
- func (x *SyncEnergyState) GetCount() int64
- func (x *SyncEnergyState) GetRefillStartTimeSec() int64
- func (*SyncEnergyState) ProtoMessage()
- func (x *SyncEnergyState) ProtoReflect() protoreflect.Message
- func (x *SyncEnergyState) Reset()
- func (x *SyncEnergyState) String() string
- type SyncEventLeaderboardUpdate
- func (*SyncEventLeaderboardUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *SyncEventLeaderboardUpdate) GetMetadata() string
- func (x *SyncEventLeaderboardUpdate) GetScore() int64
- func (x *SyncEventLeaderboardUpdate) GetSubscore() int64
- func (x *SyncEventLeaderboardUpdate) GetUpdateTimeSec() int64
- func (*SyncEventLeaderboardUpdate) ProtoMessage()
- func (x *SyncEventLeaderboardUpdate) ProtoReflect() protoreflect.Message
- func (x *SyncEventLeaderboardUpdate) Reset()
- func (x *SyncEventLeaderboardUpdate) String() string
- type SyncEventLeaderboards
- func (*SyncEventLeaderboards) Descriptor() ([]byte, []int)deprecated
- func (x *SyncEventLeaderboards) GetEventLeaderboards() map[string]*SyncEventLeaderboardUpdate
- func (*SyncEventLeaderboards) ProtoMessage()
- func (x *SyncEventLeaderboards) ProtoReflect() protoreflect.Message
- func (x *SyncEventLeaderboards) Reset()
- func (x *SyncEventLeaderboards) String() string
- type SyncInventory
- type SyncInventoryItem
- func (*SyncInventoryItem) Descriptor() ([]byte, []int)deprecated
- func (x *SyncInventoryItem) GetDelta() int64
- func (x *SyncInventoryItem) GetItemId() string
- func (x *SyncInventoryItem) GetNumericProperties() map[string]float64
- func (x *SyncInventoryItem) GetStringProperties() map[string]string
- func (*SyncInventoryItem) ProtoMessage()
- func (x *SyncInventoryItem) ProtoReflect() protoreflect.Message
- func (x *SyncInventoryItem) Reset()
- func (x *SyncInventoryItem) String() string
- type SyncProgressionUpdate
- func (*SyncProgressionUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *SyncProgressionUpdate) GetCost() *ProgressionCost
- func (x *SyncProgressionUpdate) GetCounts() map[string]int64
- func (x *SyncProgressionUpdate) GetCreateTimeSec() int64
- func (x *SyncProgressionUpdate) GetUpdateTimeSec() int64
- func (*SyncProgressionUpdate) ProtoMessage()
- func (x *SyncProgressionUpdate) ProtoReflect() protoreflect.Message
- func (x *SyncProgressionUpdate) Reset()
- func (x *SyncProgressionUpdate) String() string
- type SyncProgressions
- func (*SyncProgressions) Descriptor() ([]byte, []int)deprecated
- func (x *SyncProgressions) GetProgressions() map[string]*SyncProgressionUpdate
- func (*SyncProgressions) ProtoMessage()
- func (x *SyncProgressions) ProtoReflect() protoreflect.Message
- func (x *SyncProgressions) Reset()
- func (x *SyncProgressions) String() string
- type SyncRequest
- func (*SyncRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncRequest) GetAchievements() *SyncAchievements
- func (x *SyncRequest) GetEconomy() *SyncEconomy
- func (x *SyncRequest) GetEnergy() *SyncEnergy
- func (x *SyncRequest) GetEventLeaderboards() *SyncEventLeaderboards
- func (x *SyncRequest) GetInventory() *SyncInventory
- func (x *SyncRequest) GetProgressions() *SyncProgressions
- func (x *SyncRequest) GetStats() *StatUpdateRequest
- func (x *SyncRequest) GetStreaks() *SyncStreaks
- func (x *SyncRequest) GetTutorials() *SyncTutorials
- func (x *SyncRequest) GetUnlockables() *SyncUnlockables
- func (*SyncRequest) ProtoMessage()
- func (x *SyncRequest) ProtoReflect() protoreflect.Message
- func (x *SyncRequest) Reset()
- func (x *SyncRequest) String() string
- type SyncResponse
- func (*SyncResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SyncResponse) GetAchievements() *AchievementList
- func (x *SyncResponse) GetActiveRewardModifiers() []*ActiveRewardModifier
- func (x *SyncResponse) GetCurrentTimeSec() int64
- func (x *SyncResponse) GetEnergy() *EnergyList
- func (x *SyncResponse) GetEventLeaderboards() []*EventLeaderboard
- func (x *SyncResponse) GetInventory() *Inventory
- func (x *SyncResponse) GetProgressions() *ProgressionList
- func (x *SyncResponse) GetStats() *StatList
- func (x *SyncResponse) GetStreaks() *StreaksList
- func (x *SyncResponse) GetTutorials() *TutorialList
- func (x *SyncResponse) GetUnlockables() *UnlockablesList
- func (x *SyncResponse) GetWallet() map[string]int64
- func (*SyncResponse) ProtoMessage()
- func (x *SyncResponse) ProtoReflect() protoreflect.Message
- func (x *SyncResponse) Reset()
- func (x *SyncResponse) String() string
- type SyncStreakUpdate
- func (*SyncStreakUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreakUpdate) GetClaimCount() int64
- func (x *SyncStreakUpdate) GetClaimTimeSec() int64
- func (x *SyncStreakUpdate) GetClaimedRewards() []*StreakReward
- func (x *SyncStreakUpdate) GetCount() int64
- func (x *SyncStreakUpdate) GetCountCurrentReset() int64
- func (x *SyncStreakUpdate) GetCreateTimeSec() int64
- func (x *SyncStreakUpdate) GetUpdateTimeSec() int64
- func (*SyncStreakUpdate) ProtoMessage()
- func (x *SyncStreakUpdate) ProtoReflect() protoreflect.Message
- func (x *SyncStreakUpdate) Reset()
- func (x *SyncStreakUpdate) String() string
- type SyncStreaks
- func (*SyncStreaks) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreaks) GetResets() []string
- func (x *SyncStreaks) GetUpdates() map[string]*SyncStreakUpdate
- func (*SyncStreaks) ProtoMessage()
- func (x *SyncStreaks) ProtoReflect() protoreflect.Message
- func (x *SyncStreaks) Reset()
- func (x *SyncStreaks) String() string
- type SyncTutorials
- func (*SyncTutorials) Descriptor() ([]byte, []int)deprecated
- func (x *SyncTutorials) GetAbandons() []string
- func (x *SyncTutorials) GetAccepts() []string
- func (x *SyncTutorials) GetDeclines() []string
- func (x *SyncTutorials) GetUpdates() map[string]int64
- func (*SyncTutorials) ProtoMessage()
- func (x *SyncTutorials) ProtoReflect() protoreflect.Message
- func (x *SyncTutorials) Reset()
- func (x *SyncTutorials) String() string
- type SyncUnlockableUpdate
- func (*SyncUnlockableUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *SyncUnlockableUpdate) GetCreateTimeSec() int64
- func (x *SyncUnlockableUpdate) GetStartTimeSec() int64
- func (x *SyncUnlockableUpdate) GetUnlockTimeSec() int64
- func (x *SyncUnlockableUpdate) GetUnlockableId() string
- func (*SyncUnlockableUpdate) ProtoMessage()
- func (x *SyncUnlockableUpdate) ProtoReflect() protoreflect.Message
- func (x *SyncUnlockableUpdate) Reset()
- func (x *SyncUnlockableUpdate) String() string
- type SyncUnlockables
- func (*SyncUnlockables) Descriptor() ([]byte, []int)deprecated
- func (x *SyncUnlockables) GetRemoves() []string
- func (x *SyncUnlockables) GetUpdates() map[string]*SyncUnlockableUpdate
- func (*SyncUnlockables) ProtoMessage()
- func (x *SyncUnlockables) ProtoReflect() protoreflect.Message
- func (x *SyncUnlockables) Reset()
- func (x *SyncUnlockables) String() string
- type System
- type SystemConfig
- func WithAchievementsSystem(configFile string, register bool) SystemConfig
- func WithAuctionsSystem(configFile string, register bool) SystemConfig
- func WithBaseSystem(configFile string, register bool, options ...BaseSystemOption) SystemConfig
- func WithChallengesSystem(configFile string, register bool) SystemConfig
- func WithEconomySystem(configFile string, register bool, ironSrcPrivKey ...string) SystemConfig
- func WithEnergySystem(configFile string, register bool) SystemConfig
- func WithEventLeaderboardsSystem(configFile string, register bool) SystemConfig
- func WithIncentivesSystem(configFile string, register bool) SystemConfig
- func WithInventorySystem(configFile string, register bool) SystemConfig
- func WithLeaderboardsSystem(configFile string, register bool, validateWriteScore ...ValidateWriteScoreFn) SystemConfig
- func WithProgressionSystem(configFile string, register bool) SystemConfig
- func WithRewardMailboxSystem(configFile string, register bool) SystemConfig
- func WithStatsSystem(configFile string, register bool) SystemConfig
- func WithStreaksSystem(configFile string, register bool) SystemConfig
- func WithTeamsSystem(configFile string, register bool) SystemConfig
- func WithTutorialsSystem(configFile string, register bool) SystemConfig
- func WithUnlockablesSystem(configFile string, register bool) SystemConfig
- type SystemType
- type Team
- func (*Team) Descriptor() ([]byte, []int)deprecated
- func (x *Team) GetActivity() int64
- func (x *Team) GetAvatarUrl() string
- func (x *Team) GetCreateTimeSec() int64
- func (x *Team) GetCreatorId() string
- func (x *Team) GetDescription() string
- func (x *Team) GetEdgeCount() int32
- func (x *Team) GetId() string
- func (x *Team) GetLangTag() string
- func (x *Team) GetMaxCount() int32
- func (x *Team) GetMembers() []*TeamMember
- func (x *Team) GetMetadata() string
- func (x *Team) GetName() string
- func (x *Team) GetOpen() bool
- func (x *Team) GetUpdateTimeSec() int64
- func (*Team) ProtoMessage()
- func (x *Team) ProtoReflect() protoreflect.Message
- func (x *Team) Reset()
- func (x *Team) String() string
- type TeamAchievementsClaimRequest
- func (*TeamAchievementsClaimRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamAchievementsClaimRequest) GetAchievementIds() []string
- func (x *TeamAchievementsClaimRequest) GetClaimTotalReward() bool
- func (x *TeamAchievementsClaimRequest) GetId() string
- func (*TeamAchievementsClaimRequest) ProtoMessage()
- func (x *TeamAchievementsClaimRequest) ProtoReflect() protoreflect.Message
- func (x *TeamAchievementsClaimRequest) Reset()
- func (x *TeamAchievementsClaimRequest) String() string
- type TeamAchievementsGetRequest
- func (*TeamAchievementsGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamAchievementsGetRequest) GetId() string
- func (*TeamAchievementsGetRequest) ProtoMessage()
- func (x *TeamAchievementsGetRequest) ProtoReflect() protoreflect.Message
- func (x *TeamAchievementsGetRequest) Reset()
- func (x *TeamAchievementsGetRequest) String() string
- type TeamAchievementsUpdateRequest
- func (*TeamAchievementsUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamAchievementsUpdateRequest) GetAchievementIds() []string
- func (x *TeamAchievementsUpdateRequest) GetAchievements() map[string]int64
- func (x *TeamAchievementsUpdateRequest) GetAmount() int64
- func (x *TeamAchievementsUpdateRequest) GetId() string
- func (*TeamAchievementsUpdateRequest) ProtoMessage()
- func (x *TeamAchievementsUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *TeamAchievementsUpdateRequest) Reset()
- func (x *TeamAchievementsUpdateRequest) String() string
- type TeamActivityCalculator
- type TeamCreateRequest
- func (*TeamCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamCreateRequest) GetAvatarUrl() string
- func (x *TeamCreateRequest) GetDesc() string
- func (x *TeamCreateRequest) GetLangTag() string
- func (x *TeamCreateRequest) GetName() string
- func (x *TeamCreateRequest) GetOpen() bool
- func (x *TeamCreateRequest) GetSetupMetadata() string
- func (*TeamCreateRequest) ProtoMessage()
- func (x *TeamCreateRequest) ProtoReflect() protoreflect.Message
- func (x *TeamCreateRequest) Reset()
- func (x *TeamCreateRequest) String() string
- type TeamEconomyConfigStoreItem
- type TeamEconomyConfigStoreItemCost
- type TeamEventLeaderboard
- func (*TeamEventLeaderboard) Descriptor() ([]byte, []int)deprecated
- func (x *TeamEventLeaderboard) GetAdditionalProperties() map[string]string
- func (x *TeamEventLeaderboard) GetAscending() bool
- func (x *TeamEventLeaderboard) GetAvailableRewards() *AvailableRewards
- func (x *TeamEventLeaderboard) GetBackingId() string
- func (x *TeamEventLeaderboard) GetCanClaim() bool
- func (x *TeamEventLeaderboard) GetCanRoll() bool
- func (x *TeamEventLeaderboard) GetCategory() string
- func (x *TeamEventLeaderboard) GetChangeZones() map[int32]*EventLeaderboardChangeZone
- func (x *TeamEventLeaderboard) GetClaimTimeSec() int64
- func (x *TeamEventLeaderboard) GetCohortId() string
- func (x *TeamEventLeaderboard) GetContributions() []*TeamEventLeaderboardContribution
- func (x *TeamEventLeaderboard) GetCount() int64
- func (x *TeamEventLeaderboard) GetCurrentTimeSec() int64
- func (x *TeamEventLeaderboard) GetDescription() string
- func (x *TeamEventLeaderboard) GetEndTimeSec() int64
- func (x *TeamEventLeaderboard) GetExpiryTimeSec() int64
- func (x *TeamEventLeaderboard) GetId() string
- func (x *TeamEventLeaderboard) GetIsActive() bool
- func (x *TeamEventLeaderboard) GetMatchmakerProperties() *structpb.Struct
- func (x *TeamEventLeaderboard) GetMaxCount() int64
- func (x *TeamEventLeaderboard) GetMaxNumScore() int64
- func (x *TeamEventLeaderboard) GetName() string
- func (x *TeamEventLeaderboard) GetOperator() string
- func (x *TeamEventLeaderboard) GetReward() *Reward
- func (x *TeamEventLeaderboard) GetRewardTiers() map[int32]*EventLeaderboardRewardTiers
- func (x *TeamEventLeaderboard) GetScores() []*TeamEventLeaderboardScore
- func (x *TeamEventLeaderboard) GetStartTimeSec() int64
- func (x *TeamEventLeaderboard) GetTier() int32
- func (*TeamEventLeaderboard) ProtoMessage()
- func (x *TeamEventLeaderboard) ProtoReflect() protoreflect.Message
- func (x *TeamEventLeaderboard) Reset()
- func (x *TeamEventLeaderboard) String() string
- type TeamEventLeaderboardClaim
- func (*TeamEventLeaderboardClaim) Descriptor() ([]byte, []int)deprecated
- func (x *TeamEventLeaderboardClaim) GetEventLeaderboardId() string
- func (x *TeamEventLeaderboardClaim) GetId() string
- func (*TeamEventLeaderboardClaim) ProtoMessage()
- func (x *TeamEventLeaderboardClaim) ProtoReflect() protoreflect.Message
- func (x *TeamEventLeaderboardClaim) Reset()
- func (x *TeamEventLeaderboardClaim) String() string
- type TeamEventLeaderboardContribution
- func (*TeamEventLeaderboardContribution) Descriptor() ([]byte, []int)deprecated
- func (x *TeamEventLeaderboardContribution) GetAvatarUrl() string
- func (x *TeamEventLeaderboardContribution) GetCreateTimeSec() int64
- func (x *TeamEventLeaderboardContribution) GetDisplayName() string
- func (x *TeamEventLeaderboardContribution) GetId() string
- func (x *TeamEventLeaderboardContribution) GetMetadata() string
- func (x *TeamEventLeaderboardContribution) GetNumScores() int64
- func (x *TeamEventLeaderboardContribution) GetScore() int64
- func (x *TeamEventLeaderboardContribution) GetSubscore() int64
- func (x *TeamEventLeaderboardContribution) GetUpdateTimeSec() int64
- func (x *TeamEventLeaderboardContribution) GetUsername() string
- func (*TeamEventLeaderboardContribution) ProtoMessage()
- func (x *TeamEventLeaderboardContribution) ProtoReflect() protoreflect.Message
- func (x *TeamEventLeaderboardContribution) Reset()
- func (x *TeamEventLeaderboardContribution) String() string
- type TeamEventLeaderboardDebugFillRequest
- func (*TeamEventLeaderboardDebugFillRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamEventLeaderboardDebugFillRequest) GetEventLeaderboardId() string
- func (x *TeamEventLeaderboardDebugFillRequest) GetId() string
- func (x *TeamEventLeaderboardDebugFillRequest) GetTargetCount() int32
- func (*TeamEventLeaderboardDebugFillRequest) ProtoMessage()
- func (x *TeamEventLeaderboardDebugFillRequest) ProtoReflect() protoreflect.Message
- func (x *TeamEventLeaderboardDebugFillRequest) Reset()
- func (x *TeamEventLeaderboardDebugFillRequest) String() string
- type TeamEventLeaderboardDebugRandomScoresRequest
- func (*TeamEventLeaderboardDebugRandomScoresRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetEventLeaderboardId() string
- func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetId() string
- func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetMax() int64
- func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetMin() int64
- func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetOperator() *wrapperspb.Int32Value
- func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetSubscoreMax() int64
- func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetSubscoreMin() int64
- func (*TeamEventLeaderboardDebugRandomScoresRequest) ProtoMessage()
- func (x *TeamEventLeaderboardDebugRandomScoresRequest) ProtoReflect() protoreflect.Message
- func (x *TeamEventLeaderboardDebugRandomScoresRequest) Reset()
- func (x *TeamEventLeaderboardDebugRandomScoresRequest) String() string
- type TeamEventLeaderboardGet
- func (*TeamEventLeaderboardGet) Descriptor() ([]byte, []int)deprecated
- func (x *TeamEventLeaderboardGet) GetEventLeaderboardId() string
- func (x *TeamEventLeaderboardGet) GetId() string
- func (*TeamEventLeaderboardGet) ProtoMessage()
- func (x *TeamEventLeaderboardGet) ProtoReflect() protoreflect.Message
- func (x *TeamEventLeaderboardGet) Reset()
- func (x *TeamEventLeaderboardGet) String() string
- type TeamEventLeaderboardList
- func (*TeamEventLeaderboardList) Descriptor() ([]byte, []int)deprecated
- func (x *TeamEventLeaderboardList) GetCategories() []string
- func (x *TeamEventLeaderboardList) GetId() string
- func (x *TeamEventLeaderboardList) GetWithScores() bool
- func (*TeamEventLeaderboardList) ProtoMessage()
- func (x *TeamEventLeaderboardList) ProtoReflect() protoreflect.Message
- func (x *TeamEventLeaderboardList) Reset()
- func (x *TeamEventLeaderboardList) String() string
- type TeamEventLeaderboardRoll
- func (*TeamEventLeaderboardRoll) Descriptor() ([]byte, []int)deprecated
- func (x *TeamEventLeaderboardRoll) GetEventLeaderboardId() string
- func (x *TeamEventLeaderboardRoll) GetId() string
- func (x *TeamEventLeaderboardRoll) GetMetadata() string
- func (*TeamEventLeaderboardRoll) ProtoMessage()
- func (x *TeamEventLeaderboardRoll) ProtoReflect() protoreflect.Message
- func (x *TeamEventLeaderboardRoll) Reset()
- func (x *TeamEventLeaderboardRoll) String() string
- type TeamEventLeaderboardScore
- func (*TeamEventLeaderboardScore) Descriptor() ([]byte, []int)deprecated
- func (x *TeamEventLeaderboardScore) GetAvatarUrl() string
- func (x *TeamEventLeaderboardScore) GetCreateTimeSec() int64
- func (x *TeamEventLeaderboardScore) GetId() string
- func (x *TeamEventLeaderboardScore) GetMetadata() string
- func (x *TeamEventLeaderboardScore) GetName() string
- func (x *TeamEventLeaderboardScore) GetNumScores() int64
- func (x *TeamEventLeaderboardScore) GetRank() int64
- func (x *TeamEventLeaderboardScore) GetScore() int64
- func (x *TeamEventLeaderboardScore) GetSubscore() int64
- func (x *TeamEventLeaderboardScore) GetUpdateTimeSec() int64
- func (*TeamEventLeaderboardScore) ProtoMessage()
- func (x *TeamEventLeaderboardScore) ProtoReflect() protoreflect.Message
- func (x *TeamEventLeaderboardScore) Reset()
- func (x *TeamEventLeaderboardScore) String() string
- type TeamEventLeaderboardUpdate
- func (*TeamEventLeaderboardUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *TeamEventLeaderboardUpdate) GetConditionalMetadataUpdate() bool
- func (x *TeamEventLeaderboardUpdate) GetEventLeaderboardId() string
- func (x *TeamEventLeaderboardUpdate) GetId() string
- func (x *TeamEventLeaderboardUpdate) GetMetadata() string
- func (x *TeamEventLeaderboardUpdate) GetScore() int64
- func (x *TeamEventLeaderboardUpdate) GetSubscore() int64
- func (*TeamEventLeaderboardUpdate) ProtoMessage()
- func (x *TeamEventLeaderboardUpdate) ProtoReflect() protoreflect.Message
- func (x *TeamEventLeaderboardUpdate) Reset()
- func (x *TeamEventLeaderboardUpdate) String() string
- type TeamEventLeaderboards
- func (*TeamEventLeaderboards) Descriptor() ([]byte, []int)deprecated
- func (x *TeamEventLeaderboards) GetEventLeaderboards() []*TeamEventLeaderboard
- func (*TeamEventLeaderboards) ProtoMessage()
- func (x *TeamEventLeaderboards) ProtoReflect() protoreflect.Message
- func (x *TeamEventLeaderboards) Reset()
- func (x *TeamEventLeaderboards) String() string
- type TeamEventLeaderboardsConfig
- type TeamGetRequest
- type TeamGift
- func (*TeamGift) Descriptor() ([]byte, []int)deprecated
- func (x *TeamGift) GetAdditionalProperties() *structpb.Struct
- func (x *TeamGift) GetAvailableRewards() []*TeamGiftReward
- func (x *TeamGift) GetCanClaim() bool
- func (x *TeamGift) GetCanContribute() bool
- func (x *TeamGift) GetCategory() string
- func (x *TeamGift) GetContributionCost() *AvailableRewards
- func (x *TeamGift) GetContributionEndTimeSec() int64
- func (x *TeamGift) GetContributionReward() *AvailableRewards
- func (x *TeamGift) GetContributorRemainingCount() int64
- func (x *TeamGift) GetContributors() []*TeamGiftContributor
- func (x *TeamGift) GetCount() int64
- func (x *TeamGift) GetDescription() string
- func (x *TeamGift) GetEndTimeSec() int64
- func (x *TeamGift) GetId() string
- func (x *TeamGift) GetMaxContributorCount() int64
- func (x *TeamGift) GetMaxCount() int64
- func (x *TeamGift) GetName() string
- func (x *TeamGift) GetRewards() []*TeamGiftReward
- func (x *TeamGift) GetStartTimeSec() int64
- func (*TeamGift) ProtoMessage()
- func (x *TeamGift) ProtoReflect() protoreflect.Message
- func (x *TeamGift) Reset()
- func (x *TeamGift) String() string
- type TeamGiftClaimAck
- func (*TeamGiftClaimAck) Descriptor() ([]byte, []int)deprecated
- func (x *TeamGiftClaimAck) GetGift() *TeamGift
- func (x *TeamGiftClaimAck) GetRewards() []*Reward
- func (*TeamGiftClaimAck) ProtoMessage()
- func (x *TeamGiftClaimAck) ProtoReflect() protoreflect.Message
- func (x *TeamGiftClaimAck) Reset()
- func (x *TeamGiftClaimAck) String() string
- type TeamGiftClaimRequest
- func (*TeamGiftClaimRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamGiftClaimRequest) GetEndTimeSec() int64
- func (x *TeamGiftClaimRequest) GetGiftId() string
- func (x *TeamGiftClaimRequest) GetId() string
- func (*TeamGiftClaimRequest) ProtoMessage()
- func (x *TeamGiftClaimRequest) ProtoReflect() protoreflect.Message
- func (x *TeamGiftClaimRequest) Reset()
- func (x *TeamGiftClaimRequest) String() string
- type TeamGiftContributeAck
- func (*TeamGiftContributeAck) Descriptor() ([]byte, []int)deprecated
- func (x *TeamGiftContributeAck) GetCount() int64
- func (x *TeamGiftContributeAck) GetGift() *TeamGift
- func (x *TeamGiftContributeAck) GetReward() *Reward
- func (*TeamGiftContributeAck) ProtoMessage()
- func (x *TeamGiftContributeAck) ProtoReflect() protoreflect.Message
- func (x *TeamGiftContributeAck) Reset()
- func (x *TeamGiftContributeAck) String() string
- type TeamGiftContributeRequest
- func (*TeamGiftContributeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamGiftContributeRequest) GetCount() int64
- func (x *TeamGiftContributeRequest) GetGiftId() string
- func (x *TeamGiftContributeRequest) GetId() string
- func (*TeamGiftContributeRequest) ProtoMessage()
- func (x *TeamGiftContributeRequest) ProtoReflect() protoreflect.Message
- func (x *TeamGiftContributeRequest) Reset()
- func (x *TeamGiftContributeRequest) String() string
- type TeamGiftContributor
- func (*TeamGiftContributor) Descriptor() ([]byte, []int)deprecated
- func (x *TeamGiftContributor) GetAvatarUrl() string
- func (x *TeamGiftContributor) GetCount() int64
- func (x *TeamGiftContributor) GetCreateTimeSec() int64
- func (x *TeamGiftContributor) GetDisplayName() string
- func (x *TeamGiftContributor) GetUpdateTimeSec() int64
- func (x *TeamGiftContributor) GetUserId() string
- func (x *TeamGiftContributor) GetUsername() string
- func (*TeamGiftContributor) ProtoMessage()
- func (x *TeamGiftContributor) ProtoReflect() protoreflect.Message
- func (x *TeamGiftContributor) Reset()
- func (x *TeamGiftContributor) String() string
- type TeamGiftList
- type TeamGiftListRequest
- func (*TeamGiftListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamGiftListRequest) GetId() string
- func (*TeamGiftListRequest) ProtoMessage()
- func (x *TeamGiftListRequest) ProtoReflect() protoreflect.Message
- func (x *TeamGiftListRequest) Reset()
- func (x *TeamGiftListRequest) String() string
- type TeamGiftReward
- func (*TeamGiftReward) Descriptor() ([]byte, []int)deprecated
- func (x *TeamGiftReward) GetContributorReward() *AvailableRewards
- func (x *TeamGiftReward) GetMinCount() int64
- func (x *TeamGiftReward) GetNoncontributorReward() *AvailableRewards
- func (*TeamGiftReward) ProtoMessage()
- func (x *TeamGiftReward) ProtoReflect() protoreflect.Message
- func (x *TeamGiftReward) Reset()
- func (x *TeamGiftReward) String() string
- type TeamGiftsConfig
- type TeamGiftsConfigGift
- type TeamGiftsConfigGiftReward
- type TeamInventoryConsumeRequest
- func (*TeamInventoryConsumeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamInventoryConsumeRequest) GetId() string
- func (x *TeamInventoryConsumeRequest) GetInstances() map[string]int64
- func (x *TeamInventoryConsumeRequest) GetItems() map[string]int64
- func (x *TeamInventoryConsumeRequest) GetOverconsume() bool
- func (*TeamInventoryConsumeRequest) ProtoMessage()
- func (x *TeamInventoryConsumeRequest) ProtoReflect() protoreflect.Message
- func (x *TeamInventoryConsumeRequest) Reset()
- func (x *TeamInventoryConsumeRequest) String() string
- type TeamInventoryGrantRequest
- func (*TeamInventoryGrantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamInventoryGrantRequest) GetId() string
- func (x *TeamInventoryGrantRequest) GetItems() map[string]int64
- func (*TeamInventoryGrantRequest) ProtoMessage()
- func (x *TeamInventoryGrantRequest) ProtoReflect() protoreflect.Message
- func (x *TeamInventoryGrantRequest) Reset()
- func (x *TeamInventoryGrantRequest) String() string
- type TeamInventoryListRequest
- func (*TeamInventoryListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamInventoryListRequest) GetId() string
- func (x *TeamInventoryListRequest) GetItemCategory() string
- func (*TeamInventoryListRequest) ProtoMessage()
- func (x *TeamInventoryListRequest) ProtoReflect() protoreflect.Message
- func (x *TeamInventoryListRequest) Reset()
- func (x *TeamInventoryListRequest) String() string
- type TeamInventoryUpdateItemsRequest
- func (*TeamInventoryUpdateItemsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamInventoryUpdateItemsRequest) GetId() string
- func (x *TeamInventoryUpdateItemsRequest) GetItemUpdates() map[string]*InventoryUpdateItemProperties
- func (*TeamInventoryUpdateItemsRequest) ProtoMessage()
- func (x *TeamInventoryUpdateItemsRequest) ProtoReflect() protoreflect.Message
- func (x *TeamInventoryUpdateItemsRequest) Reset()
- func (x *TeamInventoryUpdateItemsRequest) String() string
- type TeamList
- type TeamListRequest
- func (*TeamListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamListRequest) GetCursor() string
- func (x *TeamListRequest) GetLimit() int32
- func (x *TeamListRequest) GetLocation() string
- func (*TeamListRequest) ProtoMessage()
- func (x *TeamListRequest) ProtoReflect() protoreflect.Message
- func (x *TeamListRequest) Reset()
- func (x *TeamListRequest) String() string
- type TeamMember
- type TeamMemberReward
- func (*TeamMemberReward) Descriptor() ([]byte, []int)deprecated
- func (x *TeamMemberReward) GetCurrencies() map[string]int64
- func (x *TeamMemberReward) GetEnergies() map[string]int32
- func (x *TeamMemberReward) GetEnergyModifiers() []*RewardEnergyModifier
- func (x *TeamMemberReward) GetGrantTimeSec() int64
- func (x *TeamMemberReward) GetItemInstances() map[string]*RewardInventoryItem
- func (x *TeamMemberReward) GetItems() map[string]int64
- func (x *TeamMemberReward) GetRewardModifiers() []*RewardModifier
- func (*TeamMemberReward) ProtoMessage()
- func (x *TeamMemberReward) ProtoReflect() protoreflect.Message
- func (x *TeamMemberReward) Reset()
- func (x *TeamMemberReward) String() string
- type TeamReward
- func (*TeamReward) Descriptor() ([]byte, []int)deprecated
- func (x *TeamReward) GetCurrencies() map[string]int64
- func (x *TeamReward) GetGrantTimeSec() int64
- func (x *TeamReward) GetItemInstances() map[string]*RewardInventoryItem
- func (x *TeamReward) GetItems() map[string]int64
- func (x *TeamReward) GetMemberReward() *TeamMemberReward
- func (x *TeamReward) GetMemberRewardModifiers() []*RewardModifier
- func (x *TeamReward) GetRewardModifiers() []*RewardModifier
- func (x *TeamReward) GetToMailboxExpirySec() int64
- func (*TeamReward) ProtoMessage()
- func (x *TeamReward) ProtoReflect() protoreflect.Message
- func (x *TeamReward) Reset()
- func (x *TeamReward) String() string
- type TeamRewardMailboxClaimRequest
- func (*TeamRewardMailboxClaimRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamRewardMailboxClaimRequest) GetDelete() bool
- func (x *TeamRewardMailboxClaimRequest) GetEntryId() string
- func (x *TeamRewardMailboxClaimRequest) GetId() string
- func (*TeamRewardMailboxClaimRequest) ProtoMessage()
- func (x *TeamRewardMailboxClaimRequest) ProtoReflect() protoreflect.Message
- func (x *TeamRewardMailboxClaimRequest) Reset()
- func (x *TeamRewardMailboxClaimRequest) String() string
- type TeamRewardMailboxConfig
- type TeamRewardMailboxDeleteRequest
- func (*TeamRewardMailboxDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamRewardMailboxDeleteRequest) GetEntryIds() []string
- func (x *TeamRewardMailboxDeleteRequest) GetId() string
- func (*TeamRewardMailboxDeleteRequest) ProtoMessage()
- func (x *TeamRewardMailboxDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *TeamRewardMailboxDeleteRequest) Reset()
- func (x *TeamRewardMailboxDeleteRequest) String() string
- type TeamRewardMailboxListRequest
- func (*TeamRewardMailboxListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamRewardMailboxListRequest) GetCursor() string
- func (x *TeamRewardMailboxListRequest) GetId() string
- func (x *TeamRewardMailboxListRequest) GetLimit() int64
- func (*TeamRewardMailboxListRequest) ProtoMessage()
- func (x *TeamRewardMailboxListRequest) ProtoReflect() protoreflect.Message
- func (x *TeamRewardMailboxListRequest) Reset()
- func (x *TeamRewardMailboxListRequest) String() string
- type TeamSearchRequest
- func (*TeamSearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamSearchRequest) GetInput() string
- func (x *TeamSearchRequest) GetLangTag() string
- func (x *TeamSearchRequest) GetLimit() int32
- func (x *TeamSearchRequest) GetMinActivity() int64
- func (*TeamSearchRequest) ProtoMessage()
- func (x *TeamSearchRequest) ProtoReflect() protoreflect.Message
- func (x *TeamSearchRequest) Reset()
- func (x *TeamSearchRequest) String() string
- type TeamStatListRequest
- func (*TeamStatListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamStatListRequest) GetId() string
- func (*TeamStatListRequest) ProtoMessage()
- func (x *TeamStatListRequest) ProtoReflect() protoreflect.Message
- func (x *TeamStatListRequest) Reset()
- func (x *TeamStatListRequest) String() string
- type TeamStatUpdateRequest
- func (*TeamStatUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamStatUpdateRequest) GetId() string
- func (x *TeamStatUpdateRequest) GetPrivate() []*StatUpdate
- func (x *TeamStatUpdateRequest) GetPublic() []*StatUpdate
- func (*TeamStatUpdateRequest) ProtoMessage()
- func (x *TeamStatUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *TeamStatUpdateRequest) Reset()
- func (x *TeamStatUpdateRequest) String() string
- type TeamStore
- func (*TeamStore) Descriptor() ([]byte, []int)deprecated
- func (x *TeamStore) GetActiveRewardModifiers() []*ActiveRewardModifier
- func (x *TeamStore) GetCurrentTimeSec() int64
- func (x *TeamStore) GetStoreItems() []*TeamStoreItem
- func (*TeamStore) ProtoMessage()
- func (x *TeamStore) ProtoReflect() protoreflect.Message
- func (x *TeamStore) Reset()
- func (x *TeamStore) String() string
- type TeamStoreItem
- func (*TeamStoreItem) Descriptor() ([]byte, []int)deprecated
- func (x *TeamStoreItem) GetAdditionalProperties() map[string]string
- func (x *TeamStoreItem) GetAvailableRewards() *AvailableRewards
- func (x *TeamStoreItem) GetCategory() string
- func (x *TeamStoreItem) GetCost() *TeamStoreItemCost
- func (x *TeamStoreItem) GetDescription() string
- func (x *TeamStoreItem) GetId() string
- func (x *TeamStoreItem) GetName() string
- func (x *TeamStoreItem) GetUnavailable() bool
- func (*TeamStoreItem) ProtoMessage()
- func (x *TeamStoreItem) ProtoReflect() protoreflect.Message
- func (x *TeamStoreItem) Reset()
- func (x *TeamStoreItem) String() string
- type TeamStoreItemCost
- func (*TeamStoreItemCost) Descriptor() ([]byte, []int)deprecated
- func (x *TeamStoreItemCost) GetCurrencies() map[string]int64
- func (*TeamStoreItemCost) ProtoMessage()
- func (x *TeamStoreItemCost) ProtoReflect() protoreflect.Message
- func (x *TeamStoreItemCost) Reset()
- func (x *TeamStoreItemCost) String() string
- type TeamStoreListRequest
- func (*TeamStoreListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamStoreListRequest) GetId() string
- func (*TeamStoreListRequest) ProtoMessage()
- func (x *TeamStoreListRequest) ProtoReflect() protoreflect.Message
- func (x *TeamStoreListRequest) Reset()
- func (x *TeamStoreListRequest) String() string
- type TeamStorePurchaseAck
- func (*TeamStorePurchaseAck) Descriptor() ([]byte, []int)deprecated
- func (x *TeamStorePurchaseAck) GetInventory() *Inventory
- func (x *TeamStorePurchaseAck) GetReward() *Reward
- func (x *TeamStorePurchaseAck) GetWallet() map[string]int64
- func (*TeamStorePurchaseAck) ProtoMessage()
- func (x *TeamStorePurchaseAck) ProtoReflect() protoreflect.Message
- func (x *TeamStorePurchaseAck) Reset()
- func (x *TeamStorePurchaseAck) String() string
- type TeamStorePurchaseRequest
- func (*TeamStorePurchaseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamStorePurchaseRequest) GetId() string
- func (x *TeamStorePurchaseRequest) GetItemId() string
- func (*TeamStorePurchaseRequest) ProtoMessage()
- func (x *TeamStorePurchaseRequest) ProtoReflect() protoreflect.Message
- func (x *TeamStorePurchaseRequest) Reset()
- func (x *TeamStorePurchaseRequest) String() string
- type TeamUpdateRequest
- func (*TeamUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamUpdateRequest) GetAvatarUrl() string
- func (x *TeamUpdateRequest) GetDesc() string
- func (x *TeamUpdateRequest) GetId() string
- func (x *TeamUpdateRequest) GetLangTag() string
- func (x *TeamUpdateRequest) GetMetadata() *structpb.Struct
- func (x *TeamUpdateRequest) GetName() string
- func (x *TeamUpdateRequest) GetOpen() bool
- func (*TeamUpdateRequest) ProtoMessage()
- func (x *TeamUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *TeamUpdateRequest) Reset()
- func (x *TeamUpdateRequest) String() string
- type TeamWallet
- func (*TeamWallet) Descriptor() ([]byte, []int)deprecated
- func (x *TeamWallet) GetCurrencies() map[string]int64
- func (x *TeamWallet) GetId() string
- func (x *TeamWallet) GetUpdateTimeSec() int64
- func (*TeamWallet) ProtoMessage()
- func (x *TeamWallet) ProtoReflect() protoreflect.Message
- func (x *TeamWallet) Reset()
- func (x *TeamWallet) String() string
- type TeamWalletGetRequest
- func (*TeamWalletGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamWalletGetRequest) GetId() string
- func (*TeamWalletGetRequest) ProtoMessage()
- func (x *TeamWalletGetRequest) ProtoReflect() protoreflect.Message
- func (x *TeamWalletGetRequest) Reset()
- func (x *TeamWalletGetRequest) String() string
- type TeamWalletGrantRequest
- func (*TeamWalletGrantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamWalletGrantRequest) GetCurrencies() map[string]int64
- func (x *TeamWalletGrantRequest) GetId() string
- func (*TeamWalletGrantRequest) ProtoMessage()
- func (x *TeamWalletGrantRequest) ProtoReflect() protoreflect.Message
- func (x *TeamWalletGrantRequest) Reset()
- func (x *TeamWalletGrantRequest) String() string
- type TeamWriteChatMessageRequest
- func (*TeamWriteChatMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TeamWriteChatMessageRequest) GetContent() string
- func (x *TeamWriteChatMessageRequest) GetId() string
- func (*TeamWriteChatMessageRequest) ProtoMessage()
- func (x *TeamWriteChatMessageRequest) ProtoReflect() protoreflect.Message
- func (x *TeamWriteChatMessageRequest) Reset()
- func (x *TeamWriteChatMessageRequest) String() string
- type TeamsAchievementsConfig
- type TeamsConfig
- type TeamsInventoryConfig
- type TeamsStatsConfig
- type TeamsSystem
- type TeamsWalletConfig
- type Tutorial
- func (*Tutorial) Descriptor() ([]byte, []int)deprecated
- func (x *Tutorial) GetAdditionalProperties() map[string]string
- func (x *Tutorial) GetCompleteTimeSec() int64
- func (x *Tutorial) GetCurrent() int32
- func (x *Tutorial) GetId() string
- func (x *Tutorial) GetMax() int32
- func (x *Tutorial) GetState() TutorialState
- func (x *Tutorial) GetUpdateTimeSec() int64
- func (*Tutorial) ProtoMessage()
- func (x *Tutorial) ProtoReflect() protoreflect.Message
- func (x *Tutorial) Reset()
- func (x *Tutorial) String() string
- type TutorialAbandonRequest
- func (*TutorialAbandonRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TutorialAbandonRequest) GetId() string
- func (*TutorialAbandonRequest) ProtoMessage()
- func (x *TutorialAbandonRequest) ProtoReflect() protoreflect.Message
- func (x *TutorialAbandonRequest) Reset()
- func (x *TutorialAbandonRequest) String() string
- type TutorialAcceptRequest
- func (*TutorialAcceptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TutorialAcceptRequest) GetId() string
- func (*TutorialAcceptRequest) ProtoMessage()
- func (x *TutorialAcceptRequest) ProtoReflect() protoreflect.Message
- func (x *TutorialAcceptRequest) Reset()
- func (x *TutorialAcceptRequest) String() string
- type TutorialDeclineRequest
- func (*TutorialDeclineRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TutorialDeclineRequest) GetId() string
- func (*TutorialDeclineRequest) ProtoMessage()
- func (x *TutorialDeclineRequest) ProtoReflect() protoreflect.Message
- func (x *TutorialDeclineRequest) Reset()
- func (x *TutorialDeclineRequest) String() string
- type TutorialList
- type TutorialResetRequest
- func (*TutorialResetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TutorialResetRequest) GetIds() []string
- func (*TutorialResetRequest) ProtoMessage()
- func (x *TutorialResetRequest) ProtoReflect() protoreflect.Message
- func (x *TutorialResetRequest) Reset()
- func (x *TutorialResetRequest) String() string
- type TutorialState
- func (TutorialState) Descriptor() protoreflect.EnumDescriptor
- func (x TutorialState) Enum() *TutorialState
- func (TutorialState) EnumDescriptor() ([]byte, []int)deprecated
- func (x TutorialState) Number() protoreflect.EnumNumber
- func (x TutorialState) String() string
- func (TutorialState) Type() protoreflect.EnumType
- type TutorialUpdateRequest
- func (*TutorialUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TutorialUpdateRequest) GetId() string
- func (x *TutorialUpdateRequest) GetStep() int32
- func (*TutorialUpdateRequest) ProtoMessage()
- func (x *TutorialUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *TutorialUpdateRequest) Reset()
- func (x *TutorialUpdateRequest) String() string
- type TutorialsConfig
- type TutorialsConfigTutorial
- type TutorialsSystem
- type Unlockable
- func (*Unlockable) Descriptor() ([]byte, []int)deprecated
- func (x *Unlockable) GetAdditionalProperties() map[string]string
- func (x *Unlockable) GetAdvanceTimeSec() int64
- func (x *Unlockable) GetAvailableRewards() *AvailableRewards
- func (x *Unlockable) GetCanClaim() bool
- func (x *Unlockable) GetCategory() string
- func (x *Unlockable) GetCost() *UnlockableCost
- func (x *Unlockable) GetCreateTimeSec() int64
- func (x *Unlockable) GetDescription() string
- func (x *Unlockable) GetId() string
- func (x *Unlockable) GetInstanceId() string
- func (x *Unlockable) GetName() string
- func (x *Unlockable) GetReward() *Reward
- func (x *Unlockable) GetStartCost() *UnlockableCost
- func (x *Unlockable) GetUnlockCompleteTimeSec() int64
- func (x *Unlockable) GetUnlockStartTimeSec() int64
- func (x *Unlockable) GetWaitTimeSec() int32
- func (*Unlockable) ProtoMessage()
- func (x *Unlockable) ProtoReflect() protoreflect.Message
- func (x *Unlockable) Reset()
- func (x *Unlockable) String() string
- type UnlockableCost
- func (*UnlockableCost) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockableCost) GetCurrencies() map[string]int64
- func (x *UnlockableCost) GetItems() map[string]int64
- func (*UnlockableCost) ProtoMessage()
- func (x *UnlockableCost) ProtoReflect() protoreflect.Message
- func (x *UnlockableCost) Reset()
- func (x *UnlockableCost) String() string
- type UnlockableSlotCost
- func (*UnlockableSlotCost) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockableSlotCost) GetCurrencies() map[string]int64
- func (x *UnlockableSlotCost) GetItems() map[string]int64
- func (*UnlockableSlotCost) ProtoMessage()
- func (x *UnlockableSlotCost) ProtoReflect() protoreflect.Message
- func (x *UnlockableSlotCost) Reset()
- func (x *UnlockableSlotCost) String() string
- type UnlockablesConfig
- type UnlockablesConfigSlotCost
- type UnlockablesConfigUnlockable
- type UnlockablesConfigUnlockableCost
- type UnlockablesConfigUnlockableStartCost
- type UnlockablesList
- func (*UnlockablesList) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockablesList) GetActiveSlots() int32
- func (x *UnlockablesList) GetInstanceId() string
- func (x *UnlockablesList) GetMaxActiveSlots() int32
- func (x *UnlockablesList) GetMaxQueuedUnlocks() int32
- func (x *UnlockablesList) GetOverflow() *Unlockable
- func (x *UnlockablesList) GetQueuedUnlocks() []string
- func (x *UnlockablesList) GetSlotCost() *UnlockableSlotCost
- func (x *UnlockablesList) GetSlots() int32
- func (x *UnlockablesList) GetUnlockables() []*Unlockable
- func (*UnlockablesList) ProtoMessage()
- func (x *UnlockablesList) ProtoReflect() protoreflect.Message
- func (x *UnlockablesList) Reset()
- func (x *UnlockablesList) String() string
- type UnlockablesQueueAddRequest
- func (*UnlockablesQueueAddRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockablesQueueAddRequest) GetInstanceIds() []string
- func (*UnlockablesQueueAddRequest) ProtoMessage()
- func (x *UnlockablesQueueAddRequest) ProtoReflect() protoreflect.Message
- func (x *UnlockablesQueueAddRequest) Reset()
- func (x *UnlockablesQueueAddRequest) String() string
- type UnlockablesQueueRemoveRequest
- func (*UnlockablesQueueRemoveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockablesQueueRemoveRequest) GetInstanceIds() []string
- func (*UnlockablesQueueRemoveRequest) ProtoMessage()
- func (x *UnlockablesQueueRemoveRequest) ProtoReflect() protoreflect.Message
- func (x *UnlockablesQueueRemoveRequest) Reset()
- func (x *UnlockablesQueueRemoveRequest) String() string
- type UnlockablesQueueSetRequest
- func (*UnlockablesQueueSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockablesQueueSetRequest) GetInstanceIds() []string
- func (*UnlockablesQueueSetRequest) ProtoMessage()
- func (x *UnlockablesQueueSetRequest) ProtoReflect() protoreflect.Message
- func (x *UnlockablesQueueSetRequest) Reset()
- func (x *UnlockablesQueueSetRequest) String() string
- type UnlockablesRequest
- func (*UnlockablesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockablesRequest) GetInstanceId() string
- func (*UnlockablesRequest) ProtoMessage()
- func (x *UnlockablesRequest) ProtoReflect() protoreflect.Message
- func (x *UnlockablesRequest) Reset()
- func (x *UnlockablesRequest) String() string
- type UnlockablesReward
- func (*UnlockablesReward) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockablesReward) GetAvailableRewards() *AvailableRewards
- func (x *UnlockablesReward) GetReward() *Reward
- func (x *UnlockablesReward) GetUnlockables() *UnlockablesList
- func (*UnlockablesReward) ProtoMessage()
- func (x *UnlockablesReward) ProtoReflect() protoreflect.Message
- func (x *UnlockablesReward) Reset()
- func (x *UnlockablesReward) String() string
- type UnlockablesSystem
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAppleId() string
- func (x *User) GetAvatarUrl() string
- func (x *User) GetCreateTimeSec() int64
- func (x *User) GetDisplayName() string
- func (x *User) GetEdgeCount() int32
- func (x *User) GetFacebookId() string
- func (x *User) GetFacebookInstantGameId() string
- func (x *User) GetGamecenterId() string
- func (x *User) GetGoogleId() string
- func (x *User) GetId() string
- func (x *User) GetLangTag() string
- func (x *User) GetLocation() string
- func (x *User) GetMetadata() string
- func (x *User) GetOnline() bool
- func (x *User) GetSteamId() string
- func (x *User) GetTimezone() string
- func (x *User) GetUpdateTime() int64
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserTeams
- type UserTeamsList
- type UserTeamsListRequest
- func (*UserTeamsListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserTeamsListRequest) GetUserIds() []string
- func (*UserTeamsListRequest) ProtoMessage()
- func (x *UserTeamsListRequest) ProtoReflect() protoreflect.Message
- func (x *UserTeamsListRequest) Reset()
- func (x *UserTeamsListRequest) String() string
- type UsernameOverrideFn
- type ValidateWriteScoreFn
Constants ¶
const ( MaxChallengesPerUserLimit = 100 MaxChallengeIndexEntries = 1_000 NotificationCodeChallengeInvite = -1000 )
const (
StoragePersonalizerCollectionDefault = "hiro_datadefinitions"
)
Variables ¶
var ( ErrAchievementsNotFound = runtime.NewError("achievement not found", 3) // INVALID_ARGUMENT ErrAchievementsAlreadyClaimed = runtime.NewError("achievement already claimed", 3) // INVALID_ARGUMENT ErrAchievementsNotComplete = runtime.NewError("achievement not complete", 3) // INVALID_ARGUMENT )
var ( ErrAuctionTemplateNotFound = runtime.NewError("auction template not found", 3) // INVALID_ARGUMENT ErrAuctionConditionNotFound = runtime.NewError("auction condition not found", 3) // INVALID_ARGUMENT ErrAuctionItemsInvalid = runtime.NewError("auction items invalid", 3) // INVALID_ARGUMENT ErrAuctionNotFound = runtime.NewError("auction not found", 3) // INVALID_ARGUMENT ErrAuctionVersionMismatch = runtime.NewError("auction version mismatch", 3) // INVALID_ARGUMENT ErrAuctionOwnBid = runtime.NewError("cannot bid on own auction", 3) // INVALID_ARGUMENT ErrAuctionAlreadyBid = runtime.NewError("already high bidder on auction", 3) // INVALID_ARGUMENT ErrAuctionNotStarted = runtime.NewError("auction not started", 3) // INVALID_ARGUMENT ErrAuctionEnded = runtime.NewError("auction ended", 3) // INVALID_ARGUMENT ErrAuctionBidInsufficient = runtime.NewError("auction bid insufficient", 3) // INVALID_ARGUMENT ErrAuctionBidInvalid = runtime.NewError("auction bid invalid", 3) // INVALID_ARGUMENT ErrAuctionCannotClaim = runtime.NewError("auction cannot be claimed", 3) // INVALID_ARGUMENT ErrAuctionCannotCancel = runtime.NewError("auction cannot be cancelled", 3) // INVALID_ARGUMENT )
var ( ErrInternal = runtime.NewError("internal error occurred", 13) // INTERNAL ErrBadInput = runtime.NewError("bad input", 3) // INVALID_ARGUMENT ErrFileNotFound = runtime.NewError("file not found", 3) ErrNoSessionUser = runtime.NewError("no user ID in session", 3) // INVALID_ARGUMENT ErrNoSessionID = runtime.NewError("no session ID in session", 3) // INVALID_ARGUMENT ErrNoSessionUsername = runtime.NewError("no username in session", 3) // INVALID_ARGUMENT ErrPayloadDecode = runtime.NewError("cannot decode json", 13) // INTERNAL ErrPayloadEmpty = runtime.NewError("payload should not be empty", 3) // INVALID_ARGUMENT ErrPayloadEncode = runtime.NewError("cannot encode json", 13) // INTERNAL ErrPayloadInvalid = runtime.NewError("payload is invalid", 3) // INVALID_ARGUMENT ErrSessionUser = runtime.NewError("user ID in session", 3) // INVALID_ARGUMENT ErrSystemNotAvailable = runtime.NewError("system not available", 13) // INTERNAL ErrSystemNotFound = runtime.NewError("system not found", 13) // INTERNAL ErrBaseProfanityCheckError = runtime.NewError("error checking message for profanity", 13) // INTERNAL ErrBaseProfanityFound = runtime.NewError("input contains profanity", 3) // INVALID_ARGUMENT )
var ( ErrChallengeNotFound = runtime.NewError("challenge not found", 3) // INVALID_ARGUMENT ErrChallengeUserNotFound = runtime.NewError("challenge user not found", 3) // INVALID_ARGUMENT ErrChallengeMaxAttemptsReached = runtime.NewError("challenge max attempts reached", 3) // INVALID_ARGUMENT ErrChallengeEnded = runtime.NewError("challenge ended", 3) // INVALID_ARGUMENT ErrChallengeNotStarted = runtime.NewError("challenge not started", 9) // FAILED_PRECONDITION ErrChallengeEmptyName = runtime.NewError("challenge name cannot be empty", 3) // INVALID_ARGUMENT ErrChallengeEmptyDescription = runtime.NewError("challenge description cannot be empty", 3) // INVALID_ARGUMENT ErrChallengeTemplateNotFound = runtime.NewError("challenge template not found", 3) // INVALID_ARGUMENT ErrChallengeStartDelayInvalid = runtime.NewError("challenge start delay invalid", 3) // INVALID_ARGUMENT ErrChallengeDurationInvalid = runtime.NewError("challenge duration invalid", 3) // INVALID_ARGUMENT ErrChallengeInvalidInvitees = runtime.NewError("challenge invitee list invalid", 3) // INVALID_ARGUMENT ErrTooManyInvitees = runtime.NewError("invitee list over participant limit", 3) // INVALID_ARGUMENT ErrChallengeInvalidMaxParticipants = runtime.NewError("max participants out of template range", 3) // INVALID_ARGUMENT ErrChallengeMaxParticipants = runtime.NewError("max participants reached", 3) // INVALID_ARGUMENT ErrChallengeRejected = runtime.NewError("challenge rejected", 3) // INVALID_ARGUMENT ErrChallengeNotJoined = runtime.NewError("challenge not joined", 9) // FAILED_PRECONDITION ErrChallengeNotComplete = runtime.NewError("challenge not complete", 3) // INVALID_ARGUMENT ErrChallengeInvalidOperator = runtime.NewError("challenge operator is invalid", 3) // INVALID_ARGUMENT ErrChallengeOwnerCannotLeave = runtime.NewError("owner cannot leave the challenge", 9) // FAILED_PRECONDITION ErrLimitInvalid = runtime.NewError(fmt.Sprintf("limit is invalid: > %d", MaxChallengeIndexEntries), 3) )
var ( ErrEconomyNoItem = runtime.NewError("item not found", 3) // INVALID_ARGUMENT ErrEconomyNoSku = runtime.NewError("sku not found", 3) // INVALID_ARGUMENT ErrEconomySkuInvalid = runtime.NewError("invalid sku", 3) // INVALID_ARGUMENT ErrEconomyNotEnoughCurrency = runtime.NewError("not enough currency for purchase", 3) // INVALID_ARGUMENT ErrEconomyNotEnoughItem = runtime.NewError("not enough item", 3) // INVALID_ARGUMENT ErrEconomyReceiptInvalid = runtime.NewError("invalid receipt", 3) // INVALID_ARGUMENT ErrEconomyReceiptDuplicate = runtime.NewError("duplicate receipt", 3) // INVALID_ARGUMENT ErrEconomyReceiptMismatch = runtime.NewError("mismatched product receipt", 3) // INVALID_ARGUMENT ErrEconomyNoPlacement = runtime.NewError("placement not found", 3) // INVALID_ARGUMENT ErrEconomyNoDonation = runtime.NewError("donation not found", 3) // INVALID_ARGUMENT ErrEconomyMaxDonation = runtime.NewError("donation maximum contribution reached", 3) // INVALID_ARGUMENT ErrEconomyClaimedDonation = runtime.NewError("donation already claimed", 3) // INVALID_ARGUMENT ErrInventoryNotInitialized = runtime.NewError("inventory not initialized for batch", 13) // INTERNAL ErrItemsNotConsumable = runtime.NewError("items not consumable", 3) // INVALID_ARGUMENT ErrItemsInsufficient = runtime.NewError("insufficient items", 9) // FAILED_PRECONDITION ErrCurrencyInsufficient = runtime.NewError("insufficient currency", 9) // FAILED_PRECONDITION )
var ( ErrEnergyNotFound = runtime.NewError("energy not found", 3) // INVALID_ARGUMENT ErrEnergyInsufficient = runtime.NewError("energy insufficient", 3) // INVALID_ARGUMENT ErrEnergyNoAmounts = runtime.NewError("energy amounts required", 3) // INVALID_ARGUMENT )
var ( ErrEventLeaderboardsNotFound = runtime.NewError("event leaderboard not found", 3) // INVALID_ARGUMENT ErrEventLeaderboardsAlreadyClaimed = runtime.NewError("event leaderboard already claimed", 3) // INVALID_ARGUMENT ErrEventLeaderboardsNotComplete = runtime.NewError("event leaderboard not complete", 3) // INVALID_ARGUMENT ErrEventLeaderboardsNotActive = runtime.NewError("event leaderboard not active", 3) // INVALID_ARGUMENT ErrEventLeaderboardsNotJoined = runtime.NewError("event leaderboard cohort not assigned", 9) // FAILED_PRECONDITION ErrEventLeaderboardsNotClaimed = runtime.NewError("event leaderboard not claimed", 3) // INVALID_ARGUMENT )
var ( RpcId_name = map[int32]string{}/* 126 elements not displayed */ RpcId_value = map[string]int32{}/* 126 elements not displayed */ )
Enum value maps for RpcId.
var ( RpcSocketId_name = map[int32]string{ 0: "RPC_SOCKET_ID_UNSPECIFIED", 1: "RPC_SOCKET_ID_AUCTIONS_FOLLOW", 2: "RPC_SOCKET_ID_AUCTIONS_BID", } RpcSocketId_value = map[string]int32{ "RPC_SOCKET_ID_UNSPECIFIED": 0, "RPC_SOCKET_ID_AUCTIONS_FOLLOW": 1, "RPC_SOCKET_ID_AUCTIONS_BID": 2, } )
Enum value maps for RpcSocketId.
var ( ProgressionPreconditionsOperator_name = map[int32]string{ 0: "PROGRESSION_PRECONDITIONS_OPERATOR_UNSPECIFIED", 1: "PROGRESSION_PRECONDITIONS_OPERATOR_AND", 2: "PROGRESSION_PRECONDITIONS_OPERATOR_OR", 3: "PROGRESSION_PRECONDITIONS_OPERATOR_XOR", 4: "PROGRESSION_PRECONDITIONS_OPERATOR_NOT", } ProgressionPreconditionsOperator_value = map[string]int32{ "PROGRESSION_PRECONDITIONS_OPERATOR_UNSPECIFIED": 0, "PROGRESSION_PRECONDITIONS_OPERATOR_AND": 1, "PROGRESSION_PRECONDITIONS_OPERATOR_OR": 2, "PROGRESSION_PRECONDITIONS_OPERATOR_XOR": 3, "PROGRESSION_PRECONDITIONS_OPERATOR_NOT": 4, } )
Enum value maps for ProgressionPreconditionsOperator.
var ( ProgressionDeltaState_name = map[int32]string{ 0: "PROGRESSION_DELTA_STATE_UNSPECIFIED", 1: "PROGRESSION_DELTA_STATE_UNCHANGED", 2: "PROGRESSION_DELTA_STATE_UNLOCKED", 3: "PROGRESSION_DELTA_STATE_LOCKED", } ProgressionDeltaState_value = map[string]int32{ "PROGRESSION_DELTA_STATE_UNSPECIFIED": 0, "PROGRESSION_DELTA_STATE_UNCHANGED": 1, "PROGRESSION_DELTA_STATE_UNLOCKED": 2, "PROGRESSION_DELTA_STATE_LOCKED": 3, } )
Enum value maps for ProgressionDeltaState.
var ( StatUpdateOperator_name = map[int32]string{ 0: "STAT_UPDATE_OPERATOR_UNSPECIFIED", 1: "STAT_UPDATE_OPERATOR_SET", 2: "STAT_UPDATE_OPERATOR_DELTA", 3: "STAT_UPDATE_OPERATOR_MIN", 4: "STAT_UPDATE_OPERATOR_MAX", } StatUpdateOperator_value = map[string]int32{ "STAT_UPDATE_OPERATOR_UNSPECIFIED": 0, "STAT_UPDATE_OPERATOR_SET": 1, "STAT_UPDATE_OPERATOR_DELTA": 2, "STAT_UPDATE_OPERATOR_MIN": 3, "STAT_UPDATE_OPERATOR_MAX": 4, } )
Enum value maps for StatUpdateOperator.
var ( EconomyStoreType_name = map[int32]string{ 0: "ECONOMY_STORE_TYPE_UNSPECIFIED", 1: "ECONOMY_STORE_TYPE_APPLE_APPSTORE", 2: "ECONOMY_STORE_TYPE_GOOGLE_PLAY", 3: "ECONOMY_STORE_TYPE_FBINSTANT", 4: "ECONOMY_STORE_TYPE_DISCORD", } EconomyStoreType_value = map[string]int32{ "ECONOMY_STORE_TYPE_UNSPECIFIED": 0, "ECONOMY_STORE_TYPE_APPLE_APPSTORE": 1, "ECONOMY_STORE_TYPE_GOOGLE_PLAY": 2, "ECONOMY_STORE_TYPE_FBINSTANT": 3, "ECONOMY_STORE_TYPE_DISCORD": 4, } )
Enum value maps for EconomyStoreType.
var ( IncentiveType_name = map[int32]string{ 0: "INCENTIVE_TYPE_UNSPECIFIED", 1: "INCENTIVE_TYPE_INVITE", } IncentiveType_value = map[string]int32{ "INCENTIVE_TYPE_UNSPECIFIED": 0, "INCENTIVE_TYPE_INVITE": 1, } )
Enum value maps for IncentiveType.
var ( ChallengeState_name = map[int32]string{ 0: "CHALLENGE_STATE_NONE", 1: "CHALLENGE_STATE_INVITED", 2: "CHALLENGE_STATE_JOINED", 3: "CHALLENGE_STATE_CLAIMED", 4: "CHALLENGE_STATE_DECLINED", 5: "CHALLENGE_STATE_LEFT", } ChallengeState_value = map[string]int32{ "CHALLENGE_STATE_NONE": 0, "CHALLENGE_STATE_INVITED": 1, "CHALLENGE_STATE_JOINED": 2, "CHALLENGE_STATE_CLAIMED": 3, "CHALLENGE_STATE_DECLINED": 4, "CHALLENGE_STATE_LEFT": 5, } )
Enum value maps for ChallengeState.
var ( TutorialState_name = map[int32]string{ 0: "TUTORIAL_STATE_NONE", 1: "TUTORIAL_STATE_ACCEPTED", 2: "TUTORIAL_STATE_DECLINED", 3: "TUTORIAL_STATE_IN_PROGRESS", 4: "TUTORIAL_STATE_COMPLETED", 5: "TUTORIAL_STATE_ABANDONED", } TutorialState_value = map[string]int32{ "TUTORIAL_STATE_NONE": 0, "TUTORIAL_STATE_ACCEPTED": 1, "TUTORIAL_STATE_DECLINED": 2, "TUTORIAL_STATE_IN_PROGRESS": 3, "TUTORIAL_STATE_COMPLETED": 4, "TUTORIAL_STATE_ABANDONED": 5, } )
Enum value maps for TutorialState.
var ( // The input proto message to the Nakama RPC. // // optional string input = 1000; E_Input = &file_hiro_proto_extTypes[0] // The output proto message of the Nakama RPC. // // optional string output = 1001; E_Output = &file_hiro_proto_extTypes[1] )
Extension fields to descriptorpb.EnumValueOptions.
var ( ErrIncentivesNotFound = runtime.NewError("incentive not found", 3) ErrIncentivesTooMany = runtime.NewError("incentive created too many times", 3) ErrIncentivesCodeNotFound = runtime.NewError("incentive code not found", 3) ErrIncentivesCodeExpired = runtime.NewError("incentive code expired", 3) ErrIncentivesCodeClaimed = runtime.NewError("incentive code already claimed", 3) )
var ( ErrProgressionNotFound = runtime.NewError("progression not found", 3) // INVALID_ARGUMENT ErrProgressionNotAvailablePurchase = runtime.NewError("progression not available to purchase", 3) // INVALID_ARGUMENT ErrProgressionNotAvailableUpdate = runtime.NewError("progression not available to update", 3) // INVALID_ARGUMENT ErrProgressionNoCost = runtime.NewError("progression no cost associated", 3) // INVALID_ARGUMENT ErrProgressionNoCount = runtime.NewError("progression no count associated", 3) // INVALID_ARGUMENT ErrProgressionAlreadyUnlocked = runtime.NewError("progression already unlocked", 3) // INVALID_ARGUMENT )
var ( ErrRewardMailboxEntryNotFound = runtime.NewError("reward mailbox entry not found", 3) // INVALID_ARGUMENT ErrRewardMailboxEntryAlreadyClaimed = runtime.NewError("reward mailbox entry already claimed", 3) // INVALID_ARGUMENT )
var ( ErrStatsNotFound = runtime.NewError("stats not found", 3) // INVALID_ARGUMENT ErrStatsUserNotFound = runtime.NewError("stats user not found", 3) // INVALID_ARGUMENT )
var ( ErrTeamAlreadyMember = runtime.NewError("already part of a team", 3) // INVALID_ARGUMENT ErrTeamGiftsMaxContributorCount = runtime.NewError("team gift max contributor count reached", 3) // INVALID_ARGUMENT ErrTeamGiftsMaxCount = runtime.NewError("team gift max count reached", 3) // INVALID_ARGUMENT ErrTeamGiftsNotActive = runtime.NewError("team gift not active", 3) // INVALID_ARGUMENT ErrTeamGiftsNotFound = runtime.NewError("team gift not found", 3) // INVALID_ARGUMENT ErrTeamMaxSizeExceeded = runtime.NewError("team max size exceeded", 3) // INVALID_ARGUMENT ErrTeamNotFound = runtime.NewError("team not found", 3) // INVALID_ARGUMENT ErrTeamsInitialMaxSizeInvalid = runtime.NewError("teams initial max size invalid", 3) // INVALID_ARGUMENT ErrTeamsMaxSizeInvalid = runtime.NewError("teams max size invalid", 3) // INVALID_ARGUMENT )
var ErrStreakResetInvalid = runtime.NewError("streak reset schedule invalid", 13)
var File_hiro_proto protoreflect.FileDescriptor
Functions ¶
func UnregisterDebugRpc ¶ added in v1.13.0
func UnregisterDebugRpc(initializer runtime.Initializer) error
UnregisterDebugRpc clears the implementation of ALL debug RPCs registered in Nakama by Hiro gameplay systems with a no-op version (http response 404). This is useful to remove debug RPCs if you do not want them to be callable by game clients:
hiro.UnregisterDebugRpc(initializer)
The behaviour of `initializer.RegisterRpc` in Nakama is last registration wins. It's recommended to use UnregisterDebugRpc only after `hiro.Init` has been executed.
func UnregisterRpc ¶ added in v1.11.0
func UnregisterRpc(initializer runtime.Initializer, ids ...RpcId) error
UnregisterRpc clears the implementation of one or more RPCs registered in Nakama by Hiro gameplay systems with a no-op version (http response 404). This is useful to remove individual RPCs which you do not want to be callable by game clients:
hiro.UnregisterRpc(initializer, hiro.RpcId_RPC_ID_ECONOMY_GRANT, hiro.RpcId_RPC_ID_INVENTORY_GRANT)
The behaviour of `initializer.RegisterRpc` in Nakama is last registration wins. It's recommended to use UnregisterRpc only after `hiro.Init` has been executed.
Types ¶
type Achievement ¶
type Achievement struct {
// The category to group the achievement together with others.
Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
// The UNIX timestamp for when the achievement reward was claimed, or zero if unclaimed.
ClaimTimeSec int64 `protobuf:"varint,2,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// The UNIX timestamp for when the achievement total reward was claimed, or zero if unclaimed.
TotalClaimTimeSec int64 `protobuf:"varint,3,opt,name=total_claim_time_sec,json=totalClaimTimeSec,proto3" json:"total_claim_time_sec,omitempty"`
// The count of the achievement.
Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
// The UNIX timestamp for the current server time.
CurrentTimeSec int64 `protobuf:"varint,5,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// A description of the achievement. May be an i18n code.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// The UNIX timestamp when this achievement will expire. This may be before its next reset. A zero means it does not expire.
ExpireTimeSec int64 `protobuf:"varint,7,opt,name=expire_time_sec,json=expireTimeSec,proto3" json:"expire_time_sec,omitempty"`
// The ID of the achievement.
Id string `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"`
// The maximum count of the achievement.
MaxCount int64 `protobuf:"varint,9,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"`
// The name of the achievement. May be an i18n code.
Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
// The IDs which are a precondition on the progress to be made on this achievement.
PreconditionIds []string `protobuf:"bytes,11,rep,name=precondition_ids,json=preconditionIds,proto3" json:"precondition_ids,omitempty"`
// The UNIX timestamp when this achievement will reset.
ResetTimeSec int64 `protobuf:"varint,12,opt,name=reset_time_sec,json=resetTimeSec,proto3" json:"reset_time_sec,omitempty"`
// The available reward and its probabilities.
AvailableRewards *AvailableRewards `protobuf:"bytes,13,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// The outcome (rolled) reward for the achievement.
Reward *Reward `protobuf:"bytes,14,opt,name=reward,proto3" json:"reward,omitempty"`
// The available reward and its probabilities for the total completion of the achievement, if any.
AvailableTotalReward *AvailableRewards `protobuf:"bytes,15,opt,name=available_total_reward,json=availableTotalReward,proto3" json:"available_total_reward,omitempty"`
// The outcome (rolled) reward for the total completion of the achievement, if any.
TotalReward *Reward `protobuf:"bytes,16,opt,name=total_reward,json=totalReward,proto3" json:"total_reward,omitempty"`
// The sub-achievements for this achievement, if any.
SubAchievements map[string]*SubAchievement `` /* 195-byte string literal not displayed */
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 210-byte string literal not displayed */
// Whether the achievement reward will be given automatically upon completion.
AutoClaim bool `protobuf:"varint,19,opt,name=auto_claim,json=autoClaim,proto3" json:"auto_claim,omitempty"`
// Whether the achievement total reward will be given automatically upon completing this and all sub-achievements.
AutoClaimTotal bool `protobuf:"varint,20,opt,name=auto_claim_total,json=autoClaimTotal,proto3" json:"auto_claim_total,omitempty"`
// Whether the achievement will reset after completion.
AutoReset bool `protobuf:"varint,21,opt,name=auto_reset,json=autoReset,proto3" json:"auto_reset,omitempty"`
// The UNIX timestamp when this achievement will allow updates. This may be before its next reset. A zero means it is immediately available.
StartTimeSec int64 `protobuf:"varint,22,opt,name=start_time_sec,json=startTimeSec,proto3" json:"start_time_sec,omitempty"`
// The UNIX timestamp when this achievement will allow updates. This may be before its next reset. A zero means it does not end.
EndTimeSec int64 `protobuf:"varint,23,opt,name=end_time_sec,json=endTimeSec,proto3" json:"end_time_sec,omitempty"`
// The UNIX timestamp when this achievement was last updated.
UpdateTimeSec int64 `protobuf:"varint,24,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// True if the achievement is in an active period, false otherwise.
IsActive bool `protobuf:"varint,25,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
// contains filtered or unexported fields
}
An achievement which is a numeric task which can be unlocked and has an optional reward.
func (*Achievement) Descriptor
deprecated
func (*Achievement) Descriptor() ([]byte, []int)
Deprecated: Use Achievement.ProtoReflect.Descriptor instead.
func (*Achievement) GetAdditionalProperties ¶
func (x *Achievement) GetAdditionalProperties() map[string]string
func (*Achievement) GetAutoClaim ¶ added in v1.15.0
func (x *Achievement) GetAutoClaim() bool
func (*Achievement) GetAutoClaimTotal ¶ added in v1.15.0
func (x *Achievement) GetAutoClaimTotal() bool
func (*Achievement) GetAutoReset ¶ added in v1.15.0
func (x *Achievement) GetAutoReset() bool
func (*Achievement) GetAvailableRewards ¶
func (x *Achievement) GetAvailableRewards() *AvailableRewards
func (*Achievement) GetAvailableTotalReward ¶
func (x *Achievement) GetAvailableTotalReward() *AvailableRewards
func (*Achievement) GetCategory ¶
func (x *Achievement) GetCategory() string
func (*Achievement) GetClaimTimeSec ¶
func (x *Achievement) GetClaimTimeSec() int64
func (*Achievement) GetCount ¶
func (x *Achievement) GetCount() int64
func (*Achievement) GetCurrentTimeSec ¶
func (x *Achievement) GetCurrentTimeSec() int64
func (*Achievement) GetDescription ¶
func (x *Achievement) GetDescription() string
func (*Achievement) GetEndTimeSec ¶ added in v1.20.0
func (x *Achievement) GetEndTimeSec() int64
func (*Achievement) GetExpireTimeSec ¶
func (x *Achievement) GetExpireTimeSec() int64
func (*Achievement) GetId ¶
func (x *Achievement) GetId() string
func (*Achievement) GetIsActive ¶ added in v1.29.0
func (x *Achievement) GetIsActive() bool
func (*Achievement) GetMaxCount ¶
func (x *Achievement) GetMaxCount() int64
func (*Achievement) GetName ¶
func (x *Achievement) GetName() string
func (*Achievement) GetPreconditionIds ¶
func (x *Achievement) GetPreconditionIds() []string
func (*Achievement) GetResetTimeSec ¶
func (x *Achievement) GetResetTimeSec() int64
func (*Achievement) GetReward ¶
func (x *Achievement) GetReward() *Reward
func (*Achievement) GetStartTimeSec ¶ added in v1.20.0
func (x *Achievement) GetStartTimeSec() int64
func (*Achievement) GetSubAchievements ¶
func (x *Achievement) GetSubAchievements() map[string]*SubAchievement
func (*Achievement) GetTotalClaimTimeSec ¶
func (x *Achievement) GetTotalClaimTimeSec() int64
func (*Achievement) GetTotalReward ¶
func (x *Achievement) GetTotalReward() *Reward
func (*Achievement) GetUpdateTimeSec ¶ added in v1.29.0
func (x *Achievement) GetUpdateTimeSec() int64
func (*Achievement) ProtoMessage ¶
func (*Achievement) ProtoMessage()
func (*Achievement) ProtoReflect ¶
func (x *Achievement) ProtoReflect() protoreflect.Message
func (*Achievement) Reset ¶
func (x *Achievement) Reset()
func (*Achievement) String ¶
func (x *Achievement) String() string
type AchievementList ¶
type AchievementList struct {
// The one off achievements which can be progressed or are unlocked by the user alongside all on the server.
Achievements map[string]*Achievement `` /* 165-byte string literal not displayed */
// The repeat achievements which can be progressed or are unlocked by the user alongside all on the server.
RepeatAchievements map[string]*Achievement `` /* 203-byte string literal not displayed */
// contains filtered or unexported fields
}
The achievements returned by the server.
func (*AchievementList) Descriptor
deprecated
func (*AchievementList) Descriptor() ([]byte, []int)
Deprecated: Use AchievementList.ProtoReflect.Descriptor instead.
func (*AchievementList) GetAchievements ¶
func (x *AchievementList) GetAchievements() map[string]*Achievement
func (*AchievementList) GetRepeatAchievements ¶
func (x *AchievementList) GetRepeatAchievements() map[string]*Achievement
func (*AchievementList) ProtoMessage ¶
func (*AchievementList) ProtoMessage()
func (*AchievementList) ProtoReflect ¶
func (x *AchievementList) ProtoReflect() protoreflect.Message
func (*AchievementList) Reset ¶
func (x *AchievementList) Reset()
func (*AchievementList) String ¶
func (x *AchievementList) String() string
type AchievementsClaimRequest ¶
type AchievementsClaimRequest struct {
// The set of achievement IDs to claim.
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// Whether or not to claim the total reward as well, if available.
ClaimTotalReward bool `protobuf:"varint,2,opt,name=claim_total_reward,json=claimTotalReward,proto3" json:"claim_total_reward,omitempty"`
// contains filtered or unexported fields
}
Claim rewards with one or more achievement on the server.
func (*AchievementsClaimRequest) Descriptor
deprecated
func (*AchievementsClaimRequest) Descriptor() ([]byte, []int)
Deprecated: Use AchievementsClaimRequest.ProtoReflect.Descriptor instead.
func (*AchievementsClaimRequest) GetClaimTotalReward ¶
func (x *AchievementsClaimRequest) GetClaimTotalReward() bool
func (*AchievementsClaimRequest) GetIds ¶
func (x *AchievementsClaimRequest) GetIds() []string
func (*AchievementsClaimRequest) ProtoMessage ¶
func (*AchievementsClaimRequest) ProtoMessage()
func (*AchievementsClaimRequest) ProtoReflect ¶
func (x *AchievementsClaimRequest) ProtoReflect() protoreflect.Message
func (*AchievementsClaimRequest) Reset ¶
func (x *AchievementsClaimRequest) Reset()
func (*AchievementsClaimRequest) String ¶
func (x *AchievementsClaimRequest) String() string
type AchievementsConfig ¶
type AchievementsConfig struct {
Achievements map[string]*AchievementsConfigAchievement `json:"achievements,omitempty"`
}
AchievementsConfig is the data definition for the TutorialsSystem type.
type AchievementsConfigAchievement ¶
type AchievementsConfigAchievement struct {
AutoClaim bool `json:"auto_claim,omitempty"`
AutoClaimTotal bool `json:"auto_claim_total,omitempty"`
AutoReset bool `json:"auto_reset,omitempty"`
Category string `json:"category,omitempty"`
Count int64 `json:"count,omitempty"`
Description string `json:"description,omitempty"`
StartTimeSec int64 `json:"start_time_sec,omitempty"`
EndTimeSec int64 `json:"end_time_sec,omitempty"`
ResetCronexpr string `json:"reset_cronexpr,omitempty"`
TimeOffsetSec int64 `json:"time_offset_sec,omitempty"`
DurationSec int64 `json:"duration_sec,omitempty"`
MaxCount int64 `json:"max_count,omitempty"`
Name string `json:"name,omitempty"`
PreconditionIDs []string `json:"precondition_ids,omitempty"`
Reward *EconomyConfigReward `json:"reward,omitempty"`
TotalReward *EconomyConfigReward `json:"total_reward,omitempty"`
SubAchievements map[string]*AchievementsConfigSubAchievement `json:"sub_achievements,omitempty"`
AdditionalProperties map[string]string `json:"additional_properties,omitempty"`
}
type AchievementsConfigSubAchievement ¶
type AchievementsConfigSubAchievement struct {
AutoClaim bool `json:"auto_claim,omitempty"`
AutoReset bool `json:"auto_reset,omitempty"`
Category string `json:"category,omitempty"`
Count int64 `json:"count,omitempty"`
Description string `json:"description,omitempty"`
ResetCronexpr string `json:"reset_cronexpr,omitempty"`
TimeOffsetSec int64 `json:"time_offset_sec,omitempty"`
DurationSec int64 `json:"duration_sec,omitempty"`
MaxCount int64 `json:"max_count,omitempty"`
Name string `json:"name,omitempty"`
PreconditionIDs []string `json:"precondition_ids,omitempty"`
Reward *EconomyConfigReward `json:"reward,omitempty"`
AdditionalProperties map[string]string `json:"additional_properties,omitempty"`
}
type AchievementsGetRequest ¶
type AchievementsGetRequest struct {
// contains filtered or unexported fields
}
Get all achievements for the user alongside all on the server.
func (*AchievementsGetRequest) Descriptor
deprecated
func (*AchievementsGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use AchievementsGetRequest.ProtoReflect.Descriptor instead.
func (*AchievementsGetRequest) ProtoMessage ¶
func (*AchievementsGetRequest) ProtoMessage()
func (*AchievementsGetRequest) ProtoReflect ¶
func (x *AchievementsGetRequest) ProtoReflect() protoreflect.Message
func (*AchievementsGetRequest) Reset ¶
func (x *AchievementsGetRequest) Reset()
func (*AchievementsGetRequest) String ¶
func (x *AchievementsGetRequest) String() string
type AchievementsSystem ¶
type AchievementsSystem interface {
System
// ClaimAchievements when one or more achievements whose progress has completed by their IDs.
ClaimAchievements(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, achievementIDs []string, claimTotal bool) (achievements map[string]*Achievement, repeatAchievements map[string]*Achievement, err error)
// GetAchievements returns all achievements available to the user and progress on them.
GetAchievements(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string) (achievements map[string]*Achievement, repeatAchievements map[string]*Achievement, err error)
// UpdateAchievements updates progress on one or more achievements by the same amount.
UpdateAchievements(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, achievementUpdates map[string]int64) (achievements map[string]*Achievement, repeatAchievements map[string]*Achievement, err error)
// SetOnAchievementReward sets a custom reward function which will run after an achievement's reward is rolled.
SetOnAchievementReward(fn OnReward[*AchievementsConfigAchievement])
// SetOnSubAchievementReward sets a custom reward function which will run after a sub-achievement's reward is
// rolled.
SetOnSubAchievementReward(fn OnReward[*AchievementsConfigSubAchievement])
// SetOnAchievementTotalReward sets a custom reward function which will run after an achievement's total reward is
// rolled.
SetOnAchievementTotalReward(fn OnReward[*AchievementsConfigAchievement])
}
An AchievementsSystem is a gameplay system which represents one-off, repeat, preconditioned, and sub-achievements.
type AchievementsUpdateAck ¶
type AchievementsUpdateAck struct {
// The one off achievements which can be progressed or are unlocked by the user.
Achievements map[string]*Achievement `` /* 165-byte string literal not displayed */
// The repeat achievements which can be progressed or are unlocked by the user.
RepeatAchievements map[string]*Achievement `` /* 203-byte string literal not displayed */
// contains filtered or unexported fields
}
A response when an achievements update is acknowledged by the server.
func (*AchievementsUpdateAck) Descriptor
deprecated
func (*AchievementsUpdateAck) Descriptor() ([]byte, []int)
Deprecated: Use AchievementsUpdateAck.ProtoReflect.Descriptor instead.
func (*AchievementsUpdateAck) GetAchievements ¶
func (x *AchievementsUpdateAck) GetAchievements() map[string]*Achievement
func (*AchievementsUpdateAck) GetRepeatAchievements ¶
func (x *AchievementsUpdateAck) GetRepeatAchievements() map[string]*Achievement
func (*AchievementsUpdateAck) ProtoMessage ¶
func (*AchievementsUpdateAck) ProtoMessage()
func (*AchievementsUpdateAck) ProtoReflect ¶
func (x *AchievementsUpdateAck) ProtoReflect() protoreflect.Message
func (*AchievementsUpdateAck) Reset ¶
func (x *AchievementsUpdateAck) Reset()
func (*AchievementsUpdateAck) String ¶
func (x *AchievementsUpdateAck) String() string
type AchievementsUpdateRequest ¶
type AchievementsUpdateRequest struct {
// The set of achievement IDs to progress.
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// The amount of progress to increment on the achievements.
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
// Achievements with different amounts.
Achievements map[string]int64 `` /* 166-byte string literal not displayed */
// contains filtered or unexported fields
}
Update progress on one or more achievements on the server.
func (*AchievementsUpdateRequest) Descriptor
deprecated
func (*AchievementsUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AchievementsUpdateRequest.ProtoReflect.Descriptor instead.
func (*AchievementsUpdateRequest) GetAchievements ¶ added in v1.8.0
func (x *AchievementsUpdateRequest) GetAchievements() map[string]int64
func (*AchievementsUpdateRequest) GetAmount ¶
func (x *AchievementsUpdateRequest) GetAmount() int64
func (*AchievementsUpdateRequest) GetIds ¶
func (x *AchievementsUpdateRequest) GetIds() []string
func (*AchievementsUpdateRequest) ProtoMessage ¶
func (*AchievementsUpdateRequest) ProtoMessage()
func (*AchievementsUpdateRequest) ProtoReflect ¶
func (x *AchievementsUpdateRequest) ProtoReflect() protoreflect.Message
func (*AchievementsUpdateRequest) Reset ¶
func (x *AchievementsUpdateRequest) Reset()
func (*AchievementsUpdateRequest) String ¶
func (x *AchievementsUpdateRequest) String() string
type ActiveRewardModifier ¶ added in v1.15.0
type ActiveRewardModifier struct {
// The ID of the reward content to modify.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The type of reward content to modify.
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// The operator to apply.
Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
// The value to apply. Its behavior depends on the operator.
Value int64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"`
// The start time when this reward modifier was activated.
StartTimeSec int64 `protobuf:"varint,5,opt,name=start_time_sec,json=startTimeSec,proto3" json:"start_time_sec,omitempty"`
// The time when this reward modifier will expire.
EndTimeSec int64 `protobuf:"varint,6,opt,name=end_time_sec,json=endTimeSec,proto3" json:"end_time_sec,omitempty"`
// contains filtered or unexported fields
}
A reward modifier that is currently active.
func (*ActiveRewardModifier) Descriptor
deprecated
added in
v1.15.0
func (*ActiveRewardModifier) Descriptor() ([]byte, []int)
Deprecated: Use ActiveRewardModifier.ProtoReflect.Descriptor instead.
func (*ActiveRewardModifier) GetEndTimeSec ¶ added in v1.15.0
func (x *ActiveRewardModifier) GetEndTimeSec() int64
func (*ActiveRewardModifier) GetId ¶ added in v1.15.0
func (x *ActiveRewardModifier) GetId() string
func (*ActiveRewardModifier) GetOperator ¶ added in v1.15.0
func (x *ActiveRewardModifier) GetOperator() string
func (*ActiveRewardModifier) GetStartTimeSec ¶ added in v1.15.0
func (x *ActiveRewardModifier) GetStartTimeSec() int64
func (*ActiveRewardModifier) GetType ¶ added in v1.15.0
func (x *ActiveRewardModifier) GetType() string
func (*ActiveRewardModifier) GetValue ¶ added in v1.15.0
func (x *ActiveRewardModifier) GetValue() int64
func (*ActiveRewardModifier) ProtoMessage ¶ added in v1.15.0
func (*ActiveRewardModifier) ProtoMessage()
func (*ActiveRewardModifier) ProtoReflect ¶ added in v1.15.0
func (x *ActiveRewardModifier) ProtoReflect() protoreflect.Message
func (*ActiveRewardModifier) Reset ¶ added in v1.15.0
func (x *ActiveRewardModifier) Reset()
func (*ActiveRewardModifier) String ¶ added in v1.15.0
func (x *ActiveRewardModifier) String() string
type ActivityCalculator ¶ added in v1.26.0
type ActivityCalculator func(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userIDs []string) map[string]int64
ActivityCalculator specifies a function used to resolve an activity score for some set of users. Users not in the returned map are assumed to have an activity score of 0. Higher activity values should generally be used to indicate more active users. Individual user activity scores may be used to compute a team activity score for any teams the user is part of.
type AfterAuthenticateFn ¶ added in v1.3.0
type Auction ¶ added in v1.18.0
type Auction struct {
// Unique identifier for this auction.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Identifier of the user that created this auction.
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// Item(s) being auctioned.
Reward *AuctionReward `protobuf:"bytes,3,opt,name=reward,proto3" json:"reward,omitempty"`
// Fees associated, to be deducted when the creator claims the winning bid.
Fee *AuctionFee `protobuf:"bytes,4,opt,name=fee,proto3" json:"fee,omitempty"`
// Version hash of this auction data, used to ensure operations act on latest known state.
Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
// Current highest bid, if any.
Bid *AuctionBid `protobuf:"bytes,6,opt,name=bid,proto3" json:"bid,omitempty"`
// Minimum next bid amount.
BidNext *AuctionBidAmount `protobuf:"bytes,7,opt,name=bid_next,json=bidNext,proto3" json:"bid_next,omitempty"`
// Auction duration in seconds, including any extensions.
DurationSec int64 `protobuf:"varint,8,opt,name=duration_sec,json=durationSec,proto3" json:"duration_sec,omitempty"`
// Original auction duration in seconds, not counting any extension time.
OriginalDurationSec int64 `protobuf:"varint,9,opt,name=original_duration_sec,json=originalDurationSec,proto3" json:"original_duration_sec,omitempty"`
// Additional time added so far to the original duration.
ExtensionAddedSec int64 `protobuf:"varint,10,opt,name=extension_added_sec,json=extensionAddedSec,proto3" json:"extension_added_sec,omitempty"`
// Threshold before end of auction where a bid would extend the time.
ExtensionThresholdSec int64 `` /* 128-byte string literal not displayed */
// Extra time that would be added if a bid is placed within the threshold before the auction ends.
ExtensionSec int64 `protobuf:"varint,12,opt,name=extension_sec,json=extensionSec,proto3" json:"extension_sec,omitempty"`
// Maximum total number of seconds the auction can be extended by.
ExtensionMaxSec int64 `protobuf:"varint,13,opt,name=extension_max_sec,json=extensionMaxSec,proto3" json:"extension_max_sec,omitempty"`
// Extra time still available.
ExtensionRemainingSec int64 `` /* 128-byte string literal not displayed */
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the auction was created.
CreateTimeSec int64 `protobuf:"varint,15,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the current bid was updated, for example by placing a new bid.
UpdateTimeSec int64 `protobuf:"varint,16,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the auction starts.
StartTimeSec int64 `protobuf:"varint,17,opt,name=start_time_sec,json=startTimeSec,proto3" json:"start_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the auction ends.
EndTimeSec int64 `protobuf:"varint,18,opt,name=end_time_sec,json=endTimeSec,proto3" json:"end_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the auction was originally intended to end, not counting extensions.
OriginalEndTimeSec int64 `protobuf:"varint,19,opt,name=original_end_time_sec,json=originalEndTimeSec,proto3" json:"original_end_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the auction was cancelled, if any.
CancelTimeSec int64 `protobuf:"varint,20,opt,name=cancel_time_sec,json=cancelTimeSec,proto3" json:"cancel_time_sec,omitempty"`
// The current UNIX time (for gRPC clients) or ISO string (for REST clients) on the server.
CurrentTimeSec int64 `protobuf:"varint,21,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the owner claimed the successful bid amount.
OwnerClaimSec int64 `protobuf:"varint,22,opt,name=owner_claim_sec,json=ownerClaimSec,proto3" json:"owner_claim_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the winning bidder claimed the auction reward.
WinnerClaimSec int64 `protobuf:"varint,23,opt,name=winner_claim_sec,json=winnerClaimSec,proto3" json:"winner_claim_sec,omitempty"`
// Indicates if the auction has started from the server perspective.
HasStarted bool `protobuf:"varint,24,opt,name=has_started,json=hasStarted,proto3" json:"has_started,omitempty"`
// Indicates if the auction has ended from the server perspective.
HasEnded bool `protobuf:"varint,25,opt,name=has_ended,json=hasEnded,proto3" json:"has_ended,omitempty"`
// Indicates if the caller can bid on this auction.
CanBid bool `protobuf:"varint,26,opt,name=can_bid,json=canBid,proto3" json:"can_bid,omitempty"`
// Indicates if the caller can claim a reward from this auction, either the reward or winning bid.
CanClaim bool `protobuf:"varint,27,opt,name=can_claim,json=canClaim,proto3" json:"can_claim,omitempty"`
// Indicates if the auction can be cancelled by its creator.
CanCancel bool `protobuf:"varint,28,opt,name=can_cancel,json=canCancel,proto3" json:"can_cancel,omitempty"`
// First bid placed on this auction.
BidFirst *AuctionBid `protobuf:"bytes,29,opt,name=bid_first,json=bidFirst,proto3" json:"bid_first,omitempty"`
// Most recent set of bids placed on this auction, ordered from newest to oldest retained.
BidHistory []*AuctionBid `protobuf:"bytes,30,rep,name=bid_history,json=bidHistory,proto3" json:"bid_history,omitempty"`
// contains filtered or unexported fields
}
An individual auction listing.
func (*Auction) Descriptor
deprecated
added in
v1.18.0
func (*Auction) GetBid ¶ added in v1.18.0
func (x *Auction) GetBid() *AuctionBid
func (*Auction) GetBidFirst ¶ added in v1.21.0
func (x *Auction) GetBidFirst() *AuctionBid
func (*Auction) GetBidHistory ¶ added in v1.21.0
func (x *Auction) GetBidHistory() []*AuctionBid
func (*Auction) GetBidNext ¶ added in v1.18.0
func (x *Auction) GetBidNext() *AuctionBidAmount
func (*Auction) GetCanCancel ¶ added in v1.18.0
func (*Auction) GetCanClaim ¶ added in v1.18.0
func (*Auction) GetCancelTimeSec ¶ added in v1.18.0
func (*Auction) GetCreateTimeSec ¶ added in v1.18.0
func (*Auction) GetCurrentTimeSec ¶ added in v1.18.0
func (*Auction) GetDurationSec ¶ added in v1.18.0
func (*Auction) GetEndTimeSec ¶ added in v1.18.0
func (*Auction) GetExtensionAddedSec ¶ added in v1.18.0
func (*Auction) GetExtensionMaxSec ¶ added in v1.18.0
func (*Auction) GetExtensionRemainingSec ¶ added in v1.18.0
func (*Auction) GetExtensionSec ¶ added in v1.18.0
func (*Auction) GetExtensionThresholdSec ¶ added in v1.18.0
func (*Auction) GetFee ¶ added in v1.18.0
func (x *Auction) GetFee() *AuctionFee
func (*Auction) GetHasEnded ¶ added in v1.18.0
func (*Auction) GetHasStarted ¶ added in v1.18.0
func (*Auction) GetOriginalDurationSec ¶ added in v1.18.0
func (*Auction) GetOriginalEndTimeSec ¶ added in v1.18.0
func (*Auction) GetOwnerClaimSec ¶ added in v1.18.0
func (*Auction) GetReward ¶ added in v1.18.0
func (x *Auction) GetReward() *AuctionReward
func (*Auction) GetStartTimeSec ¶ added in v1.18.0
func (*Auction) GetUpdateTimeSec ¶ added in v1.18.0
func (*Auction) GetVersion ¶ added in v1.18.0
func (*Auction) GetWinnerClaimSec ¶ added in v1.18.0
func (*Auction) ProtoMessage ¶ added in v1.18.0
func (*Auction) ProtoMessage()
func (*Auction) ProtoReflect ¶ added in v1.18.0
func (x *Auction) ProtoReflect() protoreflect.Message
type AuctionBid ¶ added in v1.18.0
type AuctionBid struct {
// The user ID of the bidder.
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// Amount(s) placed as a bid.
Bid *AuctionBidAmount `protobuf:"bytes,2,opt,name=bid,proto3" json:"bid,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the bid was placed.
CreateTimeSec int64 `protobuf:"varint,3,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// contains filtered or unexported fields
}
Represents a bid on an auction.
func (*AuctionBid) Descriptor
deprecated
added in
v1.18.0
func (*AuctionBid) Descriptor() ([]byte, []int)
Deprecated: Use AuctionBid.ProtoReflect.Descriptor instead.
func (*AuctionBid) GetBid ¶ added in v1.18.0
func (x *AuctionBid) GetBid() *AuctionBidAmount
func (*AuctionBid) GetCreateTimeSec ¶ added in v1.18.0
func (x *AuctionBid) GetCreateTimeSec() int64
func (*AuctionBid) GetUserId ¶ added in v1.18.0
func (x *AuctionBid) GetUserId() string
func (*AuctionBid) ProtoMessage ¶ added in v1.18.0
func (*AuctionBid) ProtoMessage()
func (*AuctionBid) ProtoReflect ¶ added in v1.18.0
func (x *AuctionBid) ProtoReflect() protoreflect.Message
func (*AuctionBid) Reset ¶ added in v1.18.0
func (x *AuctionBid) Reset()
func (*AuctionBid) String ¶ added in v1.18.0
func (x *AuctionBid) String() string
type AuctionBidAmount ¶ added in v1.18.0
type AuctionBidAmount struct {
// Currencies required or placed as part of the bid.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// contains filtered or unexported fields
}
Bid amount associated with an auction.
func (*AuctionBidAmount) Descriptor
deprecated
added in
v1.18.0
func (*AuctionBidAmount) Descriptor() ([]byte, []int)
Deprecated: Use AuctionBidAmount.ProtoReflect.Descriptor instead.
func (*AuctionBidAmount) GetCurrencies ¶ added in v1.18.0
func (x *AuctionBidAmount) GetCurrencies() map[string]int64
func (*AuctionBidAmount) ProtoMessage ¶ added in v1.18.0
func (*AuctionBidAmount) ProtoMessage()
func (*AuctionBidAmount) ProtoReflect ¶ added in v1.18.0
func (x *AuctionBidAmount) ProtoReflect() protoreflect.Message
func (*AuctionBidAmount) Reset ¶ added in v1.18.0
func (x *AuctionBidAmount) Reset()
func (*AuctionBidAmount) String ¶ added in v1.18.0
func (x *AuctionBidAmount) String() string
type AuctionBidRequest ¶ added in v1.18.0
type AuctionBidRequest struct {
// Unique auction identifier to bid on.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The last seen version hash of the auction.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Bid amounts to place, must at least match the minimum next bid.
Bid *AuctionBidAmount `protobuf:"bytes,3,opt,name=bid,proto3" json:"bid,omitempty"`
// contains filtered or unexported fields
}
Request to place a bid on an active auction.
func (*AuctionBidRequest) Descriptor
deprecated
added in
v1.18.0
func (*AuctionBidRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuctionBidRequest.ProtoReflect.Descriptor instead.
func (*AuctionBidRequest) GetBid ¶ added in v1.18.0
func (x *AuctionBidRequest) GetBid() *AuctionBidAmount
func (*AuctionBidRequest) GetId ¶ added in v1.18.0
func (x *AuctionBidRequest) GetId() string
func (*AuctionBidRequest) GetVersion ¶ added in v1.18.0
func (x *AuctionBidRequest) GetVersion() string
func (*AuctionBidRequest) ProtoMessage ¶ added in v1.18.0
func (*AuctionBidRequest) ProtoMessage()
func (*AuctionBidRequest) ProtoReflect ¶ added in v1.18.0
func (x *AuctionBidRequest) ProtoReflect() protoreflect.Message
func (*AuctionBidRequest) Reset ¶ added in v1.18.0
func (x *AuctionBidRequest) Reset()
func (*AuctionBidRequest) String ¶ added in v1.18.0
func (x *AuctionBidRequest) String() string
type AuctionCancel ¶ added in v1.18.0
type AuctionCancel struct {
// Auction that was just cancelled.
Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"`
// Reward(s) that were successfully refunded to the original auction creator.
Reward *AuctionReward `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward,omitempty"`
// contains filtered or unexported fields
}
Result of cancelling an auction.
func (*AuctionCancel) Descriptor
deprecated
added in
v1.18.0
func (*AuctionCancel) Descriptor() ([]byte, []int)
Deprecated: Use AuctionCancel.ProtoReflect.Descriptor instead.
func (*AuctionCancel) GetAuction ¶ added in v1.18.0
func (x *AuctionCancel) GetAuction() *Auction
func (*AuctionCancel) GetReward ¶ added in v1.18.0
func (x *AuctionCancel) GetReward() *AuctionReward
func (*AuctionCancel) ProtoMessage ¶ added in v1.18.0
func (*AuctionCancel) ProtoMessage()
func (*AuctionCancel) ProtoReflect ¶ added in v1.18.0
func (x *AuctionCancel) ProtoReflect() protoreflect.Message
func (*AuctionCancel) Reset ¶ added in v1.18.0
func (x *AuctionCancel) Reset()
func (*AuctionCancel) String ¶ added in v1.18.0
func (x *AuctionCancel) String() string
type AuctionCancelRequest ¶ added in v1.18.0
type AuctionCancelRequest struct {
// Unique auction identifier to cancel.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Request to cancel an active auction.
func (*AuctionCancelRequest) Descriptor
deprecated
added in
v1.18.0
func (*AuctionCancelRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuctionCancelRequest.ProtoReflect.Descriptor instead.
func (*AuctionCancelRequest) GetId ¶ added in v1.18.0
func (x *AuctionCancelRequest) GetId() string
func (*AuctionCancelRequest) ProtoMessage ¶ added in v1.18.0
func (*AuctionCancelRequest) ProtoMessage()
func (*AuctionCancelRequest) ProtoReflect ¶ added in v1.18.0
func (x *AuctionCancelRequest) ProtoReflect() protoreflect.Message
func (*AuctionCancelRequest) Reset ¶ added in v1.18.0
func (x *AuctionCancelRequest) Reset()
func (*AuctionCancelRequest) String ¶ added in v1.18.0
func (x *AuctionCancelRequest) String() string
type AuctionClaimBid ¶ added in v1.18.0
type AuctionClaimBid struct {
// Auction that was just claimed.
Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"`
// Reward(s) that were successfully claimed by the winning bidder.
Reward *AuctionReward `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward,omitempty"`
// contains filtered or unexported fields
}
Result of claiming an auction as the winning bidder.
func (*AuctionClaimBid) Descriptor
deprecated
added in
v1.18.0
func (*AuctionClaimBid) Descriptor() ([]byte, []int)
Deprecated: Use AuctionClaimBid.ProtoReflect.Descriptor instead.
func (*AuctionClaimBid) GetAuction ¶ added in v1.18.0
func (x *AuctionClaimBid) GetAuction() *Auction
func (*AuctionClaimBid) GetReward ¶ added in v1.18.0
func (x *AuctionClaimBid) GetReward() *AuctionReward
func (*AuctionClaimBid) ProtoMessage ¶ added in v1.18.0
func (*AuctionClaimBid) ProtoMessage()
func (*AuctionClaimBid) ProtoReflect ¶ added in v1.18.0
func (x *AuctionClaimBid) ProtoReflect() protoreflect.Message
func (*AuctionClaimBid) Reset ¶ added in v1.18.0
func (x *AuctionClaimBid) Reset()
func (*AuctionClaimBid) String ¶ added in v1.18.0
func (x *AuctionClaimBid) String() string
type AuctionClaimBidRequest ¶ added in v1.18.0
type AuctionClaimBidRequest struct {
// Unique auction identifier to claim.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Request to claim a successful auction by either the winning bidder.
func (*AuctionClaimBidRequest) Descriptor
deprecated
added in
v1.18.0
func (*AuctionClaimBidRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuctionClaimBidRequest.ProtoReflect.Descriptor instead.
func (*AuctionClaimBidRequest) GetId ¶ added in v1.18.0
func (x *AuctionClaimBidRequest) GetId() string
func (*AuctionClaimBidRequest) ProtoMessage ¶ added in v1.18.0
func (*AuctionClaimBidRequest) ProtoMessage()
func (*AuctionClaimBidRequest) ProtoReflect ¶ added in v1.18.0
func (x *AuctionClaimBidRequest) ProtoReflect() protoreflect.Message
func (*AuctionClaimBidRequest) Reset ¶ added in v1.18.0
func (x *AuctionClaimBidRequest) Reset()
func (*AuctionClaimBidRequest) String ¶ added in v1.18.0
func (x *AuctionClaimBidRequest) String() string
type AuctionClaimCreated ¶ added in v1.18.0
type AuctionClaimCreated struct {
// Auction that was just claimed.
Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"`
// Reward(s) that were successfully claimed by the creator.
Reward *AuctionBidAmount `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward,omitempty"`
// Fee(s) that were paid by the creator.
Fee *AuctionBidAmount `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"`
// Items returned in the event of a failed auction.
ReturnedItems []*InventoryItem `protobuf:"bytes,4,rep,name=returned_items,json=returnedItems,proto3" json:"returned_items,omitempty"`
// contains filtered or unexported fields
}
Result of claiming an auction as the creator.
func (*AuctionClaimCreated) Descriptor
deprecated
added in
v1.18.0
func (*AuctionClaimCreated) Descriptor() ([]byte, []int)
Deprecated: Use AuctionClaimCreated.ProtoReflect.Descriptor instead.
func (*AuctionClaimCreated) GetAuction ¶ added in v1.18.0
func (x *AuctionClaimCreated) GetAuction() *Auction
func (*AuctionClaimCreated) GetFee ¶ added in v1.18.0
func (x *AuctionClaimCreated) GetFee() *AuctionBidAmount
func (*AuctionClaimCreated) GetReturnedItems ¶ added in v1.18.0
func (x *AuctionClaimCreated) GetReturnedItems() []*InventoryItem
func (*AuctionClaimCreated) GetReward ¶ added in v1.18.0
func (x *AuctionClaimCreated) GetReward() *AuctionBidAmount
func (*AuctionClaimCreated) ProtoMessage ¶ added in v1.18.0
func (*AuctionClaimCreated) ProtoMessage()
func (*AuctionClaimCreated) ProtoReflect ¶ added in v1.18.0
func (x *AuctionClaimCreated) ProtoReflect() protoreflect.Message
func (*AuctionClaimCreated) Reset ¶ added in v1.18.0
func (x *AuctionClaimCreated) Reset()
func (*AuctionClaimCreated) String ¶ added in v1.18.0
func (x *AuctionClaimCreated) String() string
type AuctionClaimCreatedRequest ¶ added in v1.18.0
type AuctionClaimCreatedRequest struct {
// Unique auction identifier to claim.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Request to claim a successful auction by either the creator.
func (*AuctionClaimCreatedRequest) Descriptor
deprecated
added in
v1.18.0
func (*AuctionClaimCreatedRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuctionClaimCreatedRequest.ProtoReflect.Descriptor instead.
func (*AuctionClaimCreatedRequest) GetId ¶ added in v1.18.0
func (x *AuctionClaimCreatedRequest) GetId() string
func (*AuctionClaimCreatedRequest) ProtoMessage ¶ added in v1.18.0
func (*AuctionClaimCreatedRequest) ProtoMessage()
func (*AuctionClaimCreatedRequest) ProtoReflect ¶ added in v1.18.0
func (x *AuctionClaimCreatedRequest) ProtoReflect() protoreflect.Message
func (*AuctionClaimCreatedRequest) Reset ¶ added in v1.18.0
func (x *AuctionClaimCreatedRequest) Reset()
func (*AuctionClaimCreatedRequest) String ¶ added in v1.18.0
func (x *AuctionClaimCreatedRequest) String() string
type AuctionCreateRequest ¶ added in v1.18.0
type AuctionCreateRequest struct {
// Auction template to use.
TemplateId string `protobuf:"bytes,1,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"`
// Auction condition set to use.
ConditionId string `protobuf:"bytes,2,opt,name=condition_id,json=conditionId,proto3" json:"condition_id,omitempty"`
// Item instance(s) to list in the auction.
InstanceIds []string `protobuf:"bytes,3,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"`
// Time when the auction should start, omit to start immediately.
StartTimeSec int64 `protobuf:"varint,4,opt,name=start_time_sec,json=startTimeSec,proto3" json:"start_time_sec,omitempty"`
// contains filtered or unexported fields
}
Request to create a new auction.
func (*AuctionCreateRequest) Descriptor
deprecated
added in
v1.18.0
func (*AuctionCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuctionCreateRequest.ProtoReflect.Descriptor instead.
func (*AuctionCreateRequest) GetConditionId ¶ added in v1.18.0
func (x *AuctionCreateRequest) GetConditionId() string
func (*AuctionCreateRequest) GetInstanceIds ¶ added in v1.18.0
func (x *AuctionCreateRequest) GetInstanceIds() []string
func (*AuctionCreateRequest) GetStartTimeSec ¶ added in v1.18.0
func (x *AuctionCreateRequest) GetStartTimeSec() int64
func (*AuctionCreateRequest) GetTemplateId ¶ added in v1.18.0
func (x *AuctionCreateRequest) GetTemplateId() string
func (*AuctionCreateRequest) ProtoMessage ¶ added in v1.18.0
func (*AuctionCreateRequest) ProtoMessage()
func (*AuctionCreateRequest) ProtoReflect ¶ added in v1.18.0
func (x *AuctionCreateRequest) ProtoReflect() protoreflect.Message
func (*AuctionCreateRequest) Reset ¶ added in v1.18.0
func (x *AuctionCreateRequest) Reset()
func (*AuctionCreateRequest) String ¶ added in v1.18.0
func (x *AuctionCreateRequest) String() string
type AuctionFee ¶ added in v1.18.0
type AuctionFee struct {
// Percentage-based fee value.
Percentage float64 `protobuf:"fixed64,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
// Fixed fee amount.
Fixed *AuctionBidAmount `protobuf:"bytes,2,opt,name=fixed,proto3" json:"fixed,omitempty"`
// contains filtered or unexported fields
}
Fee structure associated with an auction, which will be deducted on completion.
func (*AuctionFee) Descriptor
deprecated
added in
v1.18.0
func (*AuctionFee) Descriptor() ([]byte, []int)
Deprecated: Use AuctionFee.ProtoReflect.Descriptor instead.
func (*AuctionFee) GetFixed ¶ added in v1.18.0
func (x *AuctionFee) GetFixed() *AuctionBidAmount
func (*AuctionFee) GetPercentage ¶ added in v1.18.0
func (x *AuctionFee) GetPercentage() float64
func (*AuctionFee) ProtoMessage ¶ added in v1.18.0
func (*AuctionFee) ProtoMessage()
func (*AuctionFee) ProtoReflect ¶ added in v1.18.0
func (x *AuctionFee) ProtoReflect() protoreflect.Message
func (*AuctionFee) Reset ¶ added in v1.18.0
func (x *AuctionFee) Reset()
func (*AuctionFee) String ¶ added in v1.18.0
func (x *AuctionFee) String() string
type AuctionList ¶ added in v1.18.0
type AuctionList struct {
// Auctions matching the requested filters.
Auctions []*Auction `protobuf:"bytes,1,rep,name=auctions,proto3" json:"auctions,omitempty"`
// Pagination cursor to fetch more results, or empty if there are no more.
Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
// contains filtered or unexported fields
}
A list of auctions filtered by some initial request criteria.
func (*AuctionList) Descriptor
deprecated
added in
v1.18.0
func (*AuctionList) Descriptor() ([]byte, []int)
Deprecated: Use AuctionList.ProtoReflect.Descriptor instead.
func (*AuctionList) GetAuctions ¶ added in v1.18.0
func (x *AuctionList) GetAuctions() []*Auction
func (*AuctionList) GetCursor ¶ added in v1.18.0
func (x *AuctionList) GetCursor() string
func (*AuctionList) ProtoMessage ¶ added in v1.18.0
func (*AuctionList) ProtoMessage()
func (*AuctionList) ProtoReflect ¶ added in v1.18.0
func (x *AuctionList) ProtoReflect() protoreflect.Message
func (*AuctionList) Reset ¶ added in v1.18.0
func (x *AuctionList) Reset()
func (*AuctionList) String ¶ added in v1.18.0
func (x *AuctionList) String() string
type AuctionListBidsRequest ¶ added in v1.18.0
type AuctionListBidsRequest struct {
// Maximum number of auctions to return in a single response.
Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
// Cursor to use for retrieving the next page of results.
Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
// contains filtered or unexported fields
}
Request to retrieve a list of auctions the user has bid on.
func (*AuctionListBidsRequest) Descriptor
deprecated
added in
v1.18.0
func (*AuctionListBidsRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuctionListBidsRequest.ProtoReflect.Descriptor instead.
func (*AuctionListBidsRequest) GetCursor ¶ added in v1.18.0
func (x *AuctionListBidsRequest) GetCursor() string
func (*AuctionListBidsRequest) GetLimit ¶ added in v1.18.0
func (x *AuctionListBidsRequest) GetLimit() int64
func (*AuctionListBidsRequest) ProtoMessage ¶ added in v1.18.0
func (*AuctionListBidsRequest) ProtoMessage()
func (*AuctionListBidsRequest) ProtoReflect ¶ added in v1.18.0
func (x *AuctionListBidsRequest) ProtoReflect() protoreflect.Message
func (*AuctionListBidsRequest) Reset ¶ added in v1.18.0
func (x *AuctionListBidsRequest) Reset()
func (*AuctionListBidsRequest) String ¶ added in v1.18.0
func (x *AuctionListBidsRequest) String() string
type AuctionListCreatedRequest ¶ added in v1.18.0
type AuctionListCreatedRequest struct {
// Maximum number of auctions to return in a single response.
Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
// Cursor to use for retrieving the next page of results.
Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
// contains filtered or unexported fields
}
Request to retrieve a list of auctions the user has created.
func (*AuctionListCreatedRequest) Descriptor
deprecated
added in
v1.18.0
func (*AuctionListCreatedRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuctionListCreatedRequest.ProtoReflect.Descriptor instead.
func (*AuctionListCreatedRequest) GetCursor ¶ added in v1.18.0
func (x *AuctionListCreatedRequest) GetCursor() string
func (*AuctionListCreatedRequest) GetLimit ¶ added in v1.18.0
func (x *AuctionListCreatedRequest) GetLimit() int64
func (*AuctionListCreatedRequest) ProtoMessage ¶ added in v1.18.0
func (*AuctionListCreatedRequest) ProtoMessage()
func (*AuctionListCreatedRequest) ProtoReflect ¶ added in v1.18.0
func (x *AuctionListCreatedRequest) ProtoReflect() protoreflect.Message
func (*AuctionListCreatedRequest) Reset ¶ added in v1.18.0
func (x *AuctionListCreatedRequest) Reset()
func (*AuctionListCreatedRequest) String ¶ added in v1.18.0
func (x *AuctionListCreatedRequest) String() string
type AuctionListRequest ¶ added in v1.18.0
type AuctionListRequest struct {
// Formatted filter query.
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
// Custom sort criteria.
Sort []string `protobuf:"bytes,2,rep,name=sort,proto3" json:"sort,omitempty"`
// Maximum number of auctions to return in a single response.
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// Cursor to use for retrieving the next page of results.
Cursor string `protobuf:"bytes,4,opt,name=cursor,proto3" json:"cursor,omitempty"`
// contains filtered or unexported fields
}
Request to list available auctions, optionally filtered based on given criteria.
func (*AuctionListRequest) Descriptor
deprecated
added in
v1.18.0
func (*AuctionListRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuctionListRequest.ProtoReflect.Descriptor instead.
func (*AuctionListRequest) GetCursor ¶ added in v1.18.0
func (x *AuctionListRequest) GetCursor() string
func (*AuctionListRequest) GetLimit ¶ added in v1.18.0
func (x *AuctionListRequest) GetLimit() int64
func (*AuctionListRequest) GetQuery ¶ added in v1.18.0
func (x *AuctionListRequest) GetQuery() string
func (*AuctionListRequest) GetSort ¶ added in v1.18.0
func (x *AuctionListRequest) GetSort() []string
func (*AuctionListRequest) ProtoMessage ¶ added in v1.18.0
func (*AuctionListRequest) ProtoMessage()
func (*AuctionListRequest) ProtoReflect ¶ added in v1.18.0
func (x *AuctionListRequest) ProtoReflect() protoreflect.Message
func (*AuctionListRequest) Reset ¶ added in v1.18.0
func (x *AuctionListRequest) Reset()
func (*AuctionListRequest) String ¶ added in v1.18.0
func (x *AuctionListRequest) String() string
type AuctionNotificationBid ¶ added in v1.18.0
type AuctionNotificationBid struct {
// Unique auction identifier.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// New version hash for this auction.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Current highest bid, if any.
Bid *AuctionBid `protobuf:"bytes,3,opt,name=bid,proto3" json:"bid,omitempty"`
// Minimum next bid amount.
BidNext *AuctionBidAmount `protobuf:"bytes,4,opt,name=bid_next,json=bidNext,proto3" json:"bid_next,omitempty"`
// Additional time added so far to the original duration.
ExtensionAddedSec int64 `protobuf:"varint,5,opt,name=extension_added_sec,json=extensionAddedSec,proto3" json:"extension_added_sec,omitempty"`
// Extra time still available.
ExtensionRemainingSec int64 `` /* 127-byte string literal not displayed */
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the current bid was updated, for example by placing a new bid.
UpdateTimeSec int64 `protobuf:"varint,7,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the auction ends.
EndTimeSec int64 `protobuf:"varint,8,opt,name=end_time_sec,json=endTimeSec,proto3" json:"end_time_sec,omitempty"`
// The current UNIX time (for gRPC clients) or ISO string (for REST clients) on the server.
CurrentTimeSec int64 `protobuf:"varint,9,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// contains filtered or unexported fields
}
Notification payload containing a bid update for a followed auction.
func (*AuctionNotificationBid) Descriptor
deprecated
added in
v1.18.0
func (*AuctionNotificationBid) Descriptor() ([]byte, []int)
Deprecated: Use AuctionNotificationBid.ProtoReflect.Descriptor instead.
func (*AuctionNotificationBid) GetBid ¶ added in v1.18.0
func (x *AuctionNotificationBid) GetBid() *AuctionBid
func (*AuctionNotificationBid) GetBidNext ¶ added in v1.18.0
func (x *AuctionNotificationBid) GetBidNext() *AuctionBidAmount
func (*AuctionNotificationBid) GetCurrentTimeSec ¶ added in v1.18.0
func (x *AuctionNotificationBid) GetCurrentTimeSec() int64
func (*AuctionNotificationBid) GetEndTimeSec ¶ added in v1.18.0
func (x *AuctionNotificationBid) GetEndTimeSec() int64
func (*AuctionNotificationBid) GetExtensionAddedSec ¶ added in v1.18.0
func (x *AuctionNotificationBid) GetExtensionAddedSec() int64
func (*AuctionNotificationBid) GetExtensionRemainingSec ¶ added in v1.18.0
func (x *AuctionNotificationBid) GetExtensionRemainingSec() int64
func (*AuctionNotificationBid) GetId ¶ added in v1.18.0
func (x *AuctionNotificationBid) GetId() string
func (*AuctionNotificationBid) GetUpdateTimeSec ¶ added in v1.18.0
func (x *AuctionNotificationBid) GetUpdateTimeSec() int64
func (*AuctionNotificationBid) GetVersion ¶ added in v1.18.0
func (x *AuctionNotificationBid) GetVersion() string
func (*AuctionNotificationBid) ProtoMessage ¶ added in v1.18.0
func (*AuctionNotificationBid) ProtoMessage()
func (*AuctionNotificationBid) ProtoReflect ¶ added in v1.18.0
func (x *AuctionNotificationBid) ProtoReflect() protoreflect.Message
func (*AuctionNotificationBid) Reset ¶ added in v1.18.0
func (x *AuctionNotificationBid) Reset()
func (*AuctionNotificationBid) String ¶ added in v1.18.0
func (x *AuctionNotificationBid) String() string
type AuctionReward ¶ added in v1.18.0
type AuctionReward struct {
// Items being sold as part of a given auction listing.
Items []*InventoryItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
The content(s) of an auction.
func (*AuctionReward) Descriptor
deprecated
added in
v1.18.0
func (*AuctionReward) Descriptor() ([]byte, []int)
Deprecated: Use AuctionReward.ProtoReflect.Descriptor instead.
func (*AuctionReward) GetItems ¶ added in v1.18.0
func (x *AuctionReward) GetItems() []*InventoryItem
func (*AuctionReward) ProtoMessage ¶ added in v1.18.0
func (*AuctionReward) ProtoMessage()
func (*AuctionReward) ProtoReflect ¶ added in v1.18.0
func (x *AuctionReward) ProtoReflect() protoreflect.Message
func (*AuctionReward) Reset ¶ added in v1.18.0
func (x *AuctionReward) Reset()
func (*AuctionReward) String ¶ added in v1.18.0
func (x *AuctionReward) String() string
type AuctionTemplate ¶ added in v1.18.0
type AuctionTemplate struct {
// Item identifiers that can be listed using this auction template.
Items []string `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// Item sets that can be listed using this auction template.
ItemSets []string `protobuf:"bytes,2,rep,name=item_sets,json=itemSets,proto3" json:"item_sets,omitempty"`
// Condition configurations available.
Conditions map[string]*AuctionTemplateCondition `` /* 161-byte string literal not displayed */
// Number of historic bids that will be kept.
BidHistoryCount int32 `protobuf:"varint,4,opt,name=bid_history_count,json=bidHistoryCount,proto3" json:"bid_history_count,omitempty"`
// contains filtered or unexported fields
}
An individually usable auction template.
func (*AuctionTemplate) Descriptor
deprecated
added in
v1.18.0
func (*AuctionTemplate) Descriptor() ([]byte, []int)
Deprecated: Use AuctionTemplate.ProtoReflect.Descriptor instead.
func (*AuctionTemplate) GetBidHistoryCount ¶ added in v1.21.0
func (x *AuctionTemplate) GetBidHistoryCount() int32
func (*AuctionTemplate) GetConditions ¶ added in v1.18.0
func (x *AuctionTemplate) GetConditions() map[string]*AuctionTemplateCondition
func (*AuctionTemplate) GetItemSets ¶ added in v1.18.0
func (x *AuctionTemplate) GetItemSets() []string
func (*AuctionTemplate) GetItems ¶ added in v1.18.0
func (x *AuctionTemplate) GetItems() []string
func (*AuctionTemplate) ProtoMessage ¶ added in v1.18.0
func (*AuctionTemplate) ProtoMessage()
func (*AuctionTemplate) ProtoReflect ¶ added in v1.18.0
func (x *AuctionTemplate) ProtoReflect() protoreflect.Message
func (*AuctionTemplate) Reset ¶ added in v1.18.0
func (x *AuctionTemplate) Reset()
func (*AuctionTemplate) String ¶ added in v1.18.0
func (x *AuctionTemplate) String() string
type AuctionTemplateCondition ¶ added in v1.18.0
type AuctionTemplateCondition struct {
// Number of seconds the auction will be available for.
DurationSec int64 `protobuf:"varint,1,opt,name=duration_sec,json=durationSec,proto3" json:"duration_sec,omitempty"`
// Cost to be paid on creating the auction listing, if any.
ListingCost *AuctionTemplateConditionListingCost `protobuf:"bytes,2,opt,name=listing_cost,json=listingCost,proto3" json:"listing_cost,omitempty"`
// Minimum starting bid.
BidStart *AuctionBidAmount `protobuf:"bytes,3,opt,name=bid_start,json=bidStart,proto3" json:"bid_start,omitempty"`
// Minimum increment between bids.
BidIncrement *AuctionTemplateConditionBidIncrement `protobuf:"bytes,4,opt,name=bid_increment,json=bidIncrement,proto3" json:"bid_increment,omitempty"`
// How close to auction end should it be extended if a new bid arrives.
ExtensionThresholdSec int64 `` /* 127-byte string literal not displayed */
// How many seconds at a time will be added when extending.
ExtensionSec int64 `protobuf:"varint,6,opt,name=extension_sec,json=extensionSec,proto3" json:"extension_sec,omitempty"`
// How many seconds total may be added as extension.
ExtensionMaxSec int64 `protobuf:"varint,7,opt,name=extension_max_sec,json=extensionMaxSec,proto3" json:"extension_max_sec,omitempty"`
// Auction fee the creator will pay out of the winning bid amount, if any.
Fee *AuctionFee `protobuf:"bytes,8,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
A condition set as part of an auction template.
func (*AuctionTemplateCondition) Descriptor
deprecated
added in
v1.18.0
func (*AuctionTemplateCondition) Descriptor() ([]byte, []int)
Deprecated: Use AuctionTemplateCondition.ProtoReflect.Descriptor instead.
func (*AuctionTemplateCondition) GetBidIncrement ¶ added in v1.18.0
func (x *AuctionTemplateCondition) GetBidIncrement() *AuctionTemplateConditionBidIncrement
func (*AuctionTemplateCondition) GetBidStart ¶ added in v1.18.0
func (x *AuctionTemplateCondition) GetBidStart() *AuctionBidAmount
func (*AuctionTemplateCondition) GetDurationSec ¶ added in v1.18.0
func (x *AuctionTemplateCondition) GetDurationSec() int64
func (*AuctionTemplateCondition) GetExtensionMaxSec ¶ added in v1.18.0
func (x *AuctionTemplateCondition) GetExtensionMaxSec() int64
func (*AuctionTemplateCondition) GetExtensionSec ¶ added in v1.18.0
func (x *AuctionTemplateCondition) GetExtensionSec() int64
func (*AuctionTemplateCondition) GetExtensionThresholdSec ¶ added in v1.18.0
func (x *AuctionTemplateCondition) GetExtensionThresholdSec() int64
func (*AuctionTemplateCondition) GetFee ¶ added in v1.18.0
func (x *AuctionTemplateCondition) GetFee() *AuctionFee
func (*AuctionTemplateCondition) GetListingCost ¶ added in v1.18.0
func (x *AuctionTemplateCondition) GetListingCost() *AuctionTemplateConditionListingCost
func (*AuctionTemplateCondition) ProtoMessage ¶ added in v1.18.0
func (*AuctionTemplateCondition) ProtoMessage()
func (*AuctionTemplateCondition) ProtoReflect ¶ added in v1.18.0
func (x *AuctionTemplateCondition) ProtoReflect() protoreflect.Message
func (*AuctionTemplateCondition) Reset ¶ added in v1.18.0
func (x *AuctionTemplateCondition) Reset()
func (*AuctionTemplateCondition) String ¶ added in v1.18.0
func (x *AuctionTemplateCondition) String() string
type AuctionTemplateConditionBidIncrement ¶ added in v1.18.0
type AuctionTemplateConditionBidIncrement struct {
// Percentage-based increment value.
Percentage float64 `protobuf:"fixed64,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
// Fixed increment amount.
Fixed *AuctionBidAmount `protobuf:"bytes,2,opt,name=fixed,proto3" json:"fixed,omitempty"`
// contains filtered or unexported fields
}
Minimum increment required between bids.
func (*AuctionTemplateConditionBidIncrement) Descriptor
deprecated
added in
v1.18.0
func (*AuctionTemplateConditionBidIncrement) Descriptor() ([]byte, []int)
Deprecated: Use AuctionTemplateConditionBidIncrement.ProtoReflect.Descriptor instead.
func (*AuctionTemplateConditionBidIncrement) GetFixed ¶ added in v1.18.0
func (x *AuctionTemplateConditionBidIncrement) GetFixed() *AuctionBidAmount
func (*AuctionTemplateConditionBidIncrement) GetPercentage ¶ added in v1.18.0
func (x *AuctionTemplateConditionBidIncrement) GetPercentage() float64
func (*AuctionTemplateConditionBidIncrement) ProtoMessage ¶ added in v1.18.0
func (*AuctionTemplateConditionBidIncrement) ProtoMessage()
func (*AuctionTemplateConditionBidIncrement) ProtoReflect ¶ added in v1.18.0
func (x *AuctionTemplateConditionBidIncrement) ProtoReflect() protoreflect.Message
func (*AuctionTemplateConditionBidIncrement) Reset ¶ added in v1.18.0
func (x *AuctionTemplateConditionBidIncrement) Reset()
func (*AuctionTemplateConditionBidIncrement) String ¶ added in v1.18.0
func (x *AuctionTemplateConditionBidIncrement) String() string
type AuctionTemplateConditionListingCost ¶ added in v1.18.0
type AuctionTemplateConditionListingCost struct {
// Currencies cost, if any.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// Inventory items cost, if any.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// Energies cost, if any.
Energies map[string]int64 `` /* 158-byte string literal not displayed */
// contains filtered or unexported fields
}
Cost to be paid for listing an auction under this config condition.
func (*AuctionTemplateConditionListingCost) Descriptor
deprecated
added in
v1.18.0
func (*AuctionTemplateConditionListingCost) Descriptor() ([]byte, []int)
Deprecated: Use AuctionTemplateConditionListingCost.ProtoReflect.Descriptor instead.
func (*AuctionTemplateConditionListingCost) GetCurrencies ¶ added in v1.18.0
func (x *AuctionTemplateConditionListingCost) GetCurrencies() map[string]int64
func (*AuctionTemplateConditionListingCost) GetEnergies ¶ added in v1.18.0
func (x *AuctionTemplateConditionListingCost) GetEnergies() map[string]int64
func (*AuctionTemplateConditionListingCost) GetItems ¶ added in v1.18.0
func (x *AuctionTemplateConditionListingCost) GetItems() map[string]int64
func (*AuctionTemplateConditionListingCost) ProtoMessage ¶ added in v1.18.0
func (*AuctionTemplateConditionListingCost) ProtoMessage()
func (*AuctionTemplateConditionListingCost) ProtoReflect ¶ added in v1.18.0
func (x *AuctionTemplateConditionListingCost) ProtoReflect() protoreflect.Message
func (*AuctionTemplateConditionListingCost) Reset ¶ added in v1.18.0
func (x *AuctionTemplateConditionListingCost) Reset()
func (*AuctionTemplateConditionListingCost) String ¶ added in v1.18.0
func (x *AuctionTemplateConditionListingCost) String() string
type AuctionTemplates ¶ added in v1.18.0
type AuctionTemplates struct {
// All available auction templates, keyed by an unique identifier.
Templates map[string]*AuctionTemplate `` /* 159-byte string literal not displayed */
// contains filtered or unexported fields
}
Set of all available auction templates.
func (*AuctionTemplates) Descriptor
deprecated
added in
v1.18.0
func (*AuctionTemplates) Descriptor() ([]byte, []int)
Deprecated: Use AuctionTemplates.ProtoReflect.Descriptor instead.
func (*AuctionTemplates) GetTemplates ¶ added in v1.18.0
func (x *AuctionTemplates) GetTemplates() map[string]*AuctionTemplate
func (*AuctionTemplates) ProtoMessage ¶ added in v1.18.0
func (*AuctionTemplates) ProtoMessage()
func (*AuctionTemplates) ProtoReflect ¶ added in v1.18.0
func (x *AuctionTemplates) ProtoReflect() protoreflect.Message
func (*AuctionTemplates) Reset ¶ added in v1.18.0
func (x *AuctionTemplates) Reset()
func (*AuctionTemplates) String ¶ added in v1.18.0
func (x *AuctionTemplates) String() string
type AuctionsConfig ¶ added in v1.18.0
type AuctionsConfig struct {
Auctions map[string]*AuctionsConfigAuction `json:"auctions,omitempty"`
}
AuctionsConfig is the data definition for the AuctionsSystem type.
type AuctionsConfigAuction ¶ added in v1.18.0
type AuctionsConfigAuction struct {
Items []string `json:"items,omitempty"`
ItemSets []string `json:"item_sets,omitempty"`
Conditions map[string]*AuctionsConfigAuctionCondition `json:"conditions,omitempty"`
BidHistoryCount int `json:"bid_history_count,omitempty"`
}
type AuctionsConfigAuctionCondition ¶ added in v1.18.0
type AuctionsConfigAuctionCondition struct {
DurationSec int64 `json:"duration_sec,omitempty"`
ListingCost *AuctionsConfigAuctionConditionCost `json:"listing_cost,omitempty"`
BidStart *AuctionsConfigAuctionConditionBid `json:"bid_start,omitempty"`
BidIncrement *AuctionsConfigAuctionConditionBidIncrement `json:"bid_increment,omitempty"`
ExtensionThresholdSec int64 `json:"extension_threshold_sec,omitempty"`
ExtensionSec int64 `json:"extension_sec,omitempty"`
ExtensionMaxSec int64 `json:"extension_max_sec,omitempty"`
Fee *AuctionsConfigAuctionConditionFee `json:"fee,omitempty"`
}
type AuctionsConfigAuctionConditionBid ¶ added in v1.18.0
type AuctionsConfigAuctionConditionBidIncrement ¶ added in v1.18.0
type AuctionsConfigAuctionConditionBidIncrement struct {
Percentage float64 `json:"percentage,omitempty"`
Fixed *AuctionsConfigAuctionConditionBid `json:"fixed,omitempty"`
}
type AuctionsConfigAuctionConditionCost ¶ added in v1.18.0
type AuctionsConfigAuctionConditionFee ¶ added in v1.18.0
type AuctionsConfigAuctionConditionFee struct {
Percentage float64 `json:"percentage,omitempty"`
Fixed *AuctionsConfigAuctionConditionBid `json:"fixed,omitempty"`
}
type AuctionsFollowRequest ¶ added in v1.18.0
type AuctionsFollowRequest struct {
// Auction IDs to follow.
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
Request to follow auctions the user has an interest in.
func (*AuctionsFollowRequest) Descriptor
deprecated
added in
v1.18.0
func (*AuctionsFollowRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuctionsFollowRequest.ProtoReflect.Descriptor instead.
func (*AuctionsFollowRequest) GetIds ¶ added in v1.18.0
func (x *AuctionsFollowRequest) GetIds() []string
func (*AuctionsFollowRequest) ProtoMessage ¶ added in v1.18.0
func (*AuctionsFollowRequest) ProtoMessage()
func (*AuctionsFollowRequest) ProtoReflect ¶ added in v1.18.0
func (x *AuctionsFollowRequest) ProtoReflect() protoreflect.Message
func (*AuctionsFollowRequest) Reset ¶ added in v1.18.0
func (x *AuctionsFollowRequest) Reset()
func (*AuctionsFollowRequest) String ¶ added in v1.18.0
func (x *AuctionsFollowRequest) String() string
type AuctionsSystem ¶ added in v1.18.0
type AuctionsSystem interface {
System
// GetTemplates lists all available auction configurations that can be used to create auction listings.
GetTemplates(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string) (*AuctionTemplates, error)
// List auctions based on provided criteria.
List(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, query string, sort []string, limit int, cursor string) (*AuctionList, error)
// Bid on an active auction.
Bid(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, sessionID, auctionID, version string, bid *AuctionBidAmount, marshaler *protojson.MarshalOptions) (*Auction, error)
// ClaimBid claims a completed auction as the successful bidder.
ClaimBid(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, auctionID string) (*AuctionClaimBid, error)
// ClaimCreated claims a completed auction as the auction creator.
ClaimCreated(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, auctionID string) (*AuctionClaimCreated, error)
// Cancel an active auction before it reaches its scheduled end time.
Cancel(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, auctionID string) (*AuctionCancel, error)
// Create a new auction based on supplied parameters and available configuration.
Create(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, templateID, conditionID string, instanceIDs []string, startTimeSec int64, items []*InventoryItem, overrideConfig *AuctionsConfigAuction) (*Auction, error)
// ListBids returns auctions the user has successfully bid on.
ListBids(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, limit int, cursor string) (*AuctionList, error)
// ListCreated returns auctions the user has created.
ListCreated(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, limit int, cursor string) (*AuctionList, error)
// Follow ensures users receive real-time updates for auctions they have an interest in.
Follow(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, sessionID string, auctionIDs []string) (*AuctionList, error)
// SetOnClaimBid sets a custom reward function which will run after an auction's reward is claimed by the winning bidder.
SetOnClaimBid(fn OnAuctionReward[*AuctionReward])
// SetOnClaimCreated sets a custom reward function which will run after an auction's winning bid is claimed by the auction creator.
SetOnClaimCreated(fn OnAuctionReward[*AuctionBidAmount])
// SetOnClaimCreatedFailed sets a custom reward function which will run after a failed auction is claimed by the auction creator.
SetOnClaimCreatedFailed(fn OnAuctionReward[*AuctionReward])
// SetOnCancel sets a custom reward function which will run after an auction is cancelled by the auction creator.
SetOnCancel(fn OnAuctionReward[*AuctionReward])
}
The AuctionsSystem provides a gameplay system for Auctions and their listing, bidding, and timers.
Players list items for auctioning, bid on other auctions, and collect their rewards when appropriate.
type AvailableRewards ¶
type AvailableRewards struct {
// The guaranteed contents to grant.
Guaranteed *AvailableRewardsContents `protobuf:"bytes,1,opt,name=guaranteed,proto3" json:"guaranteed,omitempty"`
// The weighted contents to grant.
Weighted []*AvailableRewardsContents `protobuf:"bytes,2,rep,name=weighted,proto3" json:"weighted,omitempty"`
// The number of weighted reward contents to select from among the possibilities.
MaxRolls int64 `protobuf:"varint,3,opt,name=max_rolls,json=maxRolls,proto3" json:"max_rolls,omitempty"`
// The total weight that all weighted reward contents are calculated against. Auto calculated if set to 0 but can be
// set to a higher value to introduce a chance of a "none" reward.
TotalWeight int64 `protobuf:"varint,4,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"`
// The maximum number of repeats of any given weighted reward.
MaxRepeatRolls int64 `protobuf:"varint,5,opt,name=max_repeat_rolls,json=maxRepeatRolls,proto3" json:"max_repeat_rolls,omitempty"`
// If rewards will be sent to the claimant's reward mailbox rather than applied directly, and what its expiry will be.
ToMailboxExpirySec int64 `protobuf:"varint,6,opt,name=to_mailbox_expiry_sec,json=toMailboxExpirySec,proto3" json:"to_mailbox_expiry_sec,omitempty"`
// Rewards for the claimant's team, if any.
TeamReward *AvailableTeamRewards `protobuf:"bytes,7,opt,name=team_reward,json=teamReward,proto3" json:"team_reward,omitempty"`
// Message associated with the reward, if any.
Message string `protobuf:"bytes,8,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
The available rewards and their probabilistic weights.
func (*AvailableRewards) Descriptor
deprecated
func (*AvailableRewards) Descriptor() ([]byte, []int)
Deprecated: Use AvailableRewards.ProtoReflect.Descriptor instead.
func (*AvailableRewards) GetGuaranteed ¶
func (x *AvailableRewards) GetGuaranteed() *AvailableRewardsContents
func (*AvailableRewards) GetMaxRepeatRolls ¶ added in v1.10.0
func (x *AvailableRewards) GetMaxRepeatRolls() int64
func (*AvailableRewards) GetMaxRolls ¶
func (x *AvailableRewards) GetMaxRolls() int64
func (*AvailableRewards) GetMessage ¶ added in v1.29.0
func (x *AvailableRewards) GetMessage() string
func (*AvailableRewards) GetTeamReward ¶ added in v1.26.0
func (x *AvailableRewards) GetTeamReward() *AvailableTeamRewards
func (*AvailableRewards) GetToMailboxExpirySec ¶ added in v1.26.0
func (x *AvailableRewards) GetToMailboxExpirySec() int64
func (*AvailableRewards) GetTotalWeight ¶
func (x *AvailableRewards) GetTotalWeight() int64
func (*AvailableRewards) GetWeighted ¶
func (x *AvailableRewards) GetWeighted() []*AvailableRewardsContents
func (*AvailableRewards) ProtoMessage ¶
func (*AvailableRewards) ProtoMessage()
func (*AvailableRewards) ProtoReflect ¶
func (x *AvailableRewards) ProtoReflect() protoreflect.Message
func (*AvailableRewards) Reset ¶
func (x *AvailableRewards) Reset()
func (*AvailableRewards) String ¶
func (x *AvailableRewards) String() string
type AvailableRewardsContents ¶
type AvailableRewardsContents struct {
// All possible items from this particular reward.
Items map[string]*AvailableRewardsItem `` /* 151-byte string literal not displayed */
// All possible item sets from this particular reward.
ItemSets []*AvailableRewardsItemSet `protobuf:"bytes,2,rep,name=item_sets,json=itemSets,proto3" json:"item_sets,omitempty"`
// All possible currencies from this particular reward.
Currencies map[string]*AvailableRewardsCurrency `` /* 161-byte string literal not displayed */
// All possible energies from this particular reward.
Energies map[string]*AvailableRewardsEnergy `` /* 157-byte string literal not displayed */
// All possible energy reward modifiers from this particular reward.
EnergyModifiers []*AvailableRewardsEnergyModifier `protobuf:"bytes,5,rep,name=energy_modifiers,json=energyModifiers,proto3" json:"energy_modifiers,omitempty"`
// All reward modifiers from this particular reward.
RewardModifiers []*AvailableRewardsRewardModifier `protobuf:"bytes,6,rep,name=reward_modifiers,json=rewardModifiers,proto3" json:"reward_modifiers,omitempty"`
// The weight of the reward contents.
Weight int64 `protobuf:"varint,7,opt,name=weight,proto3" json:"weight,omitempty"`
// contains filtered or unexported fields
}
The reward contents for available rewards.
func (*AvailableRewardsContents) Descriptor
deprecated
func (*AvailableRewardsContents) Descriptor() ([]byte, []int)
Deprecated: Use AvailableRewardsContents.ProtoReflect.Descriptor instead.
func (*AvailableRewardsContents) GetCurrencies ¶
func (x *AvailableRewardsContents) GetCurrencies() map[string]*AvailableRewardsCurrency
func (*AvailableRewardsContents) GetEnergies ¶
func (x *AvailableRewardsContents) GetEnergies() map[string]*AvailableRewardsEnergy
func (*AvailableRewardsContents) GetEnergyModifiers ¶
func (x *AvailableRewardsContents) GetEnergyModifiers() []*AvailableRewardsEnergyModifier
func (*AvailableRewardsContents) GetItemSets ¶
func (x *AvailableRewardsContents) GetItemSets() []*AvailableRewardsItemSet
func (*AvailableRewardsContents) GetItems ¶
func (x *AvailableRewardsContents) GetItems() map[string]*AvailableRewardsItem
func (*AvailableRewardsContents) GetRewardModifiers ¶
func (x *AvailableRewardsContents) GetRewardModifiers() []*AvailableRewardsRewardModifier
func (*AvailableRewardsContents) GetWeight ¶
func (x *AvailableRewardsContents) GetWeight() int64
func (*AvailableRewardsContents) ProtoMessage ¶
func (*AvailableRewardsContents) ProtoMessage()
func (*AvailableRewardsContents) ProtoReflect ¶
func (x *AvailableRewardsContents) ProtoReflect() protoreflect.Message
func (*AvailableRewardsContents) Reset ¶
func (x *AvailableRewardsContents) Reset()
func (*AvailableRewardsContents) String ¶
func (x *AvailableRewardsContents) String() string
type AvailableRewardsCurrency ¶
type AvailableRewardsCurrency struct {
// The possible count of the currency.
Count *RewardRangeInt64 `protobuf:"bytes,1,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
A possible currency reward.
func (*AvailableRewardsCurrency) Descriptor
deprecated
func (*AvailableRewardsCurrency) Descriptor() ([]byte, []int)
Deprecated: Use AvailableRewardsCurrency.ProtoReflect.Descriptor instead.
func (*AvailableRewardsCurrency) GetCount ¶
func (x *AvailableRewardsCurrency) GetCount() *RewardRangeInt64
func (*AvailableRewardsCurrency) ProtoMessage ¶
func (*AvailableRewardsCurrency) ProtoMessage()
func (*AvailableRewardsCurrency) ProtoReflect ¶
func (x *AvailableRewardsCurrency) ProtoReflect() protoreflect.Message
func (*AvailableRewardsCurrency) Reset ¶
func (x *AvailableRewardsCurrency) Reset()
func (*AvailableRewardsCurrency) String ¶
func (x *AvailableRewardsCurrency) String() string
type AvailableRewardsEnergy ¶
type AvailableRewardsEnergy struct {
// The possible count of the energy.
Count *RewardRangeInt32 `protobuf:"bytes,1,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
A possible energy reward.
func (*AvailableRewardsEnergy) Descriptor
deprecated
func (*AvailableRewardsEnergy) Descriptor() ([]byte, []int)
Deprecated: Use AvailableRewardsEnergy.ProtoReflect.Descriptor instead.
func (*AvailableRewardsEnergy) GetCount ¶
func (x *AvailableRewardsEnergy) GetCount() *RewardRangeInt32
func (*AvailableRewardsEnergy) ProtoMessage ¶
func (*AvailableRewardsEnergy) ProtoMessage()
func (*AvailableRewardsEnergy) ProtoReflect ¶
func (x *AvailableRewardsEnergy) ProtoReflect() protoreflect.Message
func (*AvailableRewardsEnergy) Reset ¶
func (x *AvailableRewardsEnergy) Reset()
func (*AvailableRewardsEnergy) String ¶
func (x *AvailableRewardsEnergy) String() string
type AvailableRewardsEnergyModifier ¶
type AvailableRewardsEnergyModifier struct {
// The ID of the energy to modify.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The operator of the energy modifier.
Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
// The value of the energy modifier.
Value *RewardRangeInt64 `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// The possible duration of the modifier.
DurationSec *RewardRangeUInt64 `protobuf:"bytes,4,opt,name=duration_sec,json=durationSec,proto3" json:"duration_sec,omitempty"`
// contains filtered or unexported fields
}
A possible energy reward.
func (*AvailableRewardsEnergyModifier) Descriptor
deprecated
func (*AvailableRewardsEnergyModifier) Descriptor() ([]byte, []int)
Deprecated: Use AvailableRewardsEnergyModifier.ProtoReflect.Descriptor instead.
func (*AvailableRewardsEnergyModifier) GetDurationSec ¶
func (x *AvailableRewardsEnergyModifier) GetDurationSec() *RewardRangeUInt64
func (*AvailableRewardsEnergyModifier) GetId ¶
func (x *AvailableRewardsEnergyModifier) GetId() string
func (*AvailableRewardsEnergyModifier) GetOperator ¶
func (x *AvailableRewardsEnergyModifier) GetOperator() string
func (*AvailableRewardsEnergyModifier) GetValue ¶
func (x *AvailableRewardsEnergyModifier) GetValue() *RewardRangeInt64
func (*AvailableRewardsEnergyModifier) ProtoMessage ¶
func (*AvailableRewardsEnergyModifier) ProtoMessage()
func (*AvailableRewardsEnergyModifier) ProtoReflect ¶
func (x *AvailableRewardsEnergyModifier) ProtoReflect() protoreflect.Message
func (*AvailableRewardsEnergyModifier) Reset ¶
func (x *AvailableRewardsEnergyModifier) Reset()
func (*AvailableRewardsEnergyModifier) String ¶
func (x *AvailableRewardsEnergyModifier) String() string
type AvailableRewardsItem ¶
type AvailableRewardsItem struct {
// The possible count of the reward.
Count *RewardRangeInt64 `protobuf:"bytes,1,opt,name=count,proto3" json:"count,omitempty"`
// The possible numeric properties of the reward.
NumericProperties map[string]*RewardRangeDouble `` /* 200-byte string literal not displayed */
// The possible string properties of the reward.
StringProperties map[string]*AvailableRewardsStringProperty `` /* 197-byte string literal not displayed */
// contains filtered or unexported fields
}
A possible item reward.
func (*AvailableRewardsItem) Descriptor
deprecated
func (*AvailableRewardsItem) Descriptor() ([]byte, []int)
Deprecated: Use AvailableRewardsItem.ProtoReflect.Descriptor instead.
func (*AvailableRewardsItem) GetCount ¶
func (x *AvailableRewardsItem) GetCount() *RewardRangeInt64
func (*AvailableRewardsItem) GetNumericProperties ¶ added in v1.10.0
func (x *AvailableRewardsItem) GetNumericProperties() map[string]*RewardRangeDouble
func (*AvailableRewardsItem) GetStringProperties ¶ added in v1.10.0
func (x *AvailableRewardsItem) GetStringProperties() map[string]*AvailableRewardsStringProperty
func (*AvailableRewardsItem) ProtoMessage ¶
func (*AvailableRewardsItem) ProtoMessage()
func (*AvailableRewardsItem) ProtoReflect ¶
func (x *AvailableRewardsItem) ProtoReflect() protoreflect.Message
func (*AvailableRewardsItem) Reset ¶
func (x *AvailableRewardsItem) Reset()
func (*AvailableRewardsItem) String ¶
func (x *AvailableRewardsItem) String() string
type AvailableRewardsItemSet ¶
type AvailableRewardsItemSet struct {
// The number of items to draw from the set.
Count *RewardRangeInt64 `protobuf:"bytes,1,opt,name=count,proto3" json:"count,omitempty"`
// The number of repeat items that may be drawn from the set. Also includes the user's inventory.
MaxRepeats int64 `protobuf:"varint,2,opt,name=max_repeats,json=maxRepeats,proto3" json:"max_repeats,omitempty"`
// Drawn items must exist in the intersection of these sets.
Set []string `protobuf:"bytes,3,rep,name=set,proto3" json:"set,omitempty"`
// contains filtered or unexported fields
}
A possible item reward.
func (*AvailableRewardsItemSet) Descriptor
deprecated
func (*AvailableRewardsItemSet) Descriptor() ([]byte, []int)
Deprecated: Use AvailableRewardsItemSet.ProtoReflect.Descriptor instead.
func (*AvailableRewardsItemSet) GetCount ¶
func (x *AvailableRewardsItemSet) GetCount() *RewardRangeInt64
func (*AvailableRewardsItemSet) GetMaxRepeats ¶
func (x *AvailableRewardsItemSet) GetMaxRepeats() int64
func (*AvailableRewardsItemSet) GetSet ¶
func (x *AvailableRewardsItemSet) GetSet() []string
func (*AvailableRewardsItemSet) ProtoMessage ¶
func (*AvailableRewardsItemSet) ProtoMessage()
func (*AvailableRewardsItemSet) ProtoReflect ¶
func (x *AvailableRewardsItemSet) ProtoReflect() protoreflect.Message
func (*AvailableRewardsItemSet) Reset ¶
func (x *AvailableRewardsItemSet) Reset()
func (*AvailableRewardsItemSet) String ¶
func (x *AvailableRewardsItemSet) String() string
type AvailableRewardsRewardModifier ¶
type AvailableRewardsRewardModifier struct {
// The ID of the reward item, currency, energy, or energy modifier to modify.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The type of reward content to modify.
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// The operator of the modifier.
Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
// The value of the modifier.
Value *RewardRangeInt64 `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
// The possible duration of the modifier.
DurationSec *RewardRangeUInt64 `protobuf:"bytes,5,opt,name=duration_sec,json=durationSec,proto3" json:"duration_sec,omitempty"`
// contains filtered or unexported fields
}
A possible modifier reward.
func (*AvailableRewardsRewardModifier) Descriptor
deprecated
func (*AvailableRewardsRewardModifier) Descriptor() ([]byte, []int)
Deprecated: Use AvailableRewardsRewardModifier.ProtoReflect.Descriptor instead.
func (*AvailableRewardsRewardModifier) GetDurationSec ¶
func (x *AvailableRewardsRewardModifier) GetDurationSec() *RewardRangeUInt64
func (*AvailableRewardsRewardModifier) GetId ¶
func (x *AvailableRewardsRewardModifier) GetId() string
func (*AvailableRewardsRewardModifier) GetOperator ¶
func (x *AvailableRewardsRewardModifier) GetOperator() string
func (*AvailableRewardsRewardModifier) GetType ¶
func (x *AvailableRewardsRewardModifier) GetType() string
func (*AvailableRewardsRewardModifier) GetValue ¶
func (x *AvailableRewardsRewardModifier) GetValue() *RewardRangeInt64
func (*AvailableRewardsRewardModifier) ProtoMessage ¶
func (*AvailableRewardsRewardModifier) ProtoMessage()
func (*AvailableRewardsRewardModifier) ProtoReflect ¶
func (x *AvailableRewardsRewardModifier) ProtoReflect() protoreflect.Message
func (*AvailableRewardsRewardModifier) Reset ¶
func (x *AvailableRewardsRewardModifier) Reset()
func (*AvailableRewardsRewardModifier) String ¶
func (x *AvailableRewardsRewardModifier) String() string
type AvailableRewardsStringProperty ¶ added in v1.10.0
type AvailableRewardsStringProperty struct {
// The available string property options.
Options map[string]*AvailableRewardsStringPropertyOption `` /* 155-byte string literal not displayed */
// The total weight from which the options are selected.
TotalWeight int64 `protobuf:"varint,2,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"`
// contains filtered or unexported fields
}
A possible string property.
func (*AvailableRewardsStringProperty) Descriptor
deprecated
added in
v1.10.0
func (*AvailableRewardsStringProperty) Descriptor() ([]byte, []int)
Deprecated: Use AvailableRewardsStringProperty.ProtoReflect.Descriptor instead.
func (*AvailableRewardsStringProperty) GetOptions ¶ added in v1.10.0
func (x *AvailableRewardsStringProperty) GetOptions() map[string]*AvailableRewardsStringPropertyOption
func (*AvailableRewardsStringProperty) GetTotalWeight ¶ added in v1.10.0
func (x *AvailableRewardsStringProperty) GetTotalWeight() int64
func (*AvailableRewardsStringProperty) ProtoMessage ¶ added in v1.10.0
func (*AvailableRewardsStringProperty) ProtoMessage()
func (*AvailableRewardsStringProperty) ProtoReflect ¶ added in v1.10.0
func (x *AvailableRewardsStringProperty) ProtoReflect() protoreflect.Message
func (*AvailableRewardsStringProperty) Reset ¶ added in v1.10.0
func (x *AvailableRewardsStringProperty) Reset()
func (*AvailableRewardsStringProperty) String ¶ added in v1.10.0
func (x *AvailableRewardsStringProperty) String() string
type AvailableRewardsStringPropertyOption ¶ added in v1.10.0
type AvailableRewardsStringPropertyOption struct {
// The option weight.
Weight int64 `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"`
// contains filtered or unexported fields
}
A possible string property option.
func (*AvailableRewardsStringPropertyOption) Descriptor
deprecated
added in
v1.10.0
func (*AvailableRewardsStringPropertyOption) Descriptor() ([]byte, []int)
Deprecated: Use AvailableRewardsStringPropertyOption.ProtoReflect.Descriptor instead.
func (*AvailableRewardsStringPropertyOption) GetWeight ¶ added in v1.10.0
func (x *AvailableRewardsStringPropertyOption) GetWeight() int64
func (*AvailableRewardsStringPropertyOption) ProtoMessage ¶ added in v1.10.0
func (*AvailableRewardsStringPropertyOption) ProtoMessage()
func (*AvailableRewardsStringPropertyOption) ProtoReflect ¶ added in v1.10.0
func (x *AvailableRewardsStringPropertyOption) ProtoReflect() protoreflect.Message
func (*AvailableRewardsStringPropertyOption) Reset ¶ added in v1.10.0
func (x *AvailableRewardsStringPropertyOption) Reset()
func (*AvailableRewardsStringPropertyOption) String ¶ added in v1.10.0
func (x *AvailableRewardsStringPropertyOption) String() string
type AvailableTeamMemberRewards ¶ added in v1.26.0
type AvailableTeamMemberRewards struct {
// The guaranteed contents to grant.
Guaranteed *AvailableRewardsContents `protobuf:"bytes,1,opt,name=guaranteed,proto3" json:"guaranteed,omitempty"`
// The weighted contents to grant.
Weighted []*AvailableRewardsContents `protobuf:"bytes,2,rep,name=weighted,proto3" json:"weighted,omitempty"`
// The number of weighted reward contents to select from among the possibilities.
MaxRolls int64 `protobuf:"varint,3,opt,name=max_rolls,json=maxRolls,proto3" json:"max_rolls,omitempty"`
// The total weight that all weighted reward contents are calculated against. Auto calculated if set to 0 but can be
// set to a higher value to introduce a chance of a "none" reward.
TotalWeight int64 `protobuf:"varint,4,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"`
// The maximum number of repeats of any given weighted reward.
MaxRepeatRolls int64 `protobuf:"varint,5,opt,name=max_repeat_rolls,json=maxRepeatRolls,proto3" json:"max_repeat_rolls,omitempty"`
// contains filtered or unexported fields
}
Available rewards for each member of a team.
func (*AvailableTeamMemberRewards) Descriptor
deprecated
added in
v1.26.0
func (*AvailableTeamMemberRewards) Descriptor() ([]byte, []int)
Deprecated: Use AvailableTeamMemberRewards.ProtoReflect.Descriptor instead.
func (*AvailableTeamMemberRewards) GetGuaranteed ¶ added in v1.26.0
func (x *AvailableTeamMemberRewards) GetGuaranteed() *AvailableRewardsContents
func (*AvailableTeamMemberRewards) GetMaxRepeatRolls ¶ added in v1.26.0
func (x *AvailableTeamMemberRewards) GetMaxRepeatRolls() int64
func (*AvailableTeamMemberRewards) GetMaxRolls ¶ added in v1.26.0
func (x *AvailableTeamMemberRewards) GetMaxRolls() int64
func (*AvailableTeamMemberRewards) GetTotalWeight ¶ added in v1.26.0
func (x *AvailableTeamMemberRewards) GetTotalWeight() int64
func (*AvailableTeamMemberRewards) GetWeighted ¶ added in v1.26.0
func (x *AvailableTeamMemberRewards) GetWeighted() []*AvailableRewardsContents
func (*AvailableTeamMemberRewards) ProtoMessage ¶ added in v1.26.0
func (*AvailableTeamMemberRewards) ProtoMessage()
func (*AvailableTeamMemberRewards) ProtoReflect ¶ added in v1.26.0
func (x *AvailableTeamMemberRewards) ProtoReflect() protoreflect.Message
func (*AvailableTeamMemberRewards) Reset ¶ added in v1.26.0
func (x *AvailableTeamMemberRewards) Reset()
func (*AvailableTeamMemberRewards) String ¶ added in v1.26.0
func (x *AvailableTeamMemberRewards) String() string
type AvailableTeamRewards ¶ added in v1.26.0
type AvailableTeamRewards struct {
// The guaranteed contents to grant.
Guaranteed *AvailableTeamRewardsContents `protobuf:"bytes,1,opt,name=guaranteed,proto3" json:"guaranteed,omitempty"`
// The weighted contents to grant.
Weighted []*AvailableTeamRewardsContents `protobuf:"bytes,2,rep,name=weighted,proto3" json:"weighted,omitempty"`
// The number of weighted reward contents to select from among the possibilities.
MaxRolls int64 `protobuf:"varint,3,opt,name=max_rolls,json=maxRolls,proto3" json:"max_rolls,omitempty"`
// The total weight that all weighted reward contents are calculated against. Auto calculated if set to 0 but can be
// set to a higher value to introduce a chance of a "none" reward.
TotalWeight int64 `protobuf:"varint,4,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"`
// The maximum number of repeats of any given weighted reward.
MaxRepeatRolls int64 `protobuf:"varint,5,opt,name=max_repeat_rolls,json=maxRepeatRolls,proto3" json:"max_repeat_rolls,omitempty"`
// If rewards will be sent to the claimant's reward mailbox rather than applied directly, and what its expiry will be.
ToMailboxExpirySec int64 `protobuf:"varint,6,opt,name=to_mailbox_expiry_sec,json=toMailboxExpirySec,proto3" json:"to_mailbox_expiry_sec,omitempty"`
// Reward to be granted to all individual team members.
MemberReward *AvailableTeamMemberRewards `protobuf:"bytes,7,opt,name=member_reward,json=memberReward,proto3" json:"member_reward,omitempty"`
// contains filtered or unexported fields
}
Available rewards for the claimant's team.
func (*AvailableTeamRewards) Descriptor
deprecated
added in
v1.26.0
func (*AvailableTeamRewards) Descriptor() ([]byte, []int)
Deprecated: Use AvailableTeamRewards.ProtoReflect.Descriptor instead.
func (*AvailableTeamRewards) GetGuaranteed ¶ added in v1.26.0
func (x *AvailableTeamRewards) GetGuaranteed() *AvailableTeamRewardsContents
func (*AvailableTeamRewards) GetMaxRepeatRolls ¶ added in v1.26.0
func (x *AvailableTeamRewards) GetMaxRepeatRolls() int64
func (*AvailableTeamRewards) GetMaxRolls ¶ added in v1.26.0
func (x *AvailableTeamRewards) GetMaxRolls() int64
func (*AvailableTeamRewards) GetMemberReward ¶ added in v1.26.0
func (x *AvailableTeamRewards) GetMemberReward() *AvailableTeamMemberRewards
func (*AvailableTeamRewards) GetToMailboxExpirySec ¶ added in v1.26.0
func (x *AvailableTeamRewards) GetToMailboxExpirySec() int64
func (*AvailableTeamRewards) GetTotalWeight ¶ added in v1.26.0
func (x *AvailableTeamRewards) GetTotalWeight() int64
func (*AvailableTeamRewards) GetWeighted ¶ added in v1.26.0
func (x *AvailableTeamRewards) GetWeighted() []*AvailableTeamRewardsContents
func (*AvailableTeamRewards) ProtoMessage ¶ added in v1.26.0
func (*AvailableTeamRewards) ProtoMessage()
func (*AvailableTeamRewards) ProtoReflect ¶ added in v1.26.0
func (x *AvailableTeamRewards) ProtoReflect() protoreflect.Message
func (*AvailableTeamRewards) Reset ¶ added in v1.26.0
func (x *AvailableTeamRewards) Reset()
func (*AvailableTeamRewards) String ¶ added in v1.26.0
func (x *AvailableTeamRewards) String() string
type AvailableTeamRewardsContents ¶ added in v1.26.0
type AvailableTeamRewardsContents struct {
// All possible items from this particular reward.
Items map[string]*AvailableRewardsItem `` /* 151-byte string literal not displayed */
// All possible item sets from this particular reward.
ItemSets []*AvailableRewardsItemSet `protobuf:"bytes,2,rep,name=item_sets,json=itemSets,proto3" json:"item_sets,omitempty"`
// All possible currencies from this particular reward.
Currencies map[string]*AvailableRewardsCurrency `` /* 161-byte string literal not displayed */
// All reward modifiers from this particular reward.
RewardModifiers []*AvailableRewardsRewardModifier `protobuf:"bytes,4,rep,name=reward_modifiers,json=rewardModifiers,proto3" json:"reward_modifiers,omitempty"`
// The weight of the reward contents.
Weight int64 `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty"`
// contains filtered or unexported fields
}
The reward contents for available team rewards.
func (*AvailableTeamRewardsContents) Descriptor
deprecated
added in
v1.26.0
func (*AvailableTeamRewardsContents) Descriptor() ([]byte, []int)
Deprecated: Use AvailableTeamRewardsContents.ProtoReflect.Descriptor instead.
func (*AvailableTeamRewardsContents) GetCurrencies ¶ added in v1.26.0
func (x *AvailableTeamRewardsContents) GetCurrencies() map[string]*AvailableRewardsCurrency
func (*AvailableTeamRewardsContents) GetItemSets ¶ added in v1.26.0
func (x *AvailableTeamRewardsContents) GetItemSets() []*AvailableRewardsItemSet
func (*AvailableTeamRewardsContents) GetItems ¶ added in v1.26.0
func (x *AvailableTeamRewardsContents) GetItems() map[string]*AvailableRewardsItem
func (*AvailableTeamRewardsContents) GetRewardModifiers ¶ added in v1.26.0
func (x *AvailableTeamRewardsContents) GetRewardModifiers() []*AvailableRewardsRewardModifier
func (*AvailableTeamRewardsContents) GetWeight ¶ added in v1.26.0
func (x *AvailableTeamRewardsContents) GetWeight() int64
func (*AvailableTeamRewardsContents) ProtoMessage ¶ added in v1.26.0
func (*AvailableTeamRewardsContents) ProtoMessage()
func (*AvailableTeamRewardsContents) ProtoReflect ¶ added in v1.26.0
func (x *AvailableTeamRewardsContents) ProtoReflect() protoreflect.Message
func (*AvailableTeamRewardsContents) Reset ¶ added in v1.26.0
func (x *AvailableTeamRewardsContents) Reset()
func (*AvailableTeamRewardsContents) String ¶ added in v1.26.0
func (x *AvailableTeamRewardsContents) String() string
type BaseSystem ¶
type BaseSystem interface {
System
// RateApp uses the SMTP configuration to receive feedback from players via email.
RateApp(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, username string, score uint32, message string) (err error)
// SetDevicePrefs sets push notification tokens on a user's account so push messages can be received.
SetDevicePrefs(ctx context.Context, logger runtime.Logger, db *sql.DB, userID, deviceID, pushTokenAndroid, pushTokenIos string, preferences map[string]bool) (err error)
// Sync processes an operation to update the server with offline state changes.
Sync(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, req *SyncRequest) (resp *SyncResponse, err error)
}
The BaseSystem provides various small features which aren't large enough to be in their own gameplay systems.
type BaseSystemConfig ¶
type BaseSystemConfig struct {
RateAppSmtpAddr string `json:"rate_app_smtp_addr,omitempty"` // "smtp.gmail.com"
RateAppSmtpUsername string `json:"rate_app_smtp_username,omitempty"` // "email@domain"
RateAppSmtpPassword string `json:"rate_app_smtp_password,omitempty"` // "password"
RateAppSmtpEmailFrom string `json:"rate_app_smtp_email_from,omitempty"` // "[email protected]"
RateAppSmtpEmailFromName string `json:"rate_app_smtp_email_from_name,omitempty"` // My Game Company
RateAppSmtpEmailSubject string `json:"rate_app_smtp_email_subject,omitempty"` // "RateApp Feedback"
RateAppSmtpEmailTo string `json:"rate_app_smtp_email_to,omitempty"` // "[email protected]"
RateAppSmtpPort int `json:"rate_app_smtp_port,omitempty"` // 587
RateAppTemplate string `json:"rate_app_template"` // HTML email template
}
BaseSystemConfig is the data definition for the BaseSystem type.
type BaseSystemOption ¶ added in v1.30.0
type BaseSystemOption interface {
// contains filtered or unexported methods
}
func WithBaseSystemProfanityFilter ¶ added in v1.30.0
func WithBaseSystemProfanityFilter(fn ProfanityFilterFn) BaseSystemOption
WithBaseSystemProfanityFilter can be used to provide a specific implementation of the system's profanity filter.
func WithBaseSystemProfanityFilterChat ¶ added in v1.30.0
func WithBaseSystemProfanityFilterChat(threshold float64) BaseSystemOption
WithBaseSystemProfanityFilterChat sets the profanity filtering threshold for all chat messages, between 0.0 and 1.0. Any value above the threshold will result in a rejection. Values outside 0.0 to 1.0 range will be clamped. Default is not to filter at all.
func WithBaseSystemProfanityFilterTeamName ¶ added in v1.30.0
func WithBaseSystemProfanityFilterTeamName(threshold float64) BaseSystemOption
WithBaseSystemProfanityFilterTeamName sets the profanity filtering threshold for team names, between 0.0 and 1.0. Any value above the threshold will result in a rejection. Values outside 0.0 to 1.0 range will be clamped. Default is not to filter at all.
func WithBaseSystemProfanityFilterUsername ¶ added in v1.30.0
func WithBaseSystemProfanityFilterUsername(threshold float64) BaseSystemOption
WithBaseSystemProfanityFilterUsername sets the profanity filtering threshold for usernames, between 0.0 and 1.0. Any value above the threshold will result in a rejection. Values outside 0.0 to 1.0 range will be clamped. Default is not to filter at all.
func WithBaseSystemUsernameOverride ¶ added in v1.30.0
func WithBaseSystemUsernameOverride(fn UsernameOverrideFn) BaseSystemOption
WithBaseSystemUsernameOverride can be used to provide a different username generation strategy from the default in Nakama server.
type Challenge ¶ added in v1.23.0
type Challenge struct {
// Challenge ID.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The name of the challenge. May be an i18n code.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// A description of the challenge. May be an i18n code.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Score ordering.
Ascending bool `protobuf:"varint,4,opt,name=ascending,proto3" json:"ascending,omitempty"`
// Score submission operator.
Operator string `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator,omitempty"`
// Time when the event starts.
StartTimeSec int64 `protobuf:"varint,6,opt,name=start_time_sec,json=startTimeSec,proto3" json:"start_time_sec,omitempty"`
// Claim time, if any.
ClaimTimeSec int64 `protobuf:"varint,7,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// Time when the event ends.
EndTimeSec int64 `protobuf:"varint,8,opt,name=end_time_sec,json=endTimeSec,proto3" json:"end_time_sec,omitempty"`
// The possible reward tiers for this instance of the challenge.
RewardTiers []*ChallengeRewardTier `protobuf:"bytes,9,rep,name=reward_tiers,json=rewardTiers,proto3" json:"reward_tiers,omitempty"`
// The available reward and its probabilities.
AvailableRewards *AvailableRewards `protobuf:"bytes,10,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"` // Available to Claim
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 210-byte string literal not displayed */
// Current participant count.
Size int64 `protobuf:"varint,12,opt,name=size,proto3" json:"size,omitempty"`
// Maximum participant count.
MaxSize int64 `protobuf:"varint,13,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
// Maximum number of score submissions per participant.
MaxNumScore int64 `protobuf:"varint,14,opt,name=max_num_score,json=maxNumScore,proto3" json:"max_num_score,omitempty"`
// Participants and their scores.
Scores []*ChallengeScore `protobuf:"bytes,15,rep,name=scores,proto3" json:"scores,omitempty"`
// Indicates if the event is still active, and scores can be submitted.
IsActive bool `protobuf:"varint,16,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
// The UNIX timestamp for the current server time.
CurrentTimeSec int64 `protobuf:"varint,17,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// Whether the user can claim a reward.
CanClaim bool `protobuf:"varint,19,opt,name=can_claim,json=canClaim,proto3" json:"can_claim,omitempty"`
// The state of the user participation in the challenge.
State ChallengeState `protobuf:"varint,20,opt,name=state,proto3,enum=hiro.ChallengeState" json:"state,omitempty"`
// A claimed reward, if any.
Reward *Reward `protobuf:"bytes,21,opt,name=reward,proto3" json:"reward,omitempty"`
// The category to group the event leaderboard together with others.
Category string `protobuf:"bytes,22,opt,name=category,proto3" json:"category,omitempty"`
// Whether the challenge is open to participants beyond the initial invitees or not.
Open bool `protobuf:"varint,23,opt,name=open,proto3" json:"open,omitempty"`
// The user ID of the challenge owner.
OwnerId string `protobuf:"bytes,24,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
// Additional metadata properties.
Metadata map[string]string `` /* 158-byte string literal not displayed */
// contains filtered or unexported fields
}
A challenge leaderboard, which is a collection of participants and their scores.
func (*Challenge) Descriptor
deprecated
added in
v1.23.0
func (*Challenge) GetAdditionalProperties ¶ added in v1.23.0
func (*Challenge) GetAscending ¶ added in v1.23.0
func (*Challenge) GetAvailableRewards ¶ added in v1.23.0
func (x *Challenge) GetAvailableRewards() *AvailableRewards
func (*Challenge) GetCanClaim ¶ added in v1.23.0
func (*Challenge) GetCategory ¶ added in v1.23.0
func (*Challenge) GetClaimTimeSec ¶ added in v1.23.0
func (*Challenge) GetCurrentTimeSec ¶ added in v1.23.0
func (*Challenge) GetDescription ¶ added in v1.23.0
func (*Challenge) GetEndTimeSec ¶ added in v1.23.0
func (*Challenge) GetIsActive ¶ added in v1.23.0
func (*Challenge) GetMaxNumScore ¶ added in v1.23.0
func (*Challenge) GetMaxSize ¶ added in v1.23.0
func (*Challenge) GetMetadata ¶ added in v1.25.0
func (*Challenge) GetOperator ¶ added in v1.23.0
func (*Challenge) GetOwnerId ¶ added in v1.25.0
func (*Challenge) GetRewardTiers ¶ added in v1.23.0
func (x *Challenge) GetRewardTiers() []*ChallengeRewardTier
func (*Challenge) GetScores ¶ added in v1.23.0
func (x *Challenge) GetScores() []*ChallengeScore
func (*Challenge) GetStartTimeSec ¶ added in v1.23.0
func (*Challenge) GetState ¶ added in v1.23.0
func (x *Challenge) GetState() ChallengeState
func (*Challenge) ProtoMessage ¶ added in v1.23.0
func (*Challenge) ProtoMessage()
func (*Challenge) ProtoReflect ¶ added in v1.23.0
func (x *Challenge) ProtoReflect() protoreflect.Message
type ChallengeClaimRequest ¶ added in v1.23.0
type ChallengeClaimRequest struct {
// Challenge id.
ChallengeId string `protobuf:"bytes,1,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
// contains filtered or unexported fields
}
Request to claim a reward from a challenge, if available. It also culls the challenge once all rewards are claimed.
func (*ChallengeClaimRequest) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeClaimRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeClaimRequest.ProtoReflect.Descriptor instead.
func (*ChallengeClaimRequest) GetChallengeId ¶ added in v1.23.0
func (x *ChallengeClaimRequest) GetChallengeId() string
func (*ChallengeClaimRequest) ProtoMessage ¶ added in v1.23.0
func (*ChallengeClaimRequest) ProtoMessage()
func (*ChallengeClaimRequest) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeClaimRequest) ProtoReflect() protoreflect.Message
func (*ChallengeClaimRequest) Reset ¶ added in v1.23.0
func (x *ChallengeClaimRequest) Reset()
func (*ChallengeClaimRequest) String ¶ added in v1.23.0
func (x *ChallengeClaimRequest) String() string
type ChallengeCreateRequest ¶ added in v1.23.0
type ChallengeCreateRequest struct {
// Challenge template ID.
TemplateId string `protobuf:"bytes,1,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"`
// The name of the challenge. May be an i18n code.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// A description of the challenge. May be an i18n code.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// UserIDs of the users to challenge.
Invitees []string `protobuf:"bytes,4,rep,name=invitees,proto3" json:"invitees,omitempty"`
// Whether the challenged users have to accept the challenge or not.
Open bool `protobuf:"varint,5,opt,name=open,proto3" json:"open,omitempty"`
// Maximum number of scores a user can submit to the leaderboard.
MaxScores int64 `protobuf:"varint,6,opt,name=max_scores,json=maxScores,proto3" json:"max_scores,omitempty"`
// Start time of the challenge. Set to 0 to start immediately.
StartDelaySec int64 `protobuf:"varint,7,opt,name=start_delay_sec,json=startDelaySec,proto3" json:"start_delay_sec,omitempty"`
// Duration of the challenge. Set to 0 to have an unlimited challenge.
DurationSec int64 `protobuf:"varint,8,opt,name=duration_sec,json=durationSec,proto3" json:"duration_sec,omitempty"`
// Maximum number of participants in the challenge.
MaxParticipants int64 `protobuf:"varint,9,opt,name=max_participants,json=maxParticipants,proto3" json:"max_participants,omitempty"`
// Category of the challenge.
Category string `protobuf:"bytes,10,opt,name=category,proto3" json:"category,omitempty"`
// Additional metadata properties.
Metadata map[string]string `` /* 158-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to create a new challenge based on a template.
func (*ChallengeCreateRequest) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeCreateRequest.ProtoReflect.Descriptor instead.
func (*ChallengeCreateRequest) GetCategory ¶ added in v1.23.0
func (x *ChallengeCreateRequest) GetCategory() string
func (*ChallengeCreateRequest) GetDescription ¶ added in v1.23.0
func (x *ChallengeCreateRequest) GetDescription() string
func (*ChallengeCreateRequest) GetDurationSec ¶ added in v1.23.0
func (x *ChallengeCreateRequest) GetDurationSec() int64
func (*ChallengeCreateRequest) GetInvitees ¶ added in v1.23.0
func (x *ChallengeCreateRequest) GetInvitees() []string
func (*ChallengeCreateRequest) GetMaxParticipants ¶ added in v1.23.0
func (x *ChallengeCreateRequest) GetMaxParticipants() int64
func (*ChallengeCreateRequest) GetMaxScores ¶ added in v1.23.0
func (x *ChallengeCreateRequest) GetMaxScores() int64
func (*ChallengeCreateRequest) GetMetadata ¶ added in v1.25.0
func (x *ChallengeCreateRequest) GetMetadata() map[string]string
func (*ChallengeCreateRequest) GetName ¶ added in v1.23.0
func (x *ChallengeCreateRequest) GetName() string
func (*ChallengeCreateRequest) GetOpen ¶ added in v1.23.0
func (x *ChallengeCreateRequest) GetOpen() bool
func (*ChallengeCreateRequest) GetStartDelaySec ¶ added in v1.23.0
func (x *ChallengeCreateRequest) GetStartDelaySec() int64
func (*ChallengeCreateRequest) GetTemplateId ¶ added in v1.23.0
func (x *ChallengeCreateRequest) GetTemplateId() string
func (*ChallengeCreateRequest) ProtoMessage ¶ added in v1.23.0
func (*ChallengeCreateRequest) ProtoMessage()
func (*ChallengeCreateRequest) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeCreateRequest) ProtoReflect() protoreflect.Message
func (*ChallengeCreateRequest) Reset ¶ added in v1.23.0
func (x *ChallengeCreateRequest) Reset()
func (*ChallengeCreateRequest) String ¶ added in v1.23.0
func (x *ChallengeCreateRequest) String() string
type ChallengeGetRequest ¶ added in v1.23.0
type ChallengeGetRequest struct {
// Challenge leaderboard ID to get, and join if necessary/possible.
ChallengeId string `protobuf:"bytes,1,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
// Whether or not the response should include scores, defaults to false.
WithScores bool `protobuf:"varint,2,opt,name=with_scores,json=withScores,proto3" json:"with_scores,omitempty"`
// contains filtered or unexported fields
}
func (*ChallengeGetRequest) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeGetRequest.ProtoReflect.Descriptor instead.
func (*ChallengeGetRequest) GetChallengeId ¶ added in v1.23.0
func (x *ChallengeGetRequest) GetChallengeId() string
func (*ChallengeGetRequest) GetWithScores ¶ added in v1.23.0
func (x *ChallengeGetRequest) GetWithScores() bool
func (*ChallengeGetRequest) ProtoMessage ¶ added in v1.23.0
func (*ChallengeGetRequest) ProtoMessage()
func (*ChallengeGetRequest) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeGetRequest) ProtoReflect() protoreflect.Message
func (*ChallengeGetRequest) Reset ¶ added in v1.23.0
func (x *ChallengeGetRequest) Reset()
func (*ChallengeGetRequest) String ¶ added in v1.23.0
func (x *ChallengeGetRequest) String() string
type ChallengeInviteRequest ¶ added in v1.23.0
type ChallengeInviteRequest struct {
// Challenge id.
ChallengeId string `protobuf:"bytes,1,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
// Invitees.
Invitees []string `protobuf:"bytes,2,rep,name=invitees,proto3" json:"invitees,omitempty"`
// contains filtered or unexported fields
}
Request for the challenge creator to invite additional users to an ongoing challenge.
func (*ChallengeInviteRequest) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeInviteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeInviteRequest.ProtoReflect.Descriptor instead.
func (*ChallengeInviteRequest) GetChallengeId ¶ added in v1.23.0
func (x *ChallengeInviteRequest) GetChallengeId() string
func (*ChallengeInviteRequest) GetInvitees ¶ added in v1.23.0
func (x *ChallengeInviteRequest) GetInvitees() []string
func (*ChallengeInviteRequest) ProtoMessage ¶ added in v1.23.0
func (*ChallengeInviteRequest) ProtoMessage()
func (*ChallengeInviteRequest) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeInviteRequest) ProtoReflect() protoreflect.Message
func (*ChallengeInviteRequest) Reset ¶ added in v1.23.0
func (x *ChallengeInviteRequest) Reset()
func (*ChallengeInviteRequest) String ¶ added in v1.23.0
func (x *ChallengeInviteRequest) String() string
type ChallengeJoinRequest ¶ added in v1.23.0
type ChallengeJoinRequest struct {
// Challenge id.
ChallengeId string `protobuf:"bytes,1,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
// contains filtered or unexported fields
}
Request to join an ongoing challenge.
func (*ChallengeJoinRequest) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeJoinRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeJoinRequest.ProtoReflect.Descriptor instead.
func (*ChallengeJoinRequest) GetChallengeId ¶ added in v1.23.0
func (x *ChallengeJoinRequest) GetChallengeId() string
func (*ChallengeJoinRequest) ProtoMessage ¶ added in v1.23.0
func (*ChallengeJoinRequest) ProtoMessage()
func (*ChallengeJoinRequest) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeJoinRequest) ProtoReflect() protoreflect.Message
func (*ChallengeJoinRequest) Reset ¶ added in v1.23.0
func (x *ChallengeJoinRequest) Reset()
func (*ChallengeJoinRequest) String ¶ added in v1.23.0
func (x *ChallengeJoinRequest) String() string
type ChallengeLeaveRequest ¶ added in v1.23.0
type ChallengeLeaveRequest struct {
// Challenge id.
ChallengeId string `protobuf:"bytes,1,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
// contains filtered or unexported fields
}
Request to leave a challenge.
func (*ChallengeLeaveRequest) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeLeaveRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeLeaveRequest.ProtoReflect.Descriptor instead.
func (*ChallengeLeaveRequest) GetChallengeId ¶ added in v1.23.0
func (x *ChallengeLeaveRequest) GetChallengeId() string
func (*ChallengeLeaveRequest) ProtoMessage ¶ added in v1.23.0
func (*ChallengeLeaveRequest) ProtoMessage()
func (*ChallengeLeaveRequest) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeLeaveRequest) ProtoReflect() protoreflect.Message
func (*ChallengeLeaveRequest) Reset ¶ added in v1.23.0
func (x *ChallengeLeaveRequest) Reset()
func (*ChallengeLeaveRequest) String ¶ added in v1.23.0
func (x *ChallengeLeaveRequest) String() string
type ChallengeListRequest ¶ added in v1.23.0
type ChallengeListRequest struct {
// Optional filter of Event Leaderboard categories to list. If empty does not filter on category.
Categories []string `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"`
// Whether or not the response should include scores, defaults to false.
WithScores bool `protobuf:"varint,2,opt,name=with_scores,json=withScores,proto3" json:"with_scores,omitempty"`
// contains filtered or unexported fields
}
Retrieve available challenge leaderboards.
func (*ChallengeListRequest) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeListRequest.ProtoReflect.Descriptor instead.
func (*ChallengeListRequest) GetCategories ¶ added in v1.23.0
func (x *ChallengeListRequest) GetCategories() []string
func (*ChallengeListRequest) GetWithScores ¶ added in v1.23.0
func (x *ChallengeListRequest) GetWithScores() bool
func (*ChallengeListRequest) ProtoMessage ¶ added in v1.23.0
func (*ChallengeListRequest) ProtoMessage()
func (*ChallengeListRequest) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeListRequest) ProtoReflect() protoreflect.Message
func (*ChallengeListRequest) Reset ¶ added in v1.23.0
func (x *ChallengeListRequest) Reset()
func (*ChallengeListRequest) String ¶ added in v1.23.0
func (x *ChallengeListRequest) String() string
type ChallengeMaxMinPlayers ¶ added in v1.23.0
type ChallengeMaxMinPlayers struct {
// The minimum number of players that can participate in the challenge.
Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"`
// The maximum number of players that can participate in the challenge.
Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
// contains filtered or unexported fields
}
The minimum and maximum number of players that can participate in the challenge.
func (*ChallengeMaxMinPlayers) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeMaxMinPlayers) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeMaxMinPlayers.ProtoReflect.Descriptor instead.
func (*ChallengeMaxMinPlayers) GetMax ¶ added in v1.23.0
func (x *ChallengeMaxMinPlayers) GetMax() int64
func (*ChallengeMaxMinPlayers) GetMin ¶ added in v1.23.0
func (x *ChallengeMaxMinPlayers) GetMin() int64
func (*ChallengeMaxMinPlayers) ProtoMessage ¶ added in v1.23.0
func (*ChallengeMaxMinPlayers) ProtoMessage()
func (*ChallengeMaxMinPlayers) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeMaxMinPlayers) ProtoReflect() protoreflect.Message
func (*ChallengeMaxMinPlayers) Reset ¶ added in v1.23.0
func (x *ChallengeMaxMinPlayers) Reset()
func (*ChallengeMaxMinPlayers) String ¶ added in v1.23.0
func (x *ChallengeMaxMinPlayers) String() string
type ChallengeMinMaxDuration ¶ added in v1.23.0
type ChallengeMinMaxDuration struct {
// The minimum duration of challenge.
MinSec int64 `protobuf:"varint,1,opt,name=min_sec,json=minSec,proto3" json:"min_sec,omitempty"`
// The maximum duration of challenge.
MaxSec int64 `protobuf:"varint,2,opt,name=max_sec,json=maxSec,proto3" json:"max_sec,omitempty"`
// contains filtered or unexported fields
}
The minimum and maximum duration that can be set for the challenge.
func (*ChallengeMinMaxDuration) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeMinMaxDuration) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeMinMaxDuration.ProtoReflect.Descriptor instead.
func (*ChallengeMinMaxDuration) GetMaxSec ¶ added in v1.23.0
func (x *ChallengeMinMaxDuration) GetMaxSec() int64
func (*ChallengeMinMaxDuration) GetMinSec ¶ added in v1.23.0
func (x *ChallengeMinMaxDuration) GetMinSec() int64
func (*ChallengeMinMaxDuration) ProtoMessage ¶ added in v1.23.0
func (*ChallengeMinMaxDuration) ProtoMessage()
func (*ChallengeMinMaxDuration) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeMinMaxDuration) ProtoReflect() protoreflect.Message
func (*ChallengeMinMaxDuration) Reset ¶ added in v1.23.0
func (x *ChallengeMinMaxDuration) Reset()
func (*ChallengeMinMaxDuration) String ¶ added in v1.23.0
func (x *ChallengeMinMaxDuration) String() string
type ChallengeRewardTier ¶ added in v1.23.0
type ChallengeRewardTier struct {
// The maximum rank (inclusive).
RankMax int64 `protobuf:"varint,1,opt,name=rank_max,json=rankMax,proto3" json:"rank_max,omitempty"`
// The minimum rank (inclusive).
RankMin int64 `protobuf:"varint,2,opt,name=rank_min,json=rankMin,proto3" json:"rank_min,omitempty"`
// The available rewards for this range.
AvailableRewards *AvailableRewards `protobuf:"bytes,3,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// contains filtered or unexported fields
}
The reward tiers for the challenge.
func (*ChallengeRewardTier) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeRewardTier) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeRewardTier.ProtoReflect.Descriptor instead.
func (*ChallengeRewardTier) GetAvailableRewards ¶ added in v1.23.0
func (x *ChallengeRewardTier) GetAvailableRewards() *AvailableRewards
func (*ChallengeRewardTier) GetRankMax ¶ added in v1.23.0
func (x *ChallengeRewardTier) GetRankMax() int64
func (*ChallengeRewardTier) GetRankMin ¶ added in v1.23.0
func (x *ChallengeRewardTier) GetRankMin() int64
func (*ChallengeRewardTier) ProtoMessage ¶ added in v1.23.0
func (*ChallengeRewardTier) ProtoMessage()
func (*ChallengeRewardTier) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeRewardTier) ProtoReflect() protoreflect.Message
func (*ChallengeRewardTier) Reset ¶ added in v1.23.0
func (x *ChallengeRewardTier) Reset()
func (*ChallengeRewardTier) String ¶ added in v1.23.0
func (x *ChallengeRewardTier) String() string
type ChallengeScore ¶ added in v1.23.0
type ChallengeScore struct {
// User ID.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Username.
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// Display name.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Avatar URL.
AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
// Time when the user joined the challenge leaderboard.
CreateTimeSec int64 `protobuf:"varint,5,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// Time when the user last submitted a score.
UpdateTimeSec int64 `protobuf:"varint,6,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Rank within the event leaderboard.
Rank int64 `protobuf:"varint,7,opt,name=rank,proto3" json:"rank,omitempty"`
// Score.
Score int64 `protobuf:"varint,8,opt,name=score,proto3" json:"score,omitempty"`
// Subscore.
Subscore int64 `protobuf:"varint,9,opt,name=subscore,proto3" json:"subscore,omitempty"`
// Number of score submissions.
NumScores int64 `protobuf:"varint,10,opt,name=num_scores,json=numScores,proto3" json:"num_scores,omitempty"`
// Metadata.
Metadata string `protobuf:"bytes,11,opt,name=metadata,proto3" json:"metadata,omitempty"`
// The state of the user participation in the challenge.
State ChallengeState `protobuf:"varint,12,opt,name=state,proto3,enum=hiro.ChallengeState" json:"state,omitempty"`
// contains filtered or unexported fields
}
A single participant entry to an event leaderboard.
func (*ChallengeScore) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeScore) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeScore.ProtoReflect.Descriptor instead.
func (*ChallengeScore) GetAvatarUrl ¶ added in v1.23.0
func (x *ChallengeScore) GetAvatarUrl() string
func (*ChallengeScore) GetCreateTimeSec ¶ added in v1.23.0
func (x *ChallengeScore) GetCreateTimeSec() int64
func (*ChallengeScore) GetDisplayName ¶ added in v1.23.0
func (x *ChallengeScore) GetDisplayName() string
func (*ChallengeScore) GetId ¶ added in v1.23.0
func (x *ChallengeScore) GetId() string
func (*ChallengeScore) GetMetadata ¶ added in v1.23.0
func (x *ChallengeScore) GetMetadata() string
func (*ChallengeScore) GetNumScores ¶ added in v1.23.0
func (x *ChallengeScore) GetNumScores() int64
func (*ChallengeScore) GetRank ¶ added in v1.23.0
func (x *ChallengeScore) GetRank() int64
func (*ChallengeScore) GetScore ¶ added in v1.23.0
func (x *ChallengeScore) GetScore() int64
func (*ChallengeScore) GetState ¶ added in v1.23.0
func (x *ChallengeScore) GetState() ChallengeState
func (*ChallengeScore) GetSubscore ¶ added in v1.23.0
func (x *ChallengeScore) GetSubscore() int64
func (*ChallengeScore) GetUpdateTimeSec ¶ added in v1.23.0
func (x *ChallengeScore) GetUpdateTimeSec() int64
func (*ChallengeScore) GetUsername ¶ added in v1.23.0
func (x *ChallengeScore) GetUsername() string
func (*ChallengeScore) ProtoMessage ¶ added in v1.23.0
func (*ChallengeScore) ProtoMessage()
func (*ChallengeScore) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeScore) ProtoReflect() protoreflect.Message
func (*ChallengeScore) Reset ¶ added in v1.23.0
func (x *ChallengeScore) Reset()
func (*ChallengeScore) String ¶ added in v1.23.0
func (x *ChallengeScore) String() string
type ChallengeSearchRequest ¶ added in v1.23.0
type ChallengeSearchRequest struct {
// Optional name of challenge to filter by.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional category of challenge to filter by.
Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
// Maximum number of results to return.
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
Request to search for open challenges to join.
func (*ChallengeSearchRequest) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeSearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeSearchRequest.ProtoReflect.Descriptor instead.
func (*ChallengeSearchRequest) GetCategory ¶ added in v1.23.0
func (x *ChallengeSearchRequest) GetCategory() string
func (*ChallengeSearchRequest) GetLimit ¶ added in v1.23.0
func (x *ChallengeSearchRequest) GetLimit() int64
func (*ChallengeSearchRequest) GetName ¶ added in v1.23.0
func (x *ChallengeSearchRequest) GetName() string
func (*ChallengeSearchRequest) ProtoMessage ¶ added in v1.23.0
func (*ChallengeSearchRequest) ProtoMessage()
func (*ChallengeSearchRequest) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeSearchRequest) ProtoReflect() protoreflect.Message
func (*ChallengeSearchRequest) Reset ¶ added in v1.23.0
func (x *ChallengeSearchRequest) Reset()
func (*ChallengeSearchRequest) String ¶ added in v1.23.0
func (x *ChallengeSearchRequest) String() string
type ChallengeState ¶ added in v1.23.0
type ChallengeState int32
The state of a user's participation in a challenge.
const ( // There is no applicable state ChallengeState_CHALLENGE_STATE_NONE ChallengeState = 0 // The user has a pending invitation to the challenge. ChallengeState_CHALLENGE_STATE_INVITED ChallengeState = 1 // The challenge was accepted. ChallengeState_CHALLENGE_STATE_JOINED ChallengeState = 2 // The challenge was claimed. ChallengeState_CHALLENGE_STATE_CLAIMED ChallengeState = 3 // The challenge was declined. ChallengeState_CHALLENGE_STATE_DECLINED ChallengeState = 4 // The challenge was joined but later left. ChallengeState_CHALLENGE_STATE_LEFT ChallengeState = 5 )
func (ChallengeState) Descriptor ¶ added in v1.23.0
func (ChallengeState) Descriptor() protoreflect.EnumDescriptor
func (ChallengeState) Enum ¶ added in v1.23.0
func (x ChallengeState) Enum() *ChallengeState
func (ChallengeState) EnumDescriptor
deprecated
added in
v1.23.0
func (ChallengeState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChallengeState.Descriptor instead.
func (ChallengeState) Number ¶ added in v1.23.0
func (x ChallengeState) Number() protoreflect.EnumNumber
func (ChallengeState) String ¶ added in v1.23.0
func (x ChallengeState) String() string
func (ChallengeState) Type ¶ added in v1.23.0
func (ChallengeState) Type() protoreflect.EnumType
type ChallengeSubmitScoreRequest ¶ added in v1.23.0
type ChallengeSubmitScoreRequest struct {
// Challenge ID.
ChallengeId string `protobuf:"bytes,1,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
// Score.
Score int64 `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"`
// Subscore.
Subscore int64 `protobuf:"varint,3,opt,name=subscore,proto3" json:"subscore,omitempty"`
// Metadata.
Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
// Update metadata only if score or subscore change.
ConditionalMetadataUpdate bool `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to submit a score to an active challenge.
func (*ChallengeSubmitScoreRequest) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeSubmitScoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeSubmitScoreRequest.ProtoReflect.Descriptor instead.
func (*ChallengeSubmitScoreRequest) GetChallengeId ¶ added in v1.23.0
func (x *ChallengeSubmitScoreRequest) GetChallengeId() string
func (*ChallengeSubmitScoreRequest) GetConditionalMetadataUpdate ¶ added in v1.26.0
func (x *ChallengeSubmitScoreRequest) GetConditionalMetadataUpdate() bool
func (*ChallengeSubmitScoreRequest) GetMetadata ¶ added in v1.23.0
func (x *ChallengeSubmitScoreRequest) GetMetadata() string
func (*ChallengeSubmitScoreRequest) GetScore ¶ added in v1.23.0
func (x *ChallengeSubmitScoreRequest) GetScore() int64
func (*ChallengeSubmitScoreRequest) GetSubscore ¶ added in v1.23.0
func (x *ChallengeSubmitScoreRequest) GetSubscore() int64
func (*ChallengeSubmitScoreRequest) ProtoMessage ¶ added in v1.23.0
func (*ChallengeSubmitScoreRequest) ProtoMessage()
func (*ChallengeSubmitScoreRequest) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeSubmitScoreRequest) ProtoReflect() protoreflect.Message
func (*ChallengeSubmitScoreRequest) Reset ¶ added in v1.23.0
func (x *ChallengeSubmitScoreRequest) Reset()
func (*ChallengeSubmitScoreRequest) String ¶ added in v1.23.0
func (x *ChallengeSubmitScoreRequest) String() string
type ChallengeTemplate ¶ added in v1.23.0
type ChallengeTemplate struct {
// The possible reward tiers for this instance of the challenge.
RewardTiers []*ChallengeRewardTier `protobuf:"bytes,1,rep,name=reward_tiers,json=rewardTiers,proto3" json:"reward_tiers,omitempty"`
// The min and max players of the challenge.
Players *ChallengeMaxMinPlayers `protobuf:"bytes,2,opt,name=players,proto3" json:"players,omitempty"`
// The min and max duration that can be set for the challenge.
Duration *ChallengeMinMaxDuration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"`
// The maximum amount of delay before the challenge begins for participants.
StartDelayMax int64 `protobuf:"varint,4,opt,name=start_delay_max,json=startDelayMax,proto3" json:"start_delay_max,omitempty"`
// The maximum number of scores that can be submitted to the challenge.
MaxNumScore int64 `protobuf:"varint,5,opt,name=max_num_score,json=maxNumScore,proto3" json:"max_num_score,omitempty"`
// The ordering of the challenge scores.
Ascending bool `protobuf:"varint,6,opt,name=ascending,proto3" json:"ascending,omitempty"`
// The operator of the challenge score submission.
Operator string `protobuf:"bytes,7,opt,name=operator,proto3" json:"operator,omitempty"`
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 209-byte string literal not displayed */
// contains filtered or unexported fields
}
An individually usable challenge template.
func (*ChallengeTemplate) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeTemplate) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeTemplate.ProtoReflect.Descriptor instead.
func (*ChallengeTemplate) GetAdditionalProperties ¶ added in v1.24.0
func (x *ChallengeTemplate) GetAdditionalProperties() map[string]string
func (*ChallengeTemplate) GetAscending ¶ added in v1.23.0
func (x *ChallengeTemplate) GetAscending() bool
func (*ChallengeTemplate) GetDuration ¶ added in v1.23.0
func (x *ChallengeTemplate) GetDuration() *ChallengeMinMaxDuration
func (*ChallengeTemplate) GetMaxNumScore ¶ added in v1.23.0
func (x *ChallengeTemplate) GetMaxNumScore() int64
func (*ChallengeTemplate) GetOperator ¶ added in v1.23.0
func (x *ChallengeTemplate) GetOperator() string
func (*ChallengeTemplate) GetPlayers ¶ added in v1.23.0
func (x *ChallengeTemplate) GetPlayers() *ChallengeMaxMinPlayers
func (*ChallengeTemplate) GetRewardTiers ¶ added in v1.23.0
func (x *ChallengeTemplate) GetRewardTiers() []*ChallengeRewardTier
func (*ChallengeTemplate) GetStartDelayMax ¶ added in v1.23.0
func (x *ChallengeTemplate) GetStartDelayMax() int64
func (*ChallengeTemplate) ProtoMessage ¶ added in v1.23.0
func (*ChallengeTemplate) ProtoMessage()
func (*ChallengeTemplate) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeTemplate) ProtoReflect() protoreflect.Message
func (*ChallengeTemplate) Reset ¶ added in v1.23.0
func (x *ChallengeTemplate) Reset()
func (*ChallengeTemplate) String ¶ added in v1.23.0
func (x *ChallengeTemplate) String() string
type ChallengeTemplates ¶ added in v1.23.0
type ChallengeTemplates struct {
// All available challenges templates, keyed by a unique identifier.
Templates map[string]*ChallengeTemplate `` /* 159-byte string literal not displayed */
// contains filtered or unexported fields
}
Get all available challenge templates.
func (*ChallengeTemplates) Descriptor
deprecated
added in
v1.23.0
func (*ChallengeTemplates) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeTemplates.ProtoReflect.Descriptor instead.
func (*ChallengeTemplates) GetTemplates ¶ added in v1.23.0
func (x *ChallengeTemplates) GetTemplates() map[string]*ChallengeTemplate
func (*ChallengeTemplates) ProtoMessage ¶ added in v1.23.0
func (*ChallengeTemplates) ProtoMessage()
func (*ChallengeTemplates) ProtoReflect ¶ added in v1.23.0
func (x *ChallengeTemplates) ProtoReflect() protoreflect.Message
func (*ChallengeTemplates) Reset ¶ added in v1.23.0
func (x *ChallengeTemplates) Reset()
func (*ChallengeTemplates) String ¶ added in v1.23.0
func (x *ChallengeTemplates) String() string
type ChallengesConfig ¶ added in v1.23.0
type ChallengesConfig struct {
Challenges map[string]*ChallengesConfigChallenge `json:"challenges,omitempty"`
}
type ChallengesConfigChallenge ¶ added in v1.23.0
type ChallengesConfigChallenge struct {
RewardTiers []*ChallengesConfigChallengeRewardTier `json:"reward_tiers,omitempty"`
AdditionalProperties map[string]string `json:"additional_properties,omitempty"`
MaxNumScore int64 `json:"max_num_score,omitempty"`
StartDelayMaxSec int64 `json:"start_delay_max_sec,omitempty"`
Ascending bool `json:"ascending,omitempty"`
Operator string `json:"operator,omitempty"`
Duration *ChallengesConfigDuration `json:"duration,omitempty"`
Players *ChallengesConfigPlayers `json:"players,omitempty"`
}
type ChallengesConfigChallengeRewardTier ¶ added in v1.23.0
type ChallengesConfigChallengeRewardTier struct {
RankMax int64 `json:"rank_max,omitempty"`
RankMin int64 `json:"rank_min,omitempty"`
Reward *EconomyConfigReward `json:"reward,omitempty"`
}
type ChallengesConfigDuration ¶ added in v1.25.0
type ChallengesConfigPlayers ¶ added in v1.23.0
type ChallengesList ¶ added in v1.23.0
type ChallengesList struct {
// Zero or more challenges.
Challenges []*Challenge `protobuf:"bytes,1,rep,name=challenges,proto3" json:"challenges,omitempty"`
// contains filtered or unexported fields
}
Several challenges the user has access to, resulting from a listing operation.
func (*ChallengesList) Descriptor
deprecated
added in
v1.23.0
func (*ChallengesList) Descriptor() ([]byte, []int)
Deprecated: Use ChallengesList.ProtoReflect.Descriptor instead.
func (*ChallengesList) GetChallenges ¶ added in v1.23.0
func (x *ChallengesList) GetChallenges() []*Challenge
func (*ChallengesList) ProtoMessage ¶ added in v1.23.0
func (*ChallengesList) ProtoMessage()
func (*ChallengesList) ProtoReflect ¶ added in v1.23.0
func (x *ChallengesList) ProtoReflect() protoreflect.Message
func (*ChallengesList) Reset ¶ added in v1.23.0
func (x *ChallengesList) Reset()
func (*ChallengesList) String ¶ added in v1.23.0
func (x *ChallengesList) String() string
type ChallengesSystem ¶ added in v1.23.0
type ChallengesSystem interface {
System
// GetTemplates lists all available challenge configurations that can be used to create new challenges.
GetTemplates(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string) (*ChallengeTemplates, error)
// Get returns a challenge the user has been invited to or which is participating in.
Get(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, challengeId, userId string, withScores bool) (*Challenge, error)
// List Lists all the user's pending or joined challenges.
List(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userId string, categories []string, withScores bool) ([]*Challenge, error)
// Create a new challenge for a list of users.
Create(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userId, templateId, name, description, category string, open bool, startDelaySec, durationSec int64, invitees []string, maxPlayers int64, metadata map[string]string) (*Challenge, error)
// Invite allows the creator of a challenge to invite more players to it.
Invite(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userId, challengeId string, invitees []string) (challenge *Challenge, err error)
// Join Joins a challenge the user's been invited to.
Join(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userId, challengeId string) (*Challenge, error)
// Leave rejects a challenge invitation or abandons a joined challenge.
Leave(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userId, challengeId string) (*Challenge, error)
// SubmitScore submits a new score to the challenge.
SubmitScore(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userId, challengeId string, score, subscore int64, metadata map[string]any, conditionalMetadataUpdate bool) (challenge *Challenge, err error)
// Search allows to find open challenges that are not full.
Search(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, name, category string, limit int) ([]*Challenge, error)
// Claim claims a reward of a challenge, if any.
Claim(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userId, challengeId string) (*Challenge, error)
// SetOnReward sets a custom reward function which will run after a challenge reward has been claimed.
SetOnReward(fn OnReward[*Challenge])
}
type ChannelMessageAck ¶ added in v1.0.4
type ChannelMessageAck struct {
// The channel the message was sent to.
ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
// The unique ID assigned to the message.
MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
// The code representing a message type or category.
Code int32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"`
// Username of the message sender.
Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
CreateTime int64 `protobuf:"varint,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
UpdateTime int64 `protobuf:"varint,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// True if the message was persisted to the channel's history, false otherwise.
Persistent bool `protobuf:"varint,7,opt,name=persistent,proto3" json:"persistent,omitempty"`
// The name of the chat room, or an empty string if this message was not sent through a chat room.
RoomName string `protobuf:"bytes,8,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"`
// The ID of the group, or an empty string if this message was not sent through a group channel.
GroupId string `protobuf:"bytes,9,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
// The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
UserIdOne string `protobuf:"bytes,10,opt,name=user_id_one,json=userIdOne,proto3" json:"user_id_one,omitempty"`
// The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
UserIdTwo string `protobuf:"bytes,11,opt,name=user_id_two,json=userIdTwo,proto3" json:"user_id_two,omitempty"`
// contains filtered or unexported fields
}
A receipt reply from a channel message send operation.
func (*ChannelMessageAck) Descriptor
deprecated
added in
v1.0.4
func (*ChannelMessageAck) Descriptor() ([]byte, []int)
Deprecated: Use ChannelMessageAck.ProtoReflect.Descriptor instead.
func (*ChannelMessageAck) GetChannelId ¶ added in v1.0.4
func (x *ChannelMessageAck) GetChannelId() string
func (*ChannelMessageAck) GetCode ¶ added in v1.0.4
func (x *ChannelMessageAck) GetCode() int32
func (*ChannelMessageAck) GetCreateTime ¶ added in v1.0.4
func (x *ChannelMessageAck) GetCreateTime() int64
func (*ChannelMessageAck) GetGroupId ¶ added in v1.0.4
func (x *ChannelMessageAck) GetGroupId() string
func (*ChannelMessageAck) GetMessageId ¶ added in v1.0.4
func (x *ChannelMessageAck) GetMessageId() string
func (*ChannelMessageAck) GetPersistent ¶ added in v1.0.4
func (x *ChannelMessageAck) GetPersistent() bool
func (*ChannelMessageAck) GetRoomName ¶ added in v1.0.4
func (x *ChannelMessageAck) GetRoomName() string
func (*ChannelMessageAck) GetUpdateTime ¶ added in v1.0.4
func (x *ChannelMessageAck) GetUpdateTime() int64
func (*ChannelMessageAck) GetUserIdOne ¶ added in v1.0.4
func (x *ChannelMessageAck) GetUserIdOne() string
func (*ChannelMessageAck) GetUserIdTwo ¶ added in v1.0.4
func (x *ChannelMessageAck) GetUserIdTwo() string
func (*ChannelMessageAck) GetUsername ¶ added in v1.0.4
func (x *ChannelMessageAck) GetUsername() string
func (*ChannelMessageAck) ProtoMessage ¶ added in v1.0.4
func (*ChannelMessageAck) ProtoMessage()
func (*ChannelMessageAck) ProtoReflect ¶ added in v1.0.4
func (x *ChannelMessageAck) ProtoReflect() protoreflect.Message
func (*ChannelMessageAck) Reset ¶ added in v1.0.4
func (x *ChannelMessageAck) Reset()
func (*ChannelMessageAck) String ¶ added in v1.0.4
func (x *ChannelMessageAck) String() string
type CollectionResolverFn ¶ added in v1.11.0
type ConfigSource ¶ added in v1.22.0
type ConfigSource[T any] func(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, configID string) (T, error)
ConfigSource is a function which can be used to provide additional on-demand configuration data to a requesting system.
type DevicePrefsRequest ¶
type DevicePrefsRequest struct {
// The device ID to set.
DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
// The push token from the Android device. This or 'push_token_ios' must be set.
PushTokenAndroid string `protobuf:"bytes,2,opt,name=push_token_android,json=pushTokenAndroid,proto3" json:"push_token_android,omitempty"`
// The push token from the iOS device. This or 'push_token_android' must be set.
PushTokenIos string `protobuf:"bytes,3,opt,name=push_token_ios,json=pushTokenIos,proto3" json:"push_token_ios,omitempty"`
// Additional device preferences for push events. Must be owned by the user.
Preferences map[string]bool `` /* 164-byte string literal not displayed */
// contains filtered or unexported fields
}
Update or create the mobile push device tokens and preferences.
func (*DevicePrefsRequest) Descriptor
deprecated
func (*DevicePrefsRequest) Descriptor() ([]byte, []int)
Deprecated: Use DevicePrefsRequest.ProtoReflect.Descriptor instead.
func (*DevicePrefsRequest) GetDeviceId ¶
func (x *DevicePrefsRequest) GetDeviceId() string
func (*DevicePrefsRequest) GetPreferences ¶
func (x *DevicePrefsRequest) GetPreferences() map[string]bool
func (*DevicePrefsRequest) GetPushTokenAndroid ¶
func (x *DevicePrefsRequest) GetPushTokenAndroid() string
func (*DevicePrefsRequest) GetPushTokenIos ¶
func (x *DevicePrefsRequest) GetPushTokenIos() string
func (*DevicePrefsRequest) ProtoMessage ¶
func (*DevicePrefsRequest) ProtoMessage()
func (*DevicePrefsRequest) ProtoReflect ¶
func (x *DevicePrefsRequest) ProtoReflect() protoreflect.Message
func (*DevicePrefsRequest) Reset ¶
func (x *DevicePrefsRequest) Reset()
func (*DevicePrefsRequest) String ¶
func (x *DevicePrefsRequest) String() string
type EconomyConfig ¶
type EconomyConfig struct {
InitializeUser *EconomyConfigInitializeUser `json:"initialize_user,omitempty"`
Donations map[string]*EconomyConfigDonation `json:"donations,omitempty"`
StoreItems map[string]*EconomyConfigStoreItem `json:"store_items,omitempty"`
Placements map[string]*EconomyConfigPlacement `json:"placements,omitempty"`
AllowFakeReceipts bool `json:"allow_fake_receipts,omitempty"`
SkuUses map[string]int `json:"-"` // Auto-computed map to track how many store items use each specific SKU, populated when the config is read or personalized.
}
EconomyConfig is the data definition for the EconomySystem type.
type EconomyConfigDonation ¶
type EconomyConfigDonation struct {
Cost *EconomyConfigDonationCost `json:"cost,omitempty"`
Count int64 `json:"count,omitempty"`
Description string `json:"description,omitempty"`
DurationSec int64 `json:"duration_sec,omitempty"`
MaxCount int64 `json:"max_count,omitempty"`
Name string `json:"name,omitempty"`
RecipientReward *EconomyConfigReward `json:"recipient_reward,omitempty"`
ContributorReward *EconomyConfigReward `json:"contributor_reward,omitempty"`
UserContributionMaxCount int64 `json:"user_contribution_max_count,omitempty"`
AdditionalProperties map[string]string `json:"additional_properties,omitempty"`
}
type EconomyConfigPlacement ¶
type EconomyConfigPlacement struct {
Reward *EconomyConfigReward `json:"reward,omitempty"`
AdditionalProperties map[string]string `json:"additional_properties,omitempty"`
}
type EconomyConfigReward ¶
type EconomyConfigReward struct {
Guaranteed *EconomyConfigRewardContents `json:"guaranteed,omitempty"`
Weighted []*EconomyConfigRewardContents `json:"weighted,omitempty"`
MaxRolls int64 `json:"max_rolls,omitempty"`
MaxRepeatRolls int64 `json:"max_repeat_rolls,omitempty"`
TotalWeight int64 `json:"total_weight,omitempty"`
ToMailboxExpirySec int64 `json:"to_mailbox_expiry_sec,omitempty"`
TeamReward *EconomyConfigTeamReward `json:"team_reward,omitempty"`
Message string `json:"message,omitempty"`
}
type EconomyConfigRewardContents ¶
type EconomyConfigRewardContents struct {
Items map[string]*EconomyConfigRewardItem `json:"items,omitempty"`
ItemSets []*EconomyConfigRewardItemSet `json:"item_sets,omitempty"`
Currencies map[string]*EconomyConfigRewardCurrency `json:"currencies,omitempty"`
Energies map[string]*EconomyConfigRewardEnergy `json:"energies,omitempty"`
EnergyModifiers []*EconomyConfigRewardEnergyModifier `json:"energy_modifiers,omitempty"`
RewardModifiers []*EconomyConfigRewardRewardModifier `json:"reward_modifiers,omitempty"`
Weight int64 `json:"weight,omitempty"`
}
type EconomyConfigRewardCurrency ¶
type EconomyConfigRewardCurrency struct {
EconomyConfigRewardRangeInt64
}
type EconomyConfigRewardEnergy ¶
type EconomyConfigRewardEnergy struct {
EconomyConfigRewardRangeInt32
}
type EconomyConfigRewardEnergyModifier ¶
type EconomyConfigRewardEnergyModifier struct {
Id string `json:"id,omitempty"`
Operator string `json:"operator,omitempty"`
Value *EconomyConfigRewardRangeInt64 `json:"value,omitempty"`
DurationSec *EconomyConfigRewardRangeUInt64 `json:"duration_sec,omitempty"`
}
type EconomyConfigRewardItem ¶
type EconomyConfigRewardItem struct {
EconomyConfigRewardRangeInt64
StringProperties map[string]*EconomyConfigRewardStringProperty `json:"string_properties,omitempty"`
NumericProperties map[string]*EconomyConfigRewardRangeFloat64 `json:"numeric_properties,omitempty"`
}
type EconomyConfigRewardItemSet ¶
type EconomyConfigRewardItemSet struct {
EconomyConfigRewardRangeInt64
MaxRepeats int64 `json:"max_repeats,omitempty"`
Set []string `json:"set,omitempty"`
}
type EconomyConfigRewardRangeFloat64 ¶ added in v1.10.0
type EconomyConfigRewardRangeUInt64 ¶ added in v1.10.0
type EconomyConfigRewardRewardModifier ¶
type EconomyConfigRewardRewardModifier struct {
Id string `json:"id,omitempty"`
Type string `json:"type,omitempty"`
Operator string `json:"operator,omitempty"`
Value *EconomyConfigRewardRangeInt64 `json:"value,omitempty"`
DurationSec *EconomyConfigRewardRangeUInt64 `json:"duration_sec,omitempty"`
}
type EconomyConfigRewardStringProperty ¶ added in v1.10.0
type EconomyConfigRewardStringProperty struct {
TotalWeight int64 `json:"total_weight,omitempty"`
Options map[string]*EconomyConfigRewardStringPropertyOption `json:"options,omitempty"`
}
type EconomyConfigRewardStringPropertyOption ¶ added in v1.10.0
type EconomyConfigRewardStringPropertyOption struct {
Weight int64 `json:"weight,omitempty"`
}
type EconomyConfigStoreItem ¶
type EconomyConfigStoreItem struct {
Category string `json:"category,omitempty"`
Cost *EconomyConfigStoreItemCost `json:"cost,omitempty"`
Description string `json:"description,omitempty"`
Name string `json:"name,omitempty"`
Reward *EconomyConfigReward `json:"reward,omitempty"`
AdditionalProperties map[string]string `json:"additional_properties,omitempty"`
Disabled bool `json:"disabled,omitempty"`
}
type EconomyConfigTeamMemberReward ¶ added in v1.26.0
type EconomyConfigTeamMemberReward struct {
Guaranteed *EconomyConfigRewardContents `json:"guaranteed,omitempty"`
Weighted []*EconomyConfigRewardContents `json:"weighted,omitempty"`
MaxRolls int64 `json:"max_rolls,omitempty"`
MaxRepeatRolls int64 `json:"max_repeat_rolls,omitempty"`
TotalWeight int64 `json:"total_weight,omitempty"`
ToMailboxExpirySec int64 `json:"to_mailbox_expiry_sec,omitempty"`
}
type EconomyConfigTeamReward ¶ added in v1.26.0
type EconomyConfigTeamReward struct {
Guaranteed *EconomyConfigTeamRewardContents `json:"guaranteed,omitempty"`
Weighted []*EconomyConfigTeamRewardContents `json:"weighted,omitempty"`
MaxRolls int64 `json:"max_rolls,omitempty"`
MaxRepeatRolls int64 `json:"max_repeat_rolls,omitempty"`
TotalWeight int64 `json:"total_weight,omitempty"`
ToMailboxExpirySec int64 `json:"to_mailbox_expiry_sec,omitempty"`
MemberReward *EconomyConfigTeamMemberReward `json:"member_reward,omitempty"`
}
type EconomyConfigTeamRewardContents ¶ added in v1.26.0
type EconomyConfigTeamRewardContents struct {
Items map[string]*EconomyConfigRewardItem `json:"items,omitempty"`
ItemSets []*EconomyConfigRewardItemSet `json:"item_sets,omitempty"`
Currencies map[string]*EconomyConfigRewardCurrency `json:"currencies,omitempty"`
RewardModifiers []*EconomyConfigRewardRewardModifier `json:"reward_modifiers,omitempty"`
Weight int64 `json:"weight,omitempty"`
}
type EconomyDonation ¶
type EconomyDonation struct {
// The user that owns this donation.
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// The count of how much of the donation has already been claimed.
ClaimCount int64 `protobuf:"varint,2,opt,name=claim_count,json=claimCount,proto3" json:"claim_count,omitempty"`
// The count of how much has been contributed by users.
Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
// The UNIX timestamp for the current time.
CurrentTimeSec int64 `protobuf:"varint,4,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// The description for the donation, if any. May be an i18n code.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// The UNIX timestamp when the donation expires.
ExpireTimeSec int64 `protobuf:"varint,6,opt,name=expire_time_sec,json=expireTimeSec,proto3" json:"expire_time_sec,omitempty"`
// The ID of the donation.
Id string `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
// The maximum "units" which can be collected.
MaxCount int64 `protobuf:"varint,8,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"`
// The name for the donation, if any. May be an i18n code.
Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"`
// The configuration for rewards granted to the recipient of the donation.
RecipientAvailableRewards *AvailableRewards `` /* 139-byte string literal not displayed */
// The maximum number of donations per contributor.
UserContributionMaxCount int64 `` /* 139-byte string literal not displayed */
// The contributors to this donation, if any.
Contributors []*EconomyDonationContributor `protobuf:"bytes,12,rep,name=contributors,proto3" json:"contributors,omitempty"`
// The configuration for rewards granted to the contributor of the donation.
ContributorAvailableRewards *AvailableRewards `` /* 145-byte string literal not displayed */
// All rewards claimed by the recipient of this donation.
RecipientRewards []*Reward `protobuf:"bytes,14,rep,name=recipient_rewards,json=recipientRewards,proto3" json:"recipient_rewards,omitempty"`
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 210-byte string literal not displayed */
// contains filtered or unexported fields
}
A donation for a user.
func (*EconomyDonation) Descriptor
deprecated
func (*EconomyDonation) Descriptor() ([]byte, []int)
Deprecated: Use EconomyDonation.ProtoReflect.Descriptor instead.
func (*EconomyDonation) GetAdditionalProperties ¶
func (x *EconomyDonation) GetAdditionalProperties() map[string]string
func (*EconomyDonation) GetClaimCount ¶
func (x *EconomyDonation) GetClaimCount() int64
func (*EconomyDonation) GetContributorAvailableRewards ¶
func (x *EconomyDonation) GetContributorAvailableRewards() *AvailableRewards
func (*EconomyDonation) GetContributors ¶
func (x *EconomyDonation) GetContributors() []*EconomyDonationContributor
func (*EconomyDonation) GetCount ¶
func (x *EconomyDonation) GetCount() int64
func (*EconomyDonation) GetCurrentTimeSec ¶
func (x *EconomyDonation) GetCurrentTimeSec() int64
func (*EconomyDonation) GetDescription ¶
func (x *EconomyDonation) GetDescription() string
func (*EconomyDonation) GetExpireTimeSec ¶
func (x *EconomyDonation) GetExpireTimeSec() int64
func (*EconomyDonation) GetId ¶
func (x *EconomyDonation) GetId() string
func (*EconomyDonation) GetMaxCount ¶
func (x *EconomyDonation) GetMaxCount() int64
func (*EconomyDonation) GetName ¶
func (x *EconomyDonation) GetName() string
func (*EconomyDonation) GetRecipientAvailableRewards ¶
func (x *EconomyDonation) GetRecipientAvailableRewards() *AvailableRewards
func (*EconomyDonation) GetRecipientRewards ¶
func (x *EconomyDonation) GetRecipientRewards() []*Reward
func (*EconomyDonation) GetUserContributionMaxCount ¶
func (x *EconomyDonation) GetUserContributionMaxCount() int64
func (*EconomyDonation) GetUserId ¶
func (x *EconomyDonation) GetUserId() string
func (*EconomyDonation) ProtoMessage ¶
func (*EconomyDonation) ProtoMessage()
func (*EconomyDonation) ProtoReflect ¶
func (x *EconomyDonation) ProtoReflect() protoreflect.Message
func (*EconomyDonation) Reset ¶
func (x *EconomyDonation) Reset()
func (*EconomyDonation) String ¶
func (x *EconomyDonation) String() string
type EconomyDonationAck ¶
type EconomyDonationAck struct {
// True if the donation is newly created.
Created bool `protobuf:"varint,1,opt,name=created,proto3" json:"created,omitempty"`
// The donation requested which may already be active or newly created.
Donation *EconomyDonation `protobuf:"bytes,2,opt,name=donation,proto3" json:"donation,omitempty"`
// contains filtered or unexported fields
}
An acknowledgement of the idempotent creation of a donation for a user.
func (*EconomyDonationAck) Descriptor
deprecated
func (*EconomyDonationAck) Descriptor() ([]byte, []int)
Deprecated: Use EconomyDonationAck.ProtoReflect.Descriptor instead.
func (*EconomyDonationAck) GetCreated ¶
func (x *EconomyDonationAck) GetCreated() bool
func (*EconomyDonationAck) GetDonation ¶
func (x *EconomyDonationAck) GetDonation() *EconomyDonation
func (*EconomyDonationAck) ProtoMessage ¶
func (*EconomyDonationAck) ProtoMessage()
func (*EconomyDonationAck) ProtoReflect ¶
func (x *EconomyDonationAck) ProtoReflect() protoreflect.Message
func (*EconomyDonationAck) Reset ¶
func (x *EconomyDonationAck) Reset()
func (*EconomyDonationAck) String ¶
func (x *EconomyDonationAck) String() string
type EconomyDonationClaimRequest ¶
type EconomyDonationClaimRequest struct {
// The donation IDs to claim.
DonationIds []string `protobuf:"bytes,1,rep,name=donation_ids,json=donationIds,proto3" json:"donation_ids,omitempty"`
// A mapped set of donations to donors to claim.
Donations map[string]*EconomyDonationClaimRequestDetails `` /* 159-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to claim one or more donations.
func (*EconomyDonationClaimRequest) Descriptor
deprecated
func (*EconomyDonationClaimRequest) Descriptor() ([]byte, []int)
Deprecated: Use EconomyDonationClaimRequest.ProtoReflect.Descriptor instead.
func (*EconomyDonationClaimRequest) GetDonationIds ¶
func (x *EconomyDonationClaimRequest) GetDonationIds() []string
func (*EconomyDonationClaimRequest) GetDonations ¶ added in v1.22.0
func (x *EconomyDonationClaimRequest) GetDonations() map[string]*EconomyDonationClaimRequestDetails
func (*EconomyDonationClaimRequest) ProtoMessage ¶
func (*EconomyDonationClaimRequest) ProtoMessage()
func (*EconomyDonationClaimRequest) ProtoReflect ¶
func (x *EconomyDonationClaimRequest) ProtoReflect() protoreflect.Message
func (*EconomyDonationClaimRequest) Reset ¶
func (x *EconomyDonationClaimRequest) Reset()
func (*EconomyDonationClaimRequest) String ¶
func (x *EconomyDonationClaimRequest) String() string
type EconomyDonationClaimRequestDetails ¶ added in v1.22.0
type EconomyDonationClaimRequestDetails struct {
// List of donor IDs to claim and amount to claim from each, or empty to claim all available.
Donors map[string]int64 `` /* 154-byte string literal not displayed */
// contains filtered or unexported fields
}
Information about a specific donation claim.
func (*EconomyDonationClaimRequestDetails) Descriptor
deprecated
added in
v1.22.0
func (*EconomyDonationClaimRequestDetails) Descriptor() ([]byte, []int)
Deprecated: Use EconomyDonationClaimRequestDetails.ProtoReflect.Descriptor instead.
func (*EconomyDonationClaimRequestDetails) GetDonors ¶ added in v1.22.0
func (x *EconomyDonationClaimRequestDetails) GetDonors() map[string]int64
func (*EconomyDonationClaimRequestDetails) ProtoMessage ¶ added in v1.22.0
func (*EconomyDonationClaimRequestDetails) ProtoMessage()
func (*EconomyDonationClaimRequestDetails) ProtoReflect ¶ added in v1.22.0
func (x *EconomyDonationClaimRequestDetails) ProtoReflect() protoreflect.Message
func (*EconomyDonationClaimRequestDetails) Reset ¶ added in v1.22.0
func (x *EconomyDonationClaimRequestDetails) Reset()
func (*EconomyDonationClaimRequestDetails) String ¶ added in v1.22.0
func (x *EconomyDonationClaimRequestDetails) String() string
type EconomyDonationClaimRewards ¶
type EconomyDonationClaimRewards struct {
// All active donations for the user.
Donations *EconomyDonationsList `protobuf:"bytes,1,opt,name=donations,proto3" json:"donations,omitempty"`
// The rewards from this particular claim.
ClaimedRewards map[string]*RewardList `` /* 191-byte string literal not displayed */
// contains filtered or unexported fields
}
Response to claiming one or more donations.
func (*EconomyDonationClaimRewards) Descriptor
deprecated
func (*EconomyDonationClaimRewards) Descriptor() ([]byte, []int)
Deprecated: Use EconomyDonationClaimRewards.ProtoReflect.Descriptor instead.
func (*EconomyDonationClaimRewards) GetClaimedRewards ¶
func (x *EconomyDonationClaimRewards) GetClaimedRewards() map[string]*RewardList
func (*EconomyDonationClaimRewards) GetDonations ¶
func (x *EconomyDonationClaimRewards) GetDonations() *EconomyDonationsList
func (*EconomyDonationClaimRewards) ProtoMessage ¶
func (*EconomyDonationClaimRewards) ProtoMessage()
func (*EconomyDonationClaimRewards) ProtoReflect ¶
func (x *EconomyDonationClaimRewards) ProtoReflect() protoreflect.Message
func (*EconomyDonationClaimRewards) Reset ¶
func (x *EconomyDonationClaimRewards) Reset()
func (*EconomyDonationClaimRewards) String ¶
func (x *EconomyDonationClaimRewards) String() string
type EconomyDonationContributor ¶
type EconomyDonationContributor struct {
// The user ID that contributed.
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// The amount they've donated.
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// The amount that has been claimed by the recipient already.
ClaimCount int64 `protobuf:"varint,3,opt,name=claim_count,json=claimCount,proto3" json:"claim_count,omitempty"`
// contains filtered or unexported fields
}
A contributor to this donation.
func (*EconomyDonationContributor) Descriptor
deprecated
func (*EconomyDonationContributor) Descriptor() ([]byte, []int)
Deprecated: Use EconomyDonationContributor.ProtoReflect.Descriptor instead.
func (*EconomyDonationContributor) GetClaimCount ¶ added in v1.22.0
func (x *EconomyDonationContributor) GetClaimCount() int64
func (*EconomyDonationContributor) GetCount ¶
func (x *EconomyDonationContributor) GetCount() int64
func (*EconomyDonationContributor) GetUserId ¶
func (x *EconomyDonationContributor) GetUserId() string
func (*EconomyDonationContributor) ProtoMessage ¶
func (*EconomyDonationContributor) ProtoMessage()
func (*EconomyDonationContributor) ProtoReflect ¶
func (x *EconomyDonationContributor) ProtoReflect() protoreflect.Message
func (*EconomyDonationContributor) Reset ¶
func (x *EconomyDonationContributor) Reset()
func (*EconomyDonationContributor) String ¶
func (x *EconomyDonationContributor) String() string
type EconomyDonationGetRequest ¶
type EconomyDonationGetRequest struct {
// The user IDs to get donations for.
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
Request to get donations for one or more users.
func (*EconomyDonationGetRequest) Descriptor
deprecated
func (*EconomyDonationGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use EconomyDonationGetRequest.ProtoReflect.Descriptor instead.
func (*EconomyDonationGetRequest) GetIds ¶
func (x *EconomyDonationGetRequest) GetIds() []string
func (*EconomyDonationGetRequest) ProtoMessage ¶
func (*EconomyDonationGetRequest) ProtoMessage()
func (*EconomyDonationGetRequest) ProtoReflect ¶
func (x *EconomyDonationGetRequest) ProtoReflect() protoreflect.Message
func (*EconomyDonationGetRequest) Reset ¶
func (x *EconomyDonationGetRequest) Reset()
func (*EconomyDonationGetRequest) String ¶
func (x *EconomyDonationGetRequest) String() string
type EconomyDonationGiveRequest ¶
type EconomyDonationGiveRequest struct {
// The user ID who receives the donation.
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// The donation ID to give into.
DonationId string `protobuf:"bytes,2,opt,name=donation_id,json=donationId,proto3" json:"donation_id,omitempty"`
// contains filtered or unexported fields
}
Request to give a donation to a user.
func (*EconomyDonationGiveRequest) Descriptor
deprecated
func (*EconomyDonationGiveRequest) Descriptor() ([]byte, []int)
Deprecated: Use EconomyDonationGiveRequest.ProtoReflect.Descriptor instead.
func (*EconomyDonationGiveRequest) GetDonationId ¶
func (x *EconomyDonationGiveRequest) GetDonationId() string
func (*EconomyDonationGiveRequest) GetUserId ¶
func (x *EconomyDonationGiveRequest) GetUserId() string
func (*EconomyDonationGiveRequest) ProtoMessage ¶
func (*EconomyDonationGiveRequest) ProtoMessage()
func (*EconomyDonationGiveRequest) ProtoReflect ¶
func (x *EconomyDonationGiveRequest) ProtoReflect() protoreflect.Message
func (*EconomyDonationGiveRequest) Reset ¶
func (x *EconomyDonationGiveRequest) Reset()
func (*EconomyDonationGiveRequest) String ¶
func (x *EconomyDonationGiveRequest) String() string
type EconomyDonationRequest ¶
type EconomyDonationRequest struct {
// The donation ID to request, defined on the server.
DonationId string `protobuf:"bytes,1,opt,name=donation_id,json=donationId,proto3" json:"donation_id,omitempty"`
// contains filtered or unexported fields
}
Request a new donation.
func (*EconomyDonationRequest) Descriptor
deprecated
func (*EconomyDonationRequest) Descriptor() ([]byte, []int)
Deprecated: Use EconomyDonationRequest.ProtoReflect.Descriptor instead.
func (*EconomyDonationRequest) GetDonationId ¶
func (x *EconomyDonationRequest) GetDonationId() string
func (*EconomyDonationRequest) ProtoMessage ¶
func (*EconomyDonationRequest) ProtoMessage()
func (*EconomyDonationRequest) ProtoReflect ¶
func (x *EconomyDonationRequest) ProtoReflect() protoreflect.Message
func (*EconomyDonationRequest) Reset ¶
func (x *EconomyDonationRequest) Reset()
func (*EconomyDonationRequest) String ¶
func (x *EconomyDonationRequest) String() string
type EconomyDonationsByUserList ¶
type EconomyDonationsByUserList struct {
// The active donations grouped by user ID.
UserDonations map[string]*EconomyDonationsList `` /* 188-byte string literal not displayed */
// contains filtered or unexported fields
}
A map of active donations keyed by user ID.
func (*EconomyDonationsByUserList) Descriptor
deprecated
func (*EconomyDonationsByUserList) Descriptor() ([]byte, []int)
Deprecated: Use EconomyDonationsByUserList.ProtoReflect.Descriptor instead.
func (*EconomyDonationsByUserList) GetUserDonations ¶
func (x *EconomyDonationsByUserList) GetUserDonations() map[string]*EconomyDonationsList
func (*EconomyDonationsByUserList) ProtoMessage ¶
func (*EconomyDonationsByUserList) ProtoMessage()
func (*EconomyDonationsByUserList) ProtoReflect ¶
func (x *EconomyDonationsByUserList) ProtoReflect() protoreflect.Message
func (*EconomyDonationsByUserList) Reset ¶
func (x *EconomyDonationsByUserList) Reset()
func (*EconomyDonationsByUserList) String ¶
func (x *EconomyDonationsByUserList) String() string
type EconomyDonationsList ¶
type EconomyDonationsList struct {
// The active donations for a set of users.
Donations []*EconomyDonation `protobuf:"bytes,1,rep,name=donations,proto3" json:"donations,omitempty"`
// contains filtered or unexported fields
}
A list of active donations returned for some set of users.
func (*EconomyDonationsList) Descriptor
deprecated
func (*EconomyDonationsList) Descriptor() ([]byte, []int)
Deprecated: Use EconomyDonationsList.ProtoReflect.Descriptor instead.
func (*EconomyDonationsList) GetDonations ¶
func (x *EconomyDonationsList) GetDonations() []*EconomyDonation
func (*EconomyDonationsList) ProtoMessage ¶
func (*EconomyDonationsList) ProtoMessage()
func (*EconomyDonationsList) ProtoReflect ¶
func (x *EconomyDonationsList) ProtoReflect() protoreflect.Message
func (*EconomyDonationsList) Reset ¶
func (x *EconomyDonationsList) Reset()
func (*EconomyDonationsList) String ¶
func (x *EconomyDonationsList) String() string
type EconomyGrantRequest ¶
type EconomyGrantRequest struct {
// The currencies to grant.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// The reward modifiers to grant.
RewardModifiers []*RewardModifier `protobuf:"bytes,2,rep,name=reward_modifiers,json=rewardModifiers,proto3" json:"reward_modifiers,omitempty"`
// Any items to grant.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// contains filtered or unexported fields
}
Represents a request to grant rewards to the user.
func (*EconomyGrantRequest) Descriptor
deprecated
func (*EconomyGrantRequest) Descriptor() ([]byte, []int)
Deprecated: Use EconomyGrantRequest.ProtoReflect.Descriptor instead.
func (*EconomyGrantRequest) GetCurrencies ¶
func (x *EconomyGrantRequest) GetCurrencies() map[string]int64
func (*EconomyGrantRequest) GetItems ¶ added in v1.3.0
func (x *EconomyGrantRequest) GetItems() map[string]int64
func (*EconomyGrantRequest) GetRewardModifiers ¶
func (x *EconomyGrantRequest) GetRewardModifiers() []*RewardModifier
func (*EconomyGrantRequest) ProtoMessage ¶
func (*EconomyGrantRequest) ProtoMessage()
func (*EconomyGrantRequest) ProtoReflect ¶
func (x *EconomyGrantRequest) ProtoReflect() protoreflect.Message
func (*EconomyGrantRequest) Reset ¶
func (x *EconomyGrantRequest) Reset()
func (*EconomyGrantRequest) String ¶
func (x *EconomyGrantRequest) String() string
type EconomyList ¶
type EconomyList struct {
// The list of store items.
StoreItems []*EconomyListStoreItem `protobuf:"bytes,1,rep,name=store_items,json=storeItems,proto3" json:"store_items,omitempty"`
// The list of placements.
Placements []*EconomyListPlacement `protobuf:"bytes,2,rep,name=placements,proto3" json:"placements,omitempty"`
// The set of active donations for the current user.
Donations map[string]*EconomyDonation `` /* 159-byte string literal not displayed */
// The list of active reward modifiers.
ActiveRewardModifiers []*ActiveRewardModifier `` /* 126-byte string literal not displayed */
// Current server time.
CurrentTimeSec int64 `protobuf:"varint,5,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// contains filtered or unexported fields
}
The response data with the available store items.
func (*EconomyList) Descriptor
deprecated
func (*EconomyList) Descriptor() ([]byte, []int)
Deprecated: Use EconomyList.ProtoReflect.Descriptor instead.
func (*EconomyList) GetActiveRewardModifiers ¶ added in v1.15.0
func (x *EconomyList) GetActiveRewardModifiers() []*ActiveRewardModifier
func (*EconomyList) GetCurrentTimeSec ¶ added in v1.15.0
func (x *EconomyList) GetCurrentTimeSec() int64
func (*EconomyList) GetDonations ¶
func (x *EconomyList) GetDonations() map[string]*EconomyDonation
func (*EconomyList) GetPlacements ¶
func (x *EconomyList) GetPlacements() []*EconomyListPlacement
func (*EconomyList) GetStoreItems ¶
func (x *EconomyList) GetStoreItems() []*EconomyListStoreItem
func (*EconomyList) ProtoMessage ¶
func (*EconomyList) ProtoMessage()
func (*EconomyList) ProtoReflect ¶
func (x *EconomyList) ProtoReflect() protoreflect.Message
func (*EconomyList) Reset ¶
func (x *EconomyList) Reset()
func (*EconomyList) String ¶
func (x *EconomyList) String() string
type EconomyListPlacement ¶
type EconomyListPlacement struct {
// The ID of the placement.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The reward obtained from this placement.
Reward *Reward `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward,omitempty"`
// The available rewards obtained from this placement.
AvailableRewards *AvailableRewards `protobuf:"bytes,3,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 209-byte string literal not displayed */
// contains filtered or unexported fields
}
Represents an available ad placement.
func (*EconomyListPlacement) Descriptor
deprecated
func (*EconomyListPlacement) Descriptor() ([]byte, []int)
Deprecated: Use EconomyListPlacement.ProtoReflect.Descriptor instead.
func (*EconomyListPlacement) GetAdditionalProperties ¶
func (x *EconomyListPlacement) GetAdditionalProperties() map[string]string
func (*EconomyListPlacement) GetAvailableRewards ¶
func (x *EconomyListPlacement) GetAvailableRewards() *AvailableRewards
func (*EconomyListPlacement) GetId ¶
func (x *EconomyListPlacement) GetId() string
func (*EconomyListPlacement) GetReward ¶
func (x *EconomyListPlacement) GetReward() *Reward
func (*EconomyListPlacement) ProtoMessage ¶
func (*EconomyListPlacement) ProtoMessage()
func (*EconomyListPlacement) ProtoReflect ¶
func (x *EconomyListPlacement) ProtoReflect() protoreflect.Message
func (*EconomyListPlacement) Reset ¶
func (x *EconomyListPlacement) Reset()
func (*EconomyListPlacement) String ¶
func (x *EconomyListPlacement) String() string
type EconomyListRequest ¶
type EconomyListRequest struct {
// The game client's store type.
StoreType EconomyStoreType `protobuf:"varint,1,opt,name=store_type,json=storeType,proto3,enum=hiro.EconomyStoreType" json:"store_type,omitempty"`
// contains filtered or unexported fields
}
Represents a request to retrieve available store items.
func (*EconomyListRequest) Descriptor
deprecated
func (*EconomyListRequest) Descriptor() ([]byte, []int)
Deprecated: Use EconomyListRequest.ProtoReflect.Descriptor instead.
func (*EconomyListRequest) GetStoreType ¶
func (x *EconomyListRequest) GetStoreType() EconomyStoreType
func (*EconomyListRequest) ProtoMessage ¶
func (*EconomyListRequest) ProtoMessage()
func (*EconomyListRequest) ProtoReflect ¶
func (x *EconomyListRequest) ProtoReflect() protoreflect.Message
func (*EconomyListRequest) Reset ¶
func (x *EconomyListRequest) Reset()
func (*EconomyListRequest) String ¶
func (x *EconomyListRequest) String() string
type EconomyListStoreItem ¶
type EconomyListStoreItem struct {
// The category to group the item together with others.
Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
// The cost of the item.
Cost *EconomyListStoreItemCost `protobuf:"bytes,2,opt,name=cost,proto3" json:"cost,omitempty"`
// A description of the item. May be an i18n code.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// The ID of the item.
Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
// The name of the item. May be an i18n code.
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
// The available rewards in this store item.
AvailableRewards *AvailableRewards `protobuf:"bytes,6,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 209-byte string literal not displayed */
Unavailable bool `protobuf:"varint,8,opt,name=unavailable,proto3" json:"unavailable,omitempty"`
// contains filtered or unexported fields
}
Represents an individual available store items.
func (*EconomyListStoreItem) Descriptor
deprecated
func (*EconomyListStoreItem) Descriptor() ([]byte, []int)
Deprecated: Use EconomyListStoreItem.ProtoReflect.Descriptor instead.
func (*EconomyListStoreItem) GetAdditionalProperties ¶
func (x *EconomyListStoreItem) GetAdditionalProperties() map[string]string
func (*EconomyListStoreItem) GetAvailableRewards ¶
func (x *EconomyListStoreItem) GetAvailableRewards() *AvailableRewards
func (*EconomyListStoreItem) GetCategory ¶
func (x *EconomyListStoreItem) GetCategory() string
func (*EconomyListStoreItem) GetCost ¶
func (x *EconomyListStoreItem) GetCost() *EconomyListStoreItemCost
func (*EconomyListStoreItem) GetDescription ¶
func (x *EconomyListStoreItem) GetDescription() string
func (*EconomyListStoreItem) GetId ¶
func (x *EconomyListStoreItem) GetId() string
func (*EconomyListStoreItem) GetName ¶
func (x *EconomyListStoreItem) GetName() string
func (*EconomyListStoreItem) GetUnavailable ¶ added in v1.20.0
func (x *EconomyListStoreItem) GetUnavailable() bool
func (*EconomyListStoreItem) ProtoMessage ¶
func (*EconomyListStoreItem) ProtoMessage()
func (*EconomyListStoreItem) ProtoReflect ¶
func (x *EconomyListStoreItem) ProtoReflect() protoreflect.Message
func (*EconomyListStoreItem) Reset ¶
func (x *EconomyListStoreItem) Reset()
func (*EconomyListStoreItem) String ¶
func (x *EconomyListStoreItem) String() string
type EconomyListStoreItemCost ¶
type EconomyListStoreItemCost struct {
// The virtual currencies, if any.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// The required purchase SKU, if any.
Sku string `protobuf:"bytes,2,opt,name=sku,proto3" json:"sku,omitempty"`
// contains filtered or unexported fields
}
The cost(s) associated with a store item.
func (*EconomyListStoreItemCost) Descriptor
deprecated
func (*EconomyListStoreItemCost) Descriptor() ([]byte, []int)
Deprecated: Use EconomyListStoreItemCost.ProtoReflect.Descriptor instead.
func (*EconomyListStoreItemCost) GetCurrencies ¶
func (x *EconomyListStoreItemCost) GetCurrencies() map[string]int64
func (*EconomyListStoreItemCost) GetSku ¶
func (x *EconomyListStoreItemCost) GetSku() string
func (*EconomyListStoreItemCost) ProtoMessage ¶
func (*EconomyListStoreItemCost) ProtoMessage()
func (*EconomyListStoreItemCost) ProtoReflect ¶
func (x *EconomyListStoreItemCost) ProtoReflect() protoreflect.Message
func (*EconomyListStoreItemCost) Reset ¶
func (x *EconomyListStoreItemCost) Reset()
func (*EconomyListStoreItemCost) String ¶
func (x *EconomyListStoreItemCost) String() string
type EconomyPlacementInfo ¶ added in v1.15.0
type EconomyPlacementInfo struct {
// Placement configuration.
Placement *EconomyConfigPlacement `json:"placement,omitempty"`
// Metadata, if any was set when the placement was started.
Metadata map[string]string `json:"metadata,omitempty"`
}
EconomyPlacementInfo contains information about a placement instance.
type EconomyPlacementStartRequest ¶
type EconomyPlacementStartRequest struct {
// The identifier to start a reward for.
PlacementId string `protobuf:"bytes,1,opt,name=placement_id,json=placementId,proto3" json:"placement_id,omitempty"`
// Optional metadata to associate with the placement.
Metadata map[string]string `` /* 157-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to start a placement reward.
func (*EconomyPlacementStartRequest) Descriptor
deprecated
func (*EconomyPlacementStartRequest) Descriptor() ([]byte, []int)
Deprecated: Use EconomyPlacementStartRequest.ProtoReflect.Descriptor instead.
func (*EconomyPlacementStartRequest) GetMetadata ¶ added in v1.15.0
func (x *EconomyPlacementStartRequest) GetMetadata() map[string]string
func (*EconomyPlacementStartRequest) GetPlacementId ¶
func (x *EconomyPlacementStartRequest) GetPlacementId() string
func (*EconomyPlacementStartRequest) ProtoMessage ¶
func (*EconomyPlacementStartRequest) ProtoMessage()
func (*EconomyPlacementStartRequest) ProtoReflect ¶
func (x *EconomyPlacementStartRequest) ProtoReflect() protoreflect.Message
func (*EconomyPlacementStartRequest) Reset ¶
func (x *EconomyPlacementStartRequest) Reset()
func (*EconomyPlacementStartRequest) String ¶
func (x *EconomyPlacementStartRequest) String() string
type EconomyPlacementStatus ¶
type EconomyPlacementStatus struct {
// The reward ID.
RewardId string `protobuf:"bytes,1,opt,name=reward_id,json=rewardId,proto3" json:"reward_id,omitempty"`
// The placement ID.
PlacementId string `protobuf:"bytes,2,opt,name=placement_id,json=placementId,proto3" json:"placement_id,omitempty"`
// The UNIX timestamp when the placement was created.
CreateTimeSec int64 `protobuf:"varint,3,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// The UNIX timestamp when the placement was completed.
CompleteTimeSec int64 `protobuf:"varint,4,opt,name=complete_time_sec,json=completeTimeSec,proto3" json:"complete_time_sec,omitempty"`
// If completed, was it successful.
Success bool `protobuf:"varint,5,opt,name=success,proto3" json:"success,omitempty"`
// The reward for completing the placement, if it was autocompleted as part of the status request.
Reward *Reward `protobuf:"bytes,6,opt,name=reward,proto3" json:"reward,omitempty"`
// Metadata associated with the placement, if any.
Metadata map[string]string `` /* 157-byte string literal not displayed */
// contains filtered or unexported fields
}
The current status of a placement reward.
func (*EconomyPlacementStatus) Descriptor
deprecated
func (*EconomyPlacementStatus) Descriptor() ([]byte, []int)
Deprecated: Use EconomyPlacementStatus.ProtoReflect.Descriptor instead.
func (*EconomyPlacementStatus) GetCompleteTimeSec ¶
func (x *EconomyPlacementStatus) GetCompleteTimeSec() int64
func (*EconomyPlacementStatus) GetCreateTimeSec ¶
func (x *EconomyPlacementStatus) GetCreateTimeSec() int64
func (*EconomyPlacementStatus) GetMetadata ¶ added in v1.15.0
func (x *EconomyPlacementStatus) GetMetadata() map[string]string
func (*EconomyPlacementStatus) GetPlacementId ¶
func (x *EconomyPlacementStatus) GetPlacementId() string
func (*EconomyPlacementStatus) GetReward ¶
func (x *EconomyPlacementStatus) GetReward() *Reward
func (*EconomyPlacementStatus) GetRewardId ¶
func (x *EconomyPlacementStatus) GetRewardId() string
func (*EconomyPlacementStatus) GetSuccess ¶
func (x *EconomyPlacementStatus) GetSuccess() bool
func (*EconomyPlacementStatus) ProtoMessage ¶
func (*EconomyPlacementStatus) ProtoMessage()
func (*EconomyPlacementStatus) ProtoReflect ¶
func (x *EconomyPlacementStatus) ProtoReflect() protoreflect.Message
func (*EconomyPlacementStatus) Reset ¶
func (x *EconomyPlacementStatus) Reset()
func (*EconomyPlacementStatus) String ¶
func (x *EconomyPlacementStatus) String() string
type EconomyPlacementStatusRequest ¶
type EconomyPlacementStatusRequest struct {
// The reward ID to check.
RewardId string `protobuf:"bytes,1,opt,name=reward_id,json=rewardId,proto3" json:"reward_id,omitempty"`
// The placement ID to check, will be used if reward ID is not supplied.
PlacementId string `protobuf:"bytes,2,opt,name=placement_id,json=placementId,proto3" json:"placement_id,omitempty"`
// The check attempt counter, optional.
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
Request to retrieve status af a specific placement instance by reward ID.
func (*EconomyPlacementStatusRequest) Descriptor
deprecated
func (*EconomyPlacementStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use EconomyPlacementStatusRequest.ProtoReflect.Descriptor instead.
func (*EconomyPlacementStatusRequest) GetCount ¶
func (x *EconomyPlacementStatusRequest) GetCount() int32
func (*EconomyPlacementStatusRequest) GetPlacementId ¶
func (x *EconomyPlacementStatusRequest) GetPlacementId() string
func (*EconomyPlacementStatusRequest) GetRewardId ¶
func (x *EconomyPlacementStatusRequest) GetRewardId() string
func (*EconomyPlacementStatusRequest) ProtoMessage ¶
func (*EconomyPlacementStatusRequest) ProtoMessage()
func (*EconomyPlacementStatusRequest) ProtoReflect ¶
func (x *EconomyPlacementStatusRequest) ProtoReflect() protoreflect.Message
func (*EconomyPlacementStatusRequest) Reset ¶
func (x *EconomyPlacementStatusRequest) Reset()
func (*EconomyPlacementStatusRequest) String ¶
func (x *EconomyPlacementStatusRequest) String() string
type EconomyPurchaseAck ¶
type EconomyPurchaseAck struct {
// Updated wallet data, if changed.
Wallet map[string]int64 `` /* 154-byte string literal not displayed */
// Update inventory data, if changed.
Inventory *Inventory `protobuf:"bytes,2,opt,name=inventory,proto3" json:"inventory,omitempty"`
// Reward, if any.
Reward *Reward `protobuf:"bytes,3,opt,name=reward,proto3" json:"reward,omitempty"`
// Was the purchase a sandbox purchase?
IsSandboxPurchase bool `protobuf:"varint,4,opt,name=is_sandbox_purchase,json=isSandboxPurchase,proto3" json:"is_sandbox_purchase,omitempty"`
// contains filtered or unexported fields
}
Response from purchasing currencies and/or items. Contains updated wallet and inventory data, if changed. Contains reward granted, if any. Contains indication of whether or not the purchase was a sandbox purchase.
func (*EconomyPurchaseAck) Descriptor
deprecated
func (*EconomyPurchaseAck) Descriptor() ([]byte, []int)
Deprecated: Use EconomyPurchaseAck.ProtoReflect.Descriptor instead.
func (*EconomyPurchaseAck) GetInventory ¶
func (x *EconomyPurchaseAck) GetInventory() *Inventory
func (*EconomyPurchaseAck) GetIsSandboxPurchase ¶
func (x *EconomyPurchaseAck) GetIsSandboxPurchase() bool
func (*EconomyPurchaseAck) GetReward ¶
func (x *EconomyPurchaseAck) GetReward() *Reward
func (*EconomyPurchaseAck) GetWallet ¶
func (x *EconomyPurchaseAck) GetWallet() map[string]int64
func (*EconomyPurchaseAck) ProtoMessage ¶
func (*EconomyPurchaseAck) ProtoMessage()
func (*EconomyPurchaseAck) ProtoReflect ¶
func (x *EconomyPurchaseAck) ProtoReflect() protoreflect.Message
func (*EconomyPurchaseAck) Reset ¶
func (x *EconomyPurchaseAck) Reset()
func (*EconomyPurchaseAck) String ¶
func (x *EconomyPurchaseAck) String() string
type EconomyPurchaseIntentRequest ¶
type EconomyPurchaseIntentRequest struct {
// An item's ID.
ItemId string `protobuf:"bytes,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
// The store type.
StoreType EconomyStoreType `protobuf:"varint,2,opt,name=store_type,json=storeType,proto3,enum=hiro.EconomyStoreType" json:"store_type,omitempty"`
// The SKU code, if any.
Sku string `protobuf:"bytes,3,opt,name=sku,proto3" json:"sku,omitempty"`
// Purchase real currency amount, if known.
Amount float64 `protobuf:"fixed64,4,opt,name=amount,proto3" json:"amount,omitempty"`
// Purchase real currency code, if known.
Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"`
// contains filtered or unexported fields
}
Request to create a store item purchase intent.
func (*EconomyPurchaseIntentRequest) Descriptor
deprecated
func (*EconomyPurchaseIntentRequest) Descriptor() ([]byte, []int)
Deprecated: Use EconomyPurchaseIntentRequest.ProtoReflect.Descriptor instead.
func (*EconomyPurchaseIntentRequest) GetAmount ¶ added in v1.25.0
func (x *EconomyPurchaseIntentRequest) GetAmount() float64
func (*EconomyPurchaseIntentRequest) GetCurrency ¶ added in v1.25.0
func (x *EconomyPurchaseIntentRequest) GetCurrency() string
func (*EconomyPurchaseIntentRequest) GetItemId ¶
func (x *EconomyPurchaseIntentRequest) GetItemId() string
func (*EconomyPurchaseIntentRequest) GetSku ¶
func (x *EconomyPurchaseIntentRequest) GetSku() string
func (*EconomyPurchaseIntentRequest) GetStoreType ¶
func (x *EconomyPurchaseIntentRequest) GetStoreType() EconomyStoreType
func (*EconomyPurchaseIntentRequest) ProtoMessage ¶
func (*EconomyPurchaseIntentRequest) ProtoMessage()
func (*EconomyPurchaseIntentRequest) ProtoReflect ¶
func (x *EconomyPurchaseIntentRequest) ProtoReflect() protoreflect.Message
func (*EconomyPurchaseIntentRequest) Reset ¶
func (x *EconomyPurchaseIntentRequest) Reset()
func (*EconomyPurchaseIntentRequest) String ¶
func (x *EconomyPurchaseIntentRequest) String() string
type EconomyPurchaseRequest ¶
type EconomyPurchaseRequest struct {
// An item's ID.
ItemId string `protobuf:"bytes,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
// The store type.
StoreType EconomyStoreType `protobuf:"varint,2,opt,name=store_type,json=storeType,proto3,enum=hiro.EconomyStoreType" json:"store_type,omitempty"`
// The IAP receipt purchased.
Receipt string `protobuf:"bytes,3,opt,name=receipt,proto3" json:"receipt,omitempty"`
// contains filtered or unexported fields
}
Request to purchase a particular store item.
func (*EconomyPurchaseRequest) Descriptor
deprecated
func (*EconomyPurchaseRequest) Descriptor() ([]byte, []int)
Deprecated: Use EconomyPurchaseRequest.ProtoReflect.Descriptor instead.
func (*EconomyPurchaseRequest) GetItemId ¶
func (x *EconomyPurchaseRequest) GetItemId() string
func (*EconomyPurchaseRequest) GetReceipt ¶
func (x *EconomyPurchaseRequest) GetReceipt() string
func (*EconomyPurchaseRequest) GetStoreType ¶
func (x *EconomyPurchaseRequest) GetStoreType() EconomyStoreType
func (*EconomyPurchaseRequest) ProtoMessage ¶
func (*EconomyPurchaseRequest) ProtoMessage()
func (*EconomyPurchaseRequest) ProtoReflect ¶
func (x *EconomyPurchaseRequest) ProtoReflect() protoreflect.Message
func (*EconomyPurchaseRequest) Reset ¶
func (x *EconomyPurchaseRequest) Reset()
func (*EconomyPurchaseRequest) String ¶
func (x *EconomyPurchaseRequest) String() string
type EconomyPurchaseRestoreRequest ¶ added in v1.10.0
type EconomyPurchaseRestoreRequest struct {
// The store type.
StoreType EconomyStoreType `protobuf:"varint,1,opt,name=store_type,json=storeType,proto3,enum=hiro.EconomyStoreType" json:"store_type,omitempty"`
// The IAP receipts to restore.
Receipts []string `protobuf:"bytes,2,rep,name=receipts,proto3" json:"receipts,omitempty"`
// contains filtered or unexported fields
}
Request to restore a set of purchases.
func (*EconomyPurchaseRestoreRequest) Descriptor
deprecated
added in
v1.10.0
func (*EconomyPurchaseRestoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use EconomyPurchaseRestoreRequest.ProtoReflect.Descriptor instead.
func (*EconomyPurchaseRestoreRequest) GetReceipts ¶ added in v1.10.0
func (x *EconomyPurchaseRestoreRequest) GetReceipts() []string
func (*EconomyPurchaseRestoreRequest) GetStoreType ¶ added in v1.10.0
func (x *EconomyPurchaseRestoreRequest) GetStoreType() EconomyStoreType
func (*EconomyPurchaseRestoreRequest) ProtoMessage ¶ added in v1.10.0
func (*EconomyPurchaseRestoreRequest) ProtoMessage()
func (*EconomyPurchaseRestoreRequest) ProtoReflect ¶ added in v1.10.0
func (x *EconomyPurchaseRestoreRequest) ProtoReflect() protoreflect.Message
func (*EconomyPurchaseRestoreRequest) Reset ¶ added in v1.10.0
func (x *EconomyPurchaseRestoreRequest) Reset()
func (*EconomyPurchaseRestoreRequest) String ¶ added in v1.10.0
func (x *EconomyPurchaseRestoreRequest) String() string
type EconomyStoreType ¶
type EconomyStoreType int32
The store types supported by the Economy system.
const ( // Unspecified. Defaults to Apple. EconomyStoreType_ECONOMY_STORE_TYPE_UNSPECIFIED EconomyStoreType = 0 // Apple App Store. EconomyStoreType_ECONOMY_STORE_TYPE_APPLE_APPSTORE EconomyStoreType = 1 // Google Play. EconomyStoreType_ECONOMY_STORE_TYPE_GOOGLE_PLAY EconomyStoreType = 2 // Facebook Instant games. EconomyStoreType_ECONOMY_STORE_TYPE_FBINSTANT EconomyStoreType = 3 // Discord Store. EconomyStoreType_ECONOMY_STORE_TYPE_DISCORD EconomyStoreType = 4 )
func (EconomyStoreType) Descriptor ¶
func (EconomyStoreType) Descriptor() protoreflect.EnumDescriptor
func (EconomyStoreType) Enum ¶
func (x EconomyStoreType) Enum() *EconomyStoreType
func (EconomyStoreType) EnumDescriptor
deprecated
func (EconomyStoreType) EnumDescriptor() ([]byte, []int)
Deprecated: Use EconomyStoreType.Descriptor instead.
func (EconomyStoreType) Number ¶
func (x EconomyStoreType) Number() protoreflect.EnumNumber
func (EconomyStoreType) String ¶
func (x EconomyStoreType) String() string
func (EconomyStoreType) Type ¶
func (EconomyStoreType) Type() protoreflect.EnumType
type EconomySystem ¶
type EconomySystem interface {
System
// RewardCreate prepares a new reward configuration to be filled in and used later.
RewardCreate() (rewardConfig *EconomyConfigReward)
// RewardConvert transforms a wire representation of a reward into an equivalent configuration representation.
RewardConvert(contents *AvailableRewards) (rewardConfig *EconomyConfigReward)
// RewardRoll takes a reward configuration and rolls an actual reward from it, applying all appropriate rules.
RewardRoll(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, rewardConfig *EconomyConfigReward) (reward *Reward, err error)
// RewardGrant updates a user's economy, inventory, and/or energy models with the contents of a rolled reward.
RewardGrant(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, reward *Reward, metadata map[string]interface{}, ignoreLimits bool) (newItems map[string]*InventoryItem, updatedItems map[string]*InventoryItem, notGrantedItemIDs map[string]int64, err error)
// DonationClaim will claim donation rewards for a user and the given donation IDs.
DonationClaim(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, donationClaims map[string]*EconomyDonationClaimRequestDetails) (donationsList *EconomyDonationsList, err error)
// DonationGet will get all donations for the given list of user IDs.
DonationGet(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userIDs []string) (donationsList *EconomyDonationsByUserList, err error)
// DonationGive will contribute to a particular donation for a user ID.
DonationGive(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, donationID, fromUserID string) (updatedWallet map[string]int64, updatedInventory *Inventory, rewardModifiers []*ActiveRewardModifier, contributorReward *Reward, timestamp int64, err error)
// DonationRequest will create a donation request for a given donation ID and user ID.
DonationRequest(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, donationID string) (donation *EconomyDonation, success bool, err error)
// List will get the defined store items and placements within the economy system.
List(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string) (storeItems map[string]*EconomyConfigStoreItem, placements map[string]*EconomyConfigPlacement, rewardModifiers []*ActiveRewardModifier, timestamp int64, err error)
// Grant will add currencies, and reward modifiers to a user's economy by ID.
Grant(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, currencies map[string]int64, items map[string]int64, modifiers []*RewardModifier, walletMetadata map[string]interface{}) (updatedWallet map[string]int64, rewardModifiers []*ActiveRewardModifier, timestamp int64, err error)
// UnmarshalWallet unmarshals and returns the account's wallet as a map[string]int64.
UnmarshalWallet(account *api.Account) (wallet map[string]int64, err error)
// PurchaseIntent will create a purchase intent for a particular store item for a user ID.
PurchaseIntent(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, itemID string, store EconomyStoreType, sku string, amount float64, currency string) (err error)
// PurchaseItem will validate a purchase and give the user ID the appropriate rewards.
PurchaseItem(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, userID, itemID string, store EconomyStoreType, receipt string) (updatedWallet map[string]int64, updatedInventory *Inventory, reward *Reward, isSandboxPurchase bool, err error)
// PurchaseRestore will process a restore attempt for the given user, based on a set of restore receipts.
PurchaseRestore(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, store EconomyStoreType, receipts []string) (err error)
// PlacementStatus will get the status of a specified placement.
PlacementStatus(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, rewardID, placementID string, retryCount int) (resp *EconomyPlacementStatus, err error)
// PlacementStart will indicate that a user ID has begun viewing an ad placement.
PlacementStart(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, placementID string, metadata map[string]string) (resp *EconomyPlacementStatus, err error)
// PlacementSuccess will indicate that the user ID has successfully viewed an ad placement and provide the appropriate reward.
PlacementSuccess(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, rewardID, placementID string) (reward *Reward, placementMetadata map[string]string, err error)
// PlacementFail will indicate that the user ID has failed to successfully view the ad placement.
PlacementFail(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, rewardID, placementID string) (placementMetadata map[string]string, err error)
// SetOnDonationClaimReward sets a custom reward function which will run after a donation's reward is rolled.
SetOnDonationClaimReward(fn OnReward[*EconomyConfigDonation])
// SetOnDonationContributorReward sets a custom reward function which will run after a donation's sender reward is rolled.
SetOnDonationContributorReward(fn OnReward[*EconomyConfigDonation])
// SetOnPlacementReward sets a custom reward function which will run after a placement's reward is rolled.
SetOnPlacementReward(fn OnReward[*EconomyPlacementInfo])
// SetOnStoreItemReward sets a custom reward function which will run after store item's reward is rolled.
SetOnStoreItemReward(fn OnReward[*EconomyConfigStoreItem])
}
The EconomySystem is the foundation of a game's economy.
It provides functionality for 4 different reward types: basic, gacha, weighted table, and custom. These rolled rewards are available to generate in all other gameplay systems and can be generated manually as well.
type EconomyUpdateAck ¶
type EconomyUpdateAck struct {
// Updated wallet data, if changed.
Wallet map[string]int64 `` /* 154-byte string literal not displayed */
// Update inventory data, if changed.
Inventory *Inventory `protobuf:"bytes,2,opt,name=inventory,proto3" json:"inventory,omitempty"`
// Reward, if any.
Reward *Reward `protobuf:"bytes,3,opt,name=reward,proto3" json:"reward,omitempty"`
// Updated active reward modifiers, if changed.
ActiveRewardModifiers []*ActiveRewardModifier `` /* 126-byte string literal not displayed */
// Current server time.
CurrentTimeSec int64 `protobuf:"varint,5,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// contains filtered or unexported fields
}
Response from granting currencies, reward modifiers, and/or items. Contains updated wallet and inventory data, if changed. Contains reward granted, if any. Contains active reward modifiers, if changed.
func (*EconomyUpdateAck) Descriptor
deprecated
func (*EconomyUpdateAck) Descriptor() ([]byte, []int)
Deprecated: Use EconomyUpdateAck.ProtoReflect.Descriptor instead.
func (*EconomyUpdateAck) GetActiveRewardModifiers ¶ added in v1.15.0
func (x *EconomyUpdateAck) GetActiveRewardModifiers() []*ActiveRewardModifier
func (*EconomyUpdateAck) GetCurrentTimeSec ¶ added in v1.15.0
func (x *EconomyUpdateAck) GetCurrentTimeSec() int64
func (*EconomyUpdateAck) GetInventory ¶
func (x *EconomyUpdateAck) GetInventory() *Inventory
func (*EconomyUpdateAck) GetReward ¶
func (x *EconomyUpdateAck) GetReward() *Reward
func (*EconomyUpdateAck) GetWallet ¶
func (x *EconomyUpdateAck) GetWallet() map[string]int64
func (*EconomyUpdateAck) ProtoMessage ¶
func (*EconomyUpdateAck) ProtoMessage()
func (*EconomyUpdateAck) ProtoReflect ¶
func (x *EconomyUpdateAck) ProtoReflect() protoreflect.Message
func (*EconomyUpdateAck) Reset ¶
func (x *EconomyUpdateAck) Reset()
func (*EconomyUpdateAck) String ¶
func (x *EconomyUpdateAck) String() string
type Energy ¶
type Energy struct {
// The unique energy identifier.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The current amount.
Current int32 `protobuf:"varint,2,opt,name=current,proto3" json:"current,omitempty"`
// The maximum amount.
Max int32 `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"`
// Amount of energy granted per refill.
Refill int32 `protobuf:"varint,4,opt,name=refill,proto3" json:"refill,omitempty"`
// Number of seconds between refills.
RefillSec int64 `protobuf:"varint,5,opt,name=refill_sec,json=refillSec,proto3" json:"refill_sec,omitempty"`
// The UNIX timestamp when the count will increase, if it is not at max already.
NextRefillTimeSec int64 `protobuf:"varint,6,opt,name=next_refill_time_sec,json=nextRefillTimeSec,proto3" json:"next_refill_time_sec,omitempty"`
// The UNIX timestamp when the count will reach max, if it is not at max already.
MaxRefillTimeSec int64 `protobuf:"varint,7,opt,name=max_refill_time_sec,json=maxRefillTimeSec,proto3" json:"max_refill_time_sec,omitempty"`
// The UNIX timestamp when the count started filling, if it is not at max already.
StartRefillTimeSec int64 `protobuf:"varint,8,opt,name=start_refill_time_sec,json=startRefillTimeSec,proto3" json:"start_refill_time_sec,omitempty"`
// The modifiers, if any.
Modifiers []*EnergyModifier `protobuf:"bytes,9,rep,name=modifiers,proto3" json:"modifiers,omitempty"`
// The available rewards, if any.
AvailableRewards *AvailableRewards `protobuf:"bytes,10,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 210-byte string literal not displayed */
// The current UNIX timestamp in seconds.
CurrentTimeSec int64 `protobuf:"varint,12,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// contains filtered or unexported fields
}
Information about a single energy type.
func (*Energy) Descriptor
deprecated
func (*Energy) GetAdditionalProperties ¶
func (*Energy) GetAvailableRewards ¶
func (x *Energy) GetAvailableRewards() *AvailableRewards
func (*Energy) GetCurrent ¶
func (*Energy) GetCurrentTimeSec ¶
func (*Energy) GetMaxRefillTimeSec ¶
func (*Energy) GetModifiers ¶
func (x *Energy) GetModifiers() []*EnergyModifier
func (*Energy) GetNextRefillTimeSec ¶
func (*Energy) GetRefillSec ¶
func (*Energy) GetStartRefillTimeSec ¶
func (*Energy) ProtoMessage ¶
func (*Energy) ProtoMessage()
func (*Energy) ProtoReflect ¶
func (x *Energy) ProtoReflect() protoreflect.Message
type EnergyConfig ¶
type EnergyConfig struct {
Energies map[string]*EnergyConfigEnergy `json:"energies,omitempty"`
}
EnergyConfig is the data definition for the EnergySystem type.
type EnergyConfigEnergy ¶
type EnergyConfigEnergy struct {
StartCount int32 `json:"start_count,omitempty"`
MaxCount int32 `json:"max_count,omitempty"`
MaxOverfill int32 `json:"max_overfill,omitempty"`
RefillCount int32 `json:"refill_count,omitempty"`
RefillTimeSec int64 `json:"refill_time_sec,omitempty"`
Implicit bool `json:"implicit,omitempty"`
Reward *EconomyConfigReward `json:"reward,omitempty"`
AdditionalProperties map[string]string `json:"additional_properties,omitempty"`
}
type EnergyGrantRequest ¶ added in v1.17.0
type EnergyGrantRequest struct {
// Energy amounts to grant.
Amounts map[string]int32 `` /* 156-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to grant one or more energy amounts.
func (*EnergyGrantRequest) Descriptor
deprecated
added in
v1.17.0
func (*EnergyGrantRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnergyGrantRequest.ProtoReflect.Descriptor instead.
func (*EnergyGrantRequest) GetAmounts ¶ added in v1.17.0
func (x *EnergyGrantRequest) GetAmounts() map[string]int32
func (*EnergyGrantRequest) ProtoMessage ¶ added in v1.17.0
func (*EnergyGrantRequest) ProtoMessage()
func (*EnergyGrantRequest) ProtoReflect ¶ added in v1.17.0
func (x *EnergyGrantRequest) ProtoReflect() protoreflect.Message
func (*EnergyGrantRequest) Reset ¶ added in v1.17.0
func (x *EnergyGrantRequest) Reset()
func (*EnergyGrantRequest) String ¶ added in v1.17.0
func (x *EnergyGrantRequest) String() string
type EnergyList ¶
type EnergyList struct {
// Energy types keyed on the energy identifier.
Energies map[string]*Energy `` /* 157-byte string literal not displayed */
// contains filtered or unexported fields
}
One or more energy values for a user.
func (*EnergyList) Descriptor
deprecated
func (*EnergyList) Descriptor() ([]byte, []int)
Deprecated: Use EnergyList.ProtoReflect.Descriptor instead.
func (*EnergyList) GetEnergies ¶
func (x *EnergyList) GetEnergies() map[string]*Energy
func (*EnergyList) ProtoMessage ¶
func (*EnergyList) ProtoMessage()
func (*EnergyList) ProtoReflect ¶
func (x *EnergyList) ProtoReflect() protoreflect.Message
func (*EnergyList) Reset ¶
func (x *EnergyList) Reset()
func (*EnergyList) String ¶
func (x *EnergyList) String() string
type EnergyModifier ¶
type EnergyModifier struct {
// The modifier operator.
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
// The modifier value, if applicable.
Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
// The UNIX timestamp when the modifier became active.
StartTimeSec int64 `protobuf:"varint,3,opt,name=start_time_sec,json=startTimeSec,proto3" json:"start_time_sec,omitempty"`
// The UNIX timestamp when the modifier ends.
EndTimeSec int64 `protobuf:"varint,4,opt,name=end_time_sec,json=endTimeSec,proto3" json:"end_time_sec,omitempty"`
// contains filtered or unexported fields
}
A modifier that may change energy behaviour.
func (*EnergyModifier) Descriptor
deprecated
func (*EnergyModifier) Descriptor() ([]byte, []int)
Deprecated: Use EnergyModifier.ProtoReflect.Descriptor instead.
func (*EnergyModifier) GetEndTimeSec ¶
func (x *EnergyModifier) GetEndTimeSec() int64
func (*EnergyModifier) GetOperator ¶
func (x *EnergyModifier) GetOperator() string
func (*EnergyModifier) GetStartTimeSec ¶
func (x *EnergyModifier) GetStartTimeSec() int64
func (*EnergyModifier) GetValue ¶
func (x *EnergyModifier) GetValue() int32
func (*EnergyModifier) ProtoMessage ¶
func (*EnergyModifier) ProtoMessage()
func (*EnergyModifier) ProtoReflect ¶
func (x *EnergyModifier) ProtoReflect() protoreflect.Message
func (*EnergyModifier) Reset ¶
func (x *EnergyModifier) Reset()
func (*EnergyModifier) String ¶
func (x *EnergyModifier) String() string
type EnergySpendRequest ¶
type EnergySpendRequest struct {
// Energy amounts to spend.
Amounts map[string]int32 `` /* 156-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to spend one or more energy amounts.
func (*EnergySpendRequest) Descriptor
deprecated
func (*EnergySpendRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnergySpendRequest.ProtoReflect.Descriptor instead.
func (*EnergySpendRequest) GetAmounts ¶
func (x *EnergySpendRequest) GetAmounts() map[string]int32
func (*EnergySpendRequest) ProtoMessage ¶
func (*EnergySpendRequest) ProtoMessage()
func (*EnergySpendRequest) ProtoReflect ¶
func (x *EnergySpendRequest) ProtoReflect() protoreflect.Message
func (*EnergySpendRequest) Reset ¶
func (x *EnergySpendRequest) Reset()
func (*EnergySpendRequest) String ¶
func (x *EnergySpendRequest) String() string
type EnergySpendReward ¶
type EnergySpendReward struct {
// The updated list of energy.
Energies *EnergyList `protobuf:"bytes,1,opt,name=energies,proto3" json:"energies,omitempty"`
// The cumulative reward of spending the energies.
Reward *Reward `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward,omitempty"`
// contains filtered or unexported fields
}
Request to spend one or more energy amounts.
func (*EnergySpendReward) Descriptor
deprecated
func (*EnergySpendReward) Descriptor() ([]byte, []int)
Deprecated: Use EnergySpendReward.ProtoReflect.Descriptor instead.
func (*EnergySpendReward) GetEnergies ¶
func (x *EnergySpendReward) GetEnergies() *EnergyList
func (*EnergySpendReward) GetReward ¶
func (x *EnergySpendReward) GetReward() *Reward
func (*EnergySpendReward) ProtoMessage ¶
func (*EnergySpendReward) ProtoMessage()
func (*EnergySpendReward) ProtoReflect ¶
func (x *EnergySpendReward) ProtoReflect() protoreflect.Message
func (*EnergySpendReward) Reset ¶
func (x *EnergySpendReward) Reset()
func (*EnergySpendReward) String ¶
func (x *EnergySpendReward) String() string
type EnergySpendWithRefillStartTimeRequest ¶ added in v1.29.0
type EnergySpendWithRefillStartTimeRequest struct {
// Energy spends with custom refill start times, keyed on the energy identifier.
Spends map[string]*EnergySpendWithTime `` /* 153-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to spend one or more energies with custom refill start times.
func (*EnergySpendWithRefillStartTimeRequest) Descriptor
deprecated
added in
v1.29.0
func (*EnergySpendWithRefillStartTimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnergySpendWithRefillStartTimeRequest.ProtoReflect.Descriptor instead.
func (*EnergySpendWithRefillStartTimeRequest) GetSpends ¶ added in v1.29.0
func (x *EnergySpendWithRefillStartTimeRequest) GetSpends() map[string]*EnergySpendWithTime
func (*EnergySpendWithRefillStartTimeRequest) ProtoMessage ¶ added in v1.29.0
func (*EnergySpendWithRefillStartTimeRequest) ProtoMessage()
func (*EnergySpendWithRefillStartTimeRequest) ProtoReflect ¶ added in v1.29.0
func (x *EnergySpendWithRefillStartTimeRequest) ProtoReflect() protoreflect.Message
func (*EnergySpendWithRefillStartTimeRequest) Reset ¶ added in v1.29.0
func (x *EnergySpendWithRefillStartTimeRequest) Reset()
func (*EnergySpendWithRefillStartTimeRequest) String ¶ added in v1.29.0
func (x *EnergySpendWithRefillStartTimeRequest) String() string
type EnergySpendWithTime ¶ added in v1.29.0
type EnergySpendWithTime struct {
// The amount to spend.
Amount int32 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
// The custom refill start time in seconds since Unix epoch.
RefillStartTime int64 `protobuf:"varint,2,opt,name=refill_start_time,json=refillStartTime,proto3" json:"refill_start_time,omitempty"`
// contains filtered or unexported fields
}
An energy spend with a custom refill start time.
func (*EnergySpendWithTime) Descriptor
deprecated
added in
v1.29.0
func (*EnergySpendWithTime) Descriptor() ([]byte, []int)
Deprecated: Use EnergySpendWithTime.ProtoReflect.Descriptor instead.
func (*EnergySpendWithTime) GetAmount ¶ added in v1.29.0
func (x *EnergySpendWithTime) GetAmount() int32
func (*EnergySpendWithTime) GetRefillStartTime ¶ added in v1.29.0
func (x *EnergySpendWithTime) GetRefillStartTime() int64
func (*EnergySpendWithTime) ProtoMessage ¶ added in v1.29.0
func (*EnergySpendWithTime) ProtoMessage()
func (*EnergySpendWithTime) ProtoReflect ¶ added in v1.29.0
func (x *EnergySpendWithTime) ProtoReflect() protoreflect.Message
func (*EnergySpendWithTime) Reset ¶ added in v1.29.0
func (x *EnergySpendWithTime) Reset()
func (*EnergySpendWithTime) String ¶ added in v1.29.0
func (x *EnergySpendWithTime) String() string
type EnergySystem ¶
type EnergySystem interface {
System
// Get returns all energies defined and the values a user currently owns by ID.
Get(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string) (energies map[string]*Energy, err error)
// BatchSpend will deduct the amounts from each energy for each user by ID.
BatchSpend(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, usersAmounts map[string]map[string]int32) (map[string]map[string]*Energy, map[string]*Reward, error)
// Spend will deduct the amounts from each energy for a user by ID.
Spend(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, amounts map[string]int32) (energies map[string]*Energy, reward *Reward, err error)
// SpendWithRefillStartTime will deduct the amounts from each energy for a user by ID and set a custom start refill time.
SpendWithRefillStartTime(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, spends map[string]*EnergySpendWithTime) (map[string]*Energy, *Reward, error)
// Grant will add the amounts to each energy (while applying any energy modifiers) for a user by ID.
Grant(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, amounts map[string]int32, modifiers []*RewardEnergyModifier) (energies map[string]*Energy, err error)
// SetOnSpendReward sets a custom reward function which will run after an energy reward's value has been rolled.
SetOnSpendReward(fn OnReward[*EnergyConfigEnergy])
}
The EnergySystem provides a gameplay system for Energy timers.
An energy is a gameplay mechanic used to reward or limit progress which a player can make through the gameplay content.
type EventLeaderboard ¶ added in v1.1.0
type EventLeaderboard struct {
// Event leaderboard ID.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The name of the event leaderboard. May be an i18n code.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// A description of the event leaderboard. May be an i18n code.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// The category to group the event leaderboard together with others.
Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
// Score ordering.
Ascending bool `protobuf:"varint,5,opt,name=ascending,proto3" json:"ascending,omitempty"`
// Score submission operator.
Operator string `protobuf:"bytes,6,opt,name=operator,proto3" json:"operator,omitempty"`
// The tier of this instance of the event leaderboard.
Tier int32 `protobuf:"varint,7,opt,name=tier,proto3" json:"tier,omitempty"`
// Time when the event starts.
StartTimeSec int64 `protobuf:"varint,8,opt,name=start_time_sec,json=startTimeSec,proto3" json:"start_time_sec,omitempty"`
// Time when the event ends.
EndTimeSec int64 `protobuf:"varint,9,opt,name=end_time_sec,json=endTimeSec,proto3" json:"end_time_sec,omitempty"`
// Time when the event expires.
ExpiryTimeSec int64 `protobuf:"varint,10,opt,name=expiry_time_sec,json=expiryTimeSec,proto3" json:"expiry_time_sec,omitempty"`
// The available reward and its probabilities.
AvailableRewards *AvailableRewards `protobuf:"bytes,11,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// The possible reward tiers for this instance of the event leaderboard, based on its current tier.
RewardTiers map[int32]*EventLeaderboardRewardTiers `` /* 184-byte string literal not displayed */
// Per-tier promotion/demotion change zones, if configured.
ChangeZones map[int32]*EventLeaderboardChangeZone `` /* 184-byte string literal not displayed */
// Claim time, if any.
ClaimTimeSec int64 `protobuf:"varint,14,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// The outcome (rolled) reward for the event leaderboard.
Reward *Reward `protobuf:"bytes,15,opt,name=reward,proto3" json:"reward,omitempty"`
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 210-byte string literal not displayed */
// Current participant count.
Count int64 `protobuf:"varint,17,opt,name=count,proto3" json:"count,omitempty"`
// Maximum participant count.
MaxCount int64 `protobuf:"varint,18,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"`
// Maximum number of score submissions per participant.
MaxNumScore int64 `protobuf:"varint,19,opt,name=max_num_score,json=maxNumScore,proto3" json:"max_num_score,omitempty"`
// Participants and their scores.
Scores []*EventLeaderboardScore `protobuf:"bytes,20,rep,name=scores,proto3" json:"scores,omitempty"`
// Indicates if the event is still active, and scores can be submitted.
IsActive bool `protobuf:"varint,21,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
// Indicates if the event is over and its reward can be claimed.
CanClaim bool `protobuf:"varint,22,opt,name=can_claim,json=canClaim,proto3" json:"can_claim,omitempty"`
// Indicates if the event can be rolled to get a new set of opponents.
CanRoll bool `protobuf:"varint,23,opt,name=can_roll,json=canRoll,proto3" json:"can_roll,omitempty"`
// Extra matchmaker properties for this cohort.
MatchmakerProperties *structpb.Struct `protobuf:"bytes,24,opt,name=matchmaker_properties,json=matchmakerProperties,proto3" json:"matchmaker_properties,omitempty"`
// The UNIX timestamp for the current server time.
CurrentTimeSec int64 `protobuf:"varint,25,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// Cohort ID the user belongs to for this active phase.
CohortId string `protobuf:"bytes,26,opt,name=cohort_id,json=cohortId,proto3" json:"cohort_id,omitempty"`
// Backing ID for underlying score tracking.
BackingId string `protobuf:"bytes,27,opt,name=backing_id,json=backingId,proto3" json:"backing_id,omitempty"`
// contains filtered or unexported fields
}
Details about a specific event leaderboard.
func (*EventLeaderboard) Descriptor
deprecated
added in
v1.1.0
func (*EventLeaderboard) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboard.ProtoReflect.Descriptor instead.
func (*EventLeaderboard) GetAdditionalProperties ¶ added in v1.1.0
func (x *EventLeaderboard) GetAdditionalProperties() map[string]string
func (*EventLeaderboard) GetAscending ¶ added in v1.1.0
func (x *EventLeaderboard) GetAscending() bool
func (*EventLeaderboard) GetAvailableRewards ¶ added in v1.1.0
func (x *EventLeaderboard) GetAvailableRewards() *AvailableRewards
func (*EventLeaderboard) GetBackingId ¶ added in v1.21.0
func (x *EventLeaderboard) GetBackingId() string
func (*EventLeaderboard) GetCanClaim ¶ added in v1.1.0
func (x *EventLeaderboard) GetCanClaim() bool
func (*EventLeaderboard) GetCanRoll ¶ added in v1.6.0
func (x *EventLeaderboard) GetCanRoll() bool
func (*EventLeaderboard) GetCategory ¶ added in v1.1.0
func (x *EventLeaderboard) GetCategory() string
func (*EventLeaderboard) GetChangeZones ¶ added in v1.3.0
func (x *EventLeaderboard) GetChangeZones() map[int32]*EventLeaderboardChangeZone
func (*EventLeaderboard) GetClaimTimeSec ¶ added in v1.1.0
func (x *EventLeaderboard) GetClaimTimeSec() int64
func (*EventLeaderboard) GetCohortId ¶ added in v1.17.0
func (x *EventLeaderboard) GetCohortId() string
func (*EventLeaderboard) GetCount ¶ added in v1.1.0
func (x *EventLeaderboard) GetCount() int64
func (*EventLeaderboard) GetCurrentTimeSec ¶ added in v1.13.0
func (x *EventLeaderboard) GetCurrentTimeSec() int64
func (*EventLeaderboard) GetDescription ¶ added in v1.1.0
func (x *EventLeaderboard) GetDescription() string
func (*EventLeaderboard) GetEndTimeSec ¶ added in v1.1.0
func (x *EventLeaderboard) GetEndTimeSec() int64
func (*EventLeaderboard) GetExpiryTimeSec ¶ added in v1.1.0
func (x *EventLeaderboard) GetExpiryTimeSec() int64
func (*EventLeaderboard) GetId ¶ added in v1.1.0
func (x *EventLeaderboard) GetId() string
func (*EventLeaderboard) GetIsActive ¶ added in v1.1.0
func (x *EventLeaderboard) GetIsActive() bool
func (*EventLeaderboard) GetMatchmakerProperties ¶ added in v1.12.0
func (x *EventLeaderboard) GetMatchmakerProperties() *structpb.Struct
func (*EventLeaderboard) GetMaxCount ¶ added in v1.1.0
func (x *EventLeaderboard) GetMaxCount() int64
func (*EventLeaderboard) GetMaxNumScore ¶ added in v1.1.0
func (x *EventLeaderboard) GetMaxNumScore() int64
func (*EventLeaderboard) GetName ¶ added in v1.1.0
func (x *EventLeaderboard) GetName() string
func (*EventLeaderboard) GetOperator ¶ added in v1.1.0
func (x *EventLeaderboard) GetOperator() string
func (*EventLeaderboard) GetReward ¶ added in v1.1.0
func (x *EventLeaderboard) GetReward() *Reward
func (*EventLeaderboard) GetRewardTiers ¶ added in v1.1.0
func (x *EventLeaderboard) GetRewardTiers() map[int32]*EventLeaderboardRewardTiers
func (*EventLeaderboard) GetScores ¶ added in v1.1.0
func (x *EventLeaderboard) GetScores() []*EventLeaderboardScore
func (*EventLeaderboard) GetStartTimeSec ¶ added in v1.1.0
func (x *EventLeaderboard) GetStartTimeSec() int64
func (*EventLeaderboard) GetTier ¶ added in v1.1.0
func (x *EventLeaderboard) GetTier() int32
func (*EventLeaderboard) ProtoMessage ¶ added in v1.1.0
func (*EventLeaderboard) ProtoMessage()
func (*EventLeaderboard) ProtoReflect ¶ added in v1.1.0
func (x *EventLeaderboard) ProtoReflect() protoreflect.Message
func (*EventLeaderboard) Reset ¶ added in v1.1.0
func (x *EventLeaderboard) Reset()
func (*EventLeaderboard) String ¶ added in v1.1.0
func (x *EventLeaderboard) String() string
type EventLeaderboardChangeZone ¶ added in v1.3.0
type EventLeaderboardChangeZone struct {
// Percentage of cohort to promote, expressed in the range of 0.0 to 1.0.
Promotion float64 `protobuf:"fixed64,1,opt,name=promotion,proto3" json:"promotion,omitempty"`
// Percentage of cohort to demote, expressed in the range of 0.0 to 1.0.
Demotion float64 `protobuf:"fixed64,2,opt,name=demotion,proto3" json:"demotion,omitempty"`
// Whether or not to always demote players that failed to submit a score at all.
DemoteIdle bool `protobuf:"varint,3,opt,name=demote_idle,json=demoteIdle,proto3" json:"demote_idle,omitempty"`
// Whether or not to use the max cohort size or the actual cohort size to compute the change zones.
UseMaxCohortSize bool `protobuf:"varint,4,opt,name=use_max_cohort_size,json=useMaxCohortSize,proto3" json:"use_max_cohort_size,omitempty"`
// contains filtered or unexported fields
}
An event leaderboard's tier-specific promotion/demotion zones.
func (*EventLeaderboardChangeZone) Descriptor
deprecated
added in
v1.3.0
func (*EventLeaderboardChangeZone) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboardChangeZone.ProtoReflect.Descriptor instead.
func (*EventLeaderboardChangeZone) GetDemoteIdle ¶ added in v1.3.0
func (x *EventLeaderboardChangeZone) GetDemoteIdle() bool
func (*EventLeaderboardChangeZone) GetDemotion ¶ added in v1.3.0
func (x *EventLeaderboardChangeZone) GetDemotion() float64
func (*EventLeaderboardChangeZone) GetPromotion ¶ added in v1.3.0
func (x *EventLeaderboardChangeZone) GetPromotion() float64
func (*EventLeaderboardChangeZone) GetUseMaxCohortSize ¶ added in v1.29.0
func (x *EventLeaderboardChangeZone) GetUseMaxCohortSize() bool
func (*EventLeaderboardChangeZone) ProtoMessage ¶ added in v1.3.0
func (*EventLeaderboardChangeZone) ProtoMessage()
func (*EventLeaderboardChangeZone) ProtoReflect ¶ added in v1.3.0
func (x *EventLeaderboardChangeZone) ProtoReflect() protoreflect.Message
func (*EventLeaderboardChangeZone) Reset ¶ added in v1.3.0
func (x *EventLeaderboardChangeZone) Reset()
func (*EventLeaderboardChangeZone) String ¶ added in v1.3.0
func (x *EventLeaderboardChangeZone) String() string
type EventLeaderboardClaim ¶ added in v1.1.0
type EventLeaderboardClaim struct {
// Event leaderboard ID to claim.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Claim the available reward for an event leaderboard by ID.
func (*EventLeaderboardClaim) Descriptor
deprecated
added in
v1.1.0
func (*EventLeaderboardClaim) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboardClaim.ProtoReflect.Descriptor instead.
func (*EventLeaderboardClaim) GetId ¶ added in v1.1.0
func (x *EventLeaderboardClaim) GetId() string
func (*EventLeaderboardClaim) ProtoMessage ¶ added in v1.1.0
func (*EventLeaderboardClaim) ProtoMessage()
func (*EventLeaderboardClaim) ProtoReflect ¶ added in v1.1.0
func (x *EventLeaderboardClaim) ProtoReflect() protoreflect.Message
func (*EventLeaderboardClaim) Reset ¶ added in v1.1.0
func (x *EventLeaderboardClaim) Reset()
func (*EventLeaderboardClaim) String ¶ added in v1.1.0
func (x *EventLeaderboardClaim) String() string
type EventLeaderboardCohortConfig ¶ added in v1.20.0
type EventLeaderboardDebugFillRequest ¶ added in v1.13.0
type EventLeaderboardDebugFillRequest struct {
// Event leaderboard ID to fill.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Optional target cohort size to fill to, otherwise fill to max cohort size.
TargetCount int32 `protobuf:"varint,2,opt,name=target_count,json=targetCount,proto3" json:"target_count,omitempty"`
// contains filtered or unexported fields
}
func (*EventLeaderboardDebugFillRequest) Descriptor
deprecated
added in
v1.13.0
func (*EventLeaderboardDebugFillRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboardDebugFillRequest.ProtoReflect.Descriptor instead.
func (*EventLeaderboardDebugFillRequest) GetId ¶ added in v1.13.0
func (x *EventLeaderboardDebugFillRequest) GetId() string
func (*EventLeaderboardDebugFillRequest) GetTargetCount ¶ added in v1.16.0
func (x *EventLeaderboardDebugFillRequest) GetTargetCount() int32
func (*EventLeaderboardDebugFillRequest) ProtoMessage ¶ added in v1.13.0
func (*EventLeaderboardDebugFillRequest) ProtoMessage()
func (*EventLeaderboardDebugFillRequest) ProtoReflect ¶ added in v1.13.0
func (x *EventLeaderboardDebugFillRequest) ProtoReflect() protoreflect.Message
func (*EventLeaderboardDebugFillRequest) Reset ¶ added in v1.13.0
func (x *EventLeaderboardDebugFillRequest) Reset()
func (*EventLeaderboardDebugFillRequest) String ¶ added in v1.13.0
func (x *EventLeaderboardDebugFillRequest) String() string
type EventLeaderboardDebugRandomScoresRequest ¶ added in v1.13.0
type EventLeaderboardDebugRandomScoresRequest struct {
// Event leaderboard ID to update.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Minimum score, inclusive.
Min int64 `protobuf:"varint,2,opt,name=min,proto3" json:"min,omitempty"`
// Maximum score, inclusive.
Max int64 `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"`
// Optional operator to use when updating scores.
Operator *wrapperspb.Int32Value `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"`
// Minimum subscore, inclusive.
SubscoreMin int64 `protobuf:"varint,5,opt,name=subscore_min,json=subscoreMin,proto3" json:"subscore_min,omitempty"`
// Maximum subscore, inclusive.
SubscoreMax int64 `protobuf:"varint,6,opt,name=subscore_max,json=subscoreMax,proto3" json:"subscore_max,omitempty"`
// contains filtered or unexported fields
}
DEBUG. Payload describing scores to set for a cohort's participants.
func (*EventLeaderboardDebugRandomScoresRequest) Descriptor
deprecated
added in
v1.13.0
func (*EventLeaderboardDebugRandomScoresRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboardDebugRandomScoresRequest.ProtoReflect.Descriptor instead.
func (*EventLeaderboardDebugRandomScoresRequest) GetId ¶ added in v1.13.0
func (x *EventLeaderboardDebugRandomScoresRequest) GetId() string
func (*EventLeaderboardDebugRandomScoresRequest) GetMax ¶ added in v1.13.0
func (x *EventLeaderboardDebugRandomScoresRequest) GetMax() int64
func (*EventLeaderboardDebugRandomScoresRequest) GetMin ¶ added in v1.13.0
func (x *EventLeaderboardDebugRandomScoresRequest) GetMin() int64
func (*EventLeaderboardDebugRandomScoresRequest) GetOperator ¶ added in v1.13.0
func (x *EventLeaderboardDebugRandomScoresRequest) GetOperator() *wrapperspb.Int32Value
func (*EventLeaderboardDebugRandomScoresRequest) GetSubscoreMax ¶ added in v1.16.0
func (x *EventLeaderboardDebugRandomScoresRequest) GetSubscoreMax() int64
func (*EventLeaderboardDebugRandomScoresRequest) GetSubscoreMin ¶ added in v1.16.0
func (x *EventLeaderboardDebugRandomScoresRequest) GetSubscoreMin() int64
func (*EventLeaderboardDebugRandomScoresRequest) ProtoMessage ¶ added in v1.13.0
func (*EventLeaderboardDebugRandomScoresRequest) ProtoMessage()
func (*EventLeaderboardDebugRandomScoresRequest) ProtoReflect ¶ added in v1.13.0
func (x *EventLeaderboardDebugRandomScoresRequest) ProtoReflect() protoreflect.Message
func (*EventLeaderboardDebugRandomScoresRequest) Reset ¶ added in v1.13.0
func (x *EventLeaderboardDebugRandomScoresRequest) Reset()
func (*EventLeaderboardDebugRandomScoresRequest) String ¶ added in v1.13.0
func (x *EventLeaderboardDebugRandomScoresRequest) String() string
type EventLeaderboardGet ¶ added in v1.1.0
type EventLeaderboardGet struct {
// Event leaderboard ID to get, and join if necessary/possible.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Find and retrieve an event leaderboard by ID, automatically joining the event if necessary.
func (*EventLeaderboardGet) Descriptor
deprecated
added in
v1.1.0
func (*EventLeaderboardGet) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboardGet.ProtoReflect.Descriptor instead.
func (*EventLeaderboardGet) GetId ¶ added in v1.1.0
func (x *EventLeaderboardGet) GetId() string
func (*EventLeaderboardGet) ProtoMessage ¶ added in v1.1.0
func (*EventLeaderboardGet) ProtoMessage()
func (*EventLeaderboardGet) ProtoReflect ¶ added in v1.1.0
func (x *EventLeaderboardGet) ProtoReflect() protoreflect.Message
func (*EventLeaderboardGet) Reset ¶ added in v1.1.0
func (x *EventLeaderboardGet) Reset()
func (*EventLeaderboardGet) String ¶ added in v1.1.0
func (x *EventLeaderboardGet) String() string
type EventLeaderboardList ¶ added in v1.21.0
type EventLeaderboardList struct {
// Whether or not the response should include scores, defaults to false.
WithScores bool `protobuf:"varint,1,opt,name=with_scores,json=withScores,proto3" json:"with_scores,omitempty"`
// Optional filter of Event Leaderboard categories to list. If empty does not filter on category.
Categories []string `protobuf:"bytes,2,rep,name=categories,proto3" json:"categories,omitempty"`
// contains filtered or unexported fields
}
Retrieve available event leaderboards.
func (*EventLeaderboardList) Descriptor
deprecated
added in
v1.21.0
func (*EventLeaderboardList) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboardList.ProtoReflect.Descriptor instead.
func (*EventLeaderboardList) GetCategories ¶ added in v1.21.0
func (x *EventLeaderboardList) GetCategories() []string
func (*EventLeaderboardList) GetWithScores ¶ added in v1.21.0
func (x *EventLeaderboardList) GetWithScores() bool
func (*EventLeaderboardList) ProtoMessage ¶ added in v1.21.0
func (*EventLeaderboardList) ProtoMessage()
func (*EventLeaderboardList) ProtoReflect ¶ added in v1.21.0
func (x *EventLeaderboardList) ProtoReflect() protoreflect.Message
func (*EventLeaderboardList) Reset ¶ added in v1.21.0
func (x *EventLeaderboardList) Reset()
func (*EventLeaderboardList) String ¶ added in v1.21.0
func (x *EventLeaderboardList) String() string
type EventLeaderboardRewardTier ¶ added in v1.1.0
type EventLeaderboardRewardTier struct {
// Name for this tier.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The maximum rank (inclusive).
RankMax int32 `protobuf:"varint,2,opt,name=rank_max,json=rankMax,proto3" json:"rank_max,omitempty"`
// The minimum rank (inclusive).
RankMin int32 `protobuf:"varint,3,opt,name=rank_min,json=rankMin,proto3" json:"rank_min,omitempty"`
// The available rewards for this range.
AvailableRewards *AvailableRewards `protobuf:"bytes,4,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// Change in tier for this rank range.
TierChange int32 `protobuf:"varint,5,opt,name=tier_change,json=tierChange,proto3" json:"tier_change,omitempty"`
// contains filtered or unexported fields
}
A reward range within a specific tier based on ranks.
func (*EventLeaderboardRewardTier) Descriptor
deprecated
added in
v1.1.0
func (*EventLeaderboardRewardTier) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboardRewardTier.ProtoReflect.Descriptor instead.
func (*EventLeaderboardRewardTier) GetAvailableRewards ¶ added in v1.1.0
func (x *EventLeaderboardRewardTier) GetAvailableRewards() *AvailableRewards
func (*EventLeaderboardRewardTier) GetName ¶ added in v1.6.0
func (x *EventLeaderboardRewardTier) GetName() string
func (*EventLeaderboardRewardTier) GetRankMax ¶ added in v1.1.0
func (x *EventLeaderboardRewardTier) GetRankMax() int32
func (*EventLeaderboardRewardTier) GetRankMin ¶ added in v1.1.0
func (x *EventLeaderboardRewardTier) GetRankMin() int32
func (*EventLeaderboardRewardTier) GetTierChange ¶ added in v1.1.0
func (x *EventLeaderboardRewardTier) GetTierChange() int32
func (*EventLeaderboardRewardTier) ProtoMessage ¶ added in v1.1.0
func (*EventLeaderboardRewardTier) ProtoMessage()
func (*EventLeaderboardRewardTier) ProtoReflect ¶ added in v1.1.0
func (x *EventLeaderboardRewardTier) ProtoReflect() protoreflect.Message
func (*EventLeaderboardRewardTier) Reset ¶ added in v1.1.0
func (x *EventLeaderboardRewardTier) Reset()
func (*EventLeaderboardRewardTier) String ¶ added in v1.1.0
func (x *EventLeaderboardRewardTier) String() string
type EventLeaderboardRewardTiers ¶ added in v1.2.0
type EventLeaderboardRewardTiers struct {
// Possible reward tiers.
RewardTiers []*EventLeaderboardRewardTier `protobuf:"bytes,1,rep,name=reward_tiers,json=rewardTiers,proto3" json:"reward_tiers,omitempty"`
// contains filtered or unexported fields
}
An event leaderboard's tier-specific set of rewards.
func (*EventLeaderboardRewardTiers) Descriptor
deprecated
added in
v1.2.0
func (*EventLeaderboardRewardTiers) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboardRewardTiers.ProtoReflect.Descriptor instead.
func (*EventLeaderboardRewardTiers) GetRewardTiers ¶ added in v1.2.0
func (x *EventLeaderboardRewardTiers) GetRewardTiers() []*EventLeaderboardRewardTier
func (*EventLeaderboardRewardTiers) ProtoMessage ¶ added in v1.2.0
func (*EventLeaderboardRewardTiers) ProtoMessage()
func (*EventLeaderboardRewardTiers) ProtoReflect ¶ added in v1.2.0
func (x *EventLeaderboardRewardTiers) ProtoReflect() protoreflect.Message
func (*EventLeaderboardRewardTiers) Reset ¶ added in v1.2.0
func (x *EventLeaderboardRewardTiers) Reset()
func (*EventLeaderboardRewardTiers) String ¶ added in v1.2.0
func (x *EventLeaderboardRewardTiers) String() string
type EventLeaderboardRoll ¶ added in v1.4.0
type EventLeaderboardRoll struct {
// Event leaderboard ID to roll.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Metadata for the initial score write.
Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
// Claim reward while rolling into a cohort.
ClaimReward bool `protobuf:"varint,3,opt,name=claim_reward,json=claimReward,proto3" json:"claim_reward,omitempty"`
// contains filtered or unexported fields
}
Roll a new cohort for the specified event leaderboard.
func (*EventLeaderboardRoll) Descriptor
deprecated
added in
v1.4.0
func (*EventLeaderboardRoll) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboardRoll.ProtoReflect.Descriptor instead.
func (*EventLeaderboardRoll) GetClaimReward ¶ added in v1.29.0
func (x *EventLeaderboardRoll) GetClaimReward() bool
func (*EventLeaderboardRoll) GetId ¶ added in v1.4.0
func (x *EventLeaderboardRoll) GetId() string
func (*EventLeaderboardRoll) GetMetadata ¶ added in v1.26.0
func (x *EventLeaderboardRoll) GetMetadata() string
func (*EventLeaderboardRoll) ProtoMessage ¶ added in v1.4.0
func (*EventLeaderboardRoll) ProtoMessage()
func (*EventLeaderboardRoll) ProtoReflect ¶ added in v1.4.0
func (x *EventLeaderboardRoll) ProtoReflect() protoreflect.Message
func (*EventLeaderboardRoll) Reset ¶ added in v1.4.0
func (x *EventLeaderboardRoll) Reset()
func (*EventLeaderboardRoll) String ¶ added in v1.4.0
func (x *EventLeaderboardRoll) String() string
type EventLeaderboardScore ¶ added in v1.1.0
type EventLeaderboardScore struct {
// User ID.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Username.
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// Display name.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Avatar URL.
AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
// Time when the user joined the event leaderboard.
CreateTimeSec int64 `protobuf:"varint,5,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// Time when the user last submitted a score.
UpdateTimeSec int64 `protobuf:"varint,6,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Rank within the event leaderboard.
Rank int64 `protobuf:"varint,7,opt,name=rank,proto3" json:"rank,omitempty"`
// Score.
Score int64 `protobuf:"varint,8,opt,name=score,proto3" json:"score,omitempty"`
// Subscore.
Subscore int64 `protobuf:"varint,9,opt,name=subscore,proto3" json:"subscore,omitempty"`
// Number of score submissions.
NumScores int64 `protobuf:"varint,10,opt,name=num_scores,json=numScores,proto3" json:"num_scores,omitempty"`
// Metadata.
Metadata string `protobuf:"bytes,11,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
A single participant entry to an event leaderboard.
func (*EventLeaderboardScore) Descriptor
deprecated
added in
v1.1.0
func (*EventLeaderboardScore) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboardScore.ProtoReflect.Descriptor instead.
func (*EventLeaderboardScore) GetAvatarUrl ¶ added in v1.6.0
func (x *EventLeaderboardScore) GetAvatarUrl() string
func (*EventLeaderboardScore) GetCreateTimeSec ¶ added in v1.1.0
func (x *EventLeaderboardScore) GetCreateTimeSec() int64
func (*EventLeaderboardScore) GetDisplayName ¶ added in v1.6.0
func (x *EventLeaderboardScore) GetDisplayName() string
func (*EventLeaderboardScore) GetId ¶ added in v1.1.0
func (x *EventLeaderboardScore) GetId() string
func (*EventLeaderboardScore) GetMetadata ¶ added in v1.14.0
func (x *EventLeaderboardScore) GetMetadata() string
func (*EventLeaderboardScore) GetNumScores ¶ added in v1.1.0
func (x *EventLeaderboardScore) GetNumScores() int64
func (*EventLeaderboardScore) GetRank ¶ added in v1.1.0
func (x *EventLeaderboardScore) GetRank() int64
func (*EventLeaderboardScore) GetScore ¶ added in v1.1.0
func (x *EventLeaderboardScore) GetScore() int64
func (*EventLeaderboardScore) GetSubscore ¶ added in v1.1.0
func (x *EventLeaderboardScore) GetSubscore() int64
func (*EventLeaderboardScore) GetUpdateTimeSec ¶ added in v1.1.0
func (x *EventLeaderboardScore) GetUpdateTimeSec() int64
func (*EventLeaderboardScore) GetUsername ¶ added in v1.1.0
func (x *EventLeaderboardScore) GetUsername() string
func (*EventLeaderboardScore) ProtoMessage ¶ added in v1.1.0
func (*EventLeaderboardScore) ProtoMessage()
func (*EventLeaderboardScore) ProtoReflect ¶ added in v1.1.0
func (x *EventLeaderboardScore) ProtoReflect() protoreflect.Message
func (*EventLeaderboardScore) Reset ¶ added in v1.1.0
func (x *EventLeaderboardScore) Reset()
func (*EventLeaderboardScore) String ¶ added in v1.1.0
func (x *EventLeaderboardScore) String() string
type EventLeaderboardUpdate ¶ added in v1.1.0
type EventLeaderboardUpdate struct {
// Event leaderboard ID.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Score.
Score int64 `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"`
// Subscore.
Subscore int64 `protobuf:"varint,3,opt,name=subscore,proto3" json:"subscore,omitempty"`
// Metadata.
Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
// Update metadata only if score or subscore change.
ConditionalMetadataUpdate bool `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
Submit a score to an event leaderboard.
func (*EventLeaderboardUpdate) Descriptor
deprecated
added in
v1.1.0
func (*EventLeaderboardUpdate) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboardUpdate.ProtoReflect.Descriptor instead.
func (*EventLeaderboardUpdate) GetConditionalMetadataUpdate ¶ added in v1.24.0
func (x *EventLeaderboardUpdate) GetConditionalMetadataUpdate() bool
func (*EventLeaderboardUpdate) GetId ¶ added in v1.1.0
func (x *EventLeaderboardUpdate) GetId() string
func (*EventLeaderboardUpdate) GetMetadata ¶ added in v1.14.0
func (x *EventLeaderboardUpdate) GetMetadata() string
func (*EventLeaderboardUpdate) GetScore ¶ added in v1.1.0
func (x *EventLeaderboardUpdate) GetScore() int64
func (*EventLeaderboardUpdate) GetSubscore ¶ added in v1.1.0
func (x *EventLeaderboardUpdate) GetSubscore() int64
func (*EventLeaderboardUpdate) ProtoMessage ¶ added in v1.1.0
func (*EventLeaderboardUpdate) ProtoMessage()
func (*EventLeaderboardUpdate) ProtoReflect ¶ added in v1.1.0
func (x *EventLeaderboardUpdate) ProtoReflect() protoreflect.Message
func (*EventLeaderboardUpdate) Reset ¶ added in v1.1.0
func (x *EventLeaderboardUpdate) Reset()
func (*EventLeaderboardUpdate) String ¶ added in v1.1.0
func (x *EventLeaderboardUpdate) String() string
type EventLeaderboards ¶ added in v1.21.0
type EventLeaderboards struct {
// Zero or more event leaderboards.
EventLeaderboards []*EventLeaderboard `protobuf:"bytes,1,rep,name=event_leaderboards,json=eventLeaderboards,proto3" json:"event_leaderboards,omitempty"`
// contains filtered or unexported fields
}
Several event leaderboards the user has access to, resulting from a listing operation.
func (*EventLeaderboards) Descriptor
deprecated
added in
v1.21.0
func (*EventLeaderboards) Descriptor() ([]byte, []int)
Deprecated: Use EventLeaderboards.ProtoReflect.Descriptor instead.
func (*EventLeaderboards) GetEventLeaderboards ¶ added in v1.21.0
func (x *EventLeaderboards) GetEventLeaderboards() []*EventLeaderboard
func (*EventLeaderboards) ProtoMessage ¶ added in v1.21.0
func (*EventLeaderboards) ProtoMessage()
func (*EventLeaderboards) ProtoReflect ¶ added in v1.21.0
func (x *EventLeaderboards) ProtoReflect() protoreflect.Message
func (*EventLeaderboards) Reset ¶ added in v1.21.0
func (x *EventLeaderboards) Reset()
func (*EventLeaderboards) String ¶ added in v1.21.0
func (x *EventLeaderboards) String() string
type EventLeaderboardsConfig ¶ added in v1.1.0
type EventLeaderboardsConfig struct {
EventLeaderboards map[string]*EventLeaderboardsConfigLeaderboard `json:"event_leaderboards,omitempty"`
}
EventLeaderboardsConfig is the data definition for the EventLeaderboardsSystem type.
type EventLeaderboardsConfigChangeZone ¶ added in v1.3.0
type EventLeaderboardsConfigLeaderboard ¶ added in v1.1.0
type EventLeaderboardsConfigLeaderboard struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Category string `json:"category,omitempty"`
Ascending bool `json:"ascending,omitempty"`
Operator string `json:"operator,omitempty"`
ResetSchedule string `json:"reset_schedule,omitempty"`
CohortSize int `json:"cohort_size,omitempty"`
TierOverrides map[string]*EventLeaderboardsConfigLeaderboardTierOverride `json:"tier_overrides,omitempty"`
AdditionalProperties map[string]string `json:"additional_properties,omitempty"`
MaxNumScore int `json:"max_num_score,omitempty"`
RewardTiers map[string][]*EventLeaderboardsConfigLeaderboardRewardTier `json:"reward_tiers,omitempty"`
ChangeZones map[string]*EventLeaderboardsConfigChangeZone `json:"change_zones,omitempty"`
Tiers int `json:"tiers,omitempty"`
MaxIdleTierDrop int `json:"max_idle_tier_drop,omitempty"`
StartTimeSec int64 `json:"start_time_sec,omitempty"`
EndTimeSec int64 `json:"end_time_sec,omitempty"`
Duration int64 `json:"duration,omitempty"`
BackingId string `json:"-"`
CalculatedBackingId string `json:"-"`
}
type EventLeaderboardsConfigLeaderboardRewardTier ¶ added in v1.1.0
type EventLeaderboardsConfigLeaderboardRewardTier struct {
Name string `json:"name,omitempty"`
RankMax int `json:"rank_max,omitempty"`
RankMin int `json:"rank_min,omitempty"`
Reward *EconomyConfigReward `json:"reward,omitempty"`
TierChange int `json:"tier_change,omitempty"`
}
type EventLeaderboardsConfigLeaderboardTierOverride ¶ added in v1.26.0
type EventLeaderboardsConfigLeaderboardTierOverride struct {
CohortSize int `json:"cohort_size,omitempty"`
}
type EventLeaderboardsSystem ¶ added in v1.1.0
type EventLeaderboardsSystem interface {
System
// ListEventLeaderboard returns available event leaderboards for the user.
ListEventLeaderboard(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, withScores bool, categories []string) (eventLeaderboards []*EventLeaderboard, err error)
// GetEventLeaderboard returns a specified event leaderboard's cohort for the user.
GetEventLeaderboard(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, eventLeaderboardID string) (eventLeaderboard *EventLeaderboard, err error)
// RollEventLeaderboard places the user into a new cohort for the specified event leaderboard if possible.
RollEventLeaderboard(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, eventLeaderboardID string, tier *int, claimReward bool, matchmakerProperties map[string]interface{}, metadata map[string]interface{}) (eventLeaderboard *EventLeaderboard, err error)
// UpdateEventLeaderboard updates the user's score in the specified event leaderboard, and returns the user's updated cohort information.
UpdateEventLeaderboard(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, userID, username, eventLeaderboardID string, score, subscore int64, metadata map[string]interface{}, conditionalMetadataUpdate bool) (eventLeaderboard *EventLeaderboard, err error)
// ClaimEventLeaderboard claims the user's reward for the given event leaderboard.
ClaimEventLeaderboard(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, eventLeaderboardID string) (eventLeaderboard *EventLeaderboard, err error)
// SetOnEventLeaderboardsReward sets a custom reward function which will run after an event leaderboard's reward is rolled.
SetOnEventLeaderboardsReward(fn OnReward[*EventLeaderboardsConfigLeaderboard])
// SetOnEventLeaderboardCohortSelection sets a custom function that can replace the cohort or opponent selection feature of event leaderboards.
SetOnEventLeaderboardCohortSelection(fn OnEventLeaderboardCohortSelection)
// DebugFill fills the user's current cohort with dummy users for all remaining available slots.
DebugFill(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, eventLeaderboardID string, targetCount int) (eventLeaderboard *EventLeaderboard, err error)
// DebugRandomScores assigns random scores to the participants of the user's current cohort, except to the user themselves.
DebugRandomScores(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, eventLeaderboardID string, scoreMin, scoreMax, subscoreMin, subscoreMax int64, operator *int) (eventLeaderboard *EventLeaderboard, err error)
}
An EventLeaderboardsSystem is a gameplay system which represents cohort-segmented, tier-based event leaderboards.
type Hiro ¶
type Hiro interface {
// SetPersonalizer is deprecated in favor of AddPersonalizer function to compose a chain of configuration personalization.
SetPersonalizer(Personalizer)
AddPersonalizer(personalizer Personalizer)
AddPublisher(publisher Publisher)
SetAfterAuthenticate(fn AfterAuthenticateFn)
// SetCollectionResolver sets a function that may change the storage collection target for Hiro systems. Not typically used.
SetCollectionResolver(fn CollectionResolverFn)
// SetActivityCalculator sets a function expected to return an activity score for
// each of the requested users. Missing users are assumed to have a score of 0.
SetActivityCalculator(fn ActivityCalculator)
GetAchievementsSystem() AchievementsSystem
GetBaseSystem() BaseSystem
GetEconomySystem() EconomySystem
GetEnergySystem() EnergySystem
GetInventorySystem() InventorySystem
GetLeaderboardsSystem() LeaderboardsSystem
GetStatsSystem() StatsSystem
GetTeamsSystem() TeamsSystem
GetTutorialsSystem() TutorialsSystem
GetUnlockablesSystem() UnlockablesSystem
GetEventLeaderboardsSystem() EventLeaderboardsSystem
GetProgressionSystem() ProgressionSystem
GetIncentivesSystem() IncentivesSystem
GetAuctionsSystem() AuctionsSystem
GetStreaksSystem() StreaksSystem
GetChallengesSystem() ChallengesSystem
GetRewardMailboxSystem() RewardMailboxSystem
}
Hiro provides a type which combines all gameplay systems.
func Init ¶
func Init(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, initializer runtime.Initializer, binPath string, licenseKey string, configs ...SystemConfig) (Hiro, error)
Init initializes a Hiro type with the configurations provided.
type Incentive ¶ added in v1.5.0
type Incentive struct {
// The ID of the incentive.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Description.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Shareable incentive code.
Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
// The type of the incentive.
Type IncentiveType `protobuf:"varint,5,opt,name=type,proto3,enum=hiro.IncentiveType" json:"type,omitempty"`
// Create time in UTC seconds.
CreateTimeSec int64 `protobuf:"varint,6,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// Update time in UTC seconds.
UpdateTimeSec int64 `protobuf:"varint,7,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Expiry time in UTC seconds.
ExpiryTimeSec int64 `protobuf:"varint,8,opt,name=expiry_time_sec,json=expiryTimeSec,proto3" json:"expiry_time_sec,omitempty"`
// Available reward.
RecipientRewards *AvailableRewards `protobuf:"bytes,9,opt,name=recipient_rewards,json=recipientRewards,proto3" json:"recipient_rewards,omitempty"`
// Sender reward.
SenderRewards *AvailableRewards `protobuf:"bytes,10,opt,name=sender_rewards,json=senderRewards,proto3" json:"sender_rewards,omitempty"`
// Recipient user IDs for which the owner of the incentive has not yet claimed their sender reward.
UnclaimedRecipients []string `protobuf:"bytes,11,rep,name=unclaimed_recipients,json=unclaimedRecipients,proto3" json:"unclaimed_recipients,omitempty"`
// Sender rewards so far collected for this incentive.
Rewards []*Reward `protobuf:"bytes,12,rep,name=rewards,proto3" json:"rewards,omitempty"`
// Max claims.
MaxClaims int64 `protobuf:"varint,13,opt,name=max_claims,json=maxClaims,proto3" json:"max_claims,omitempty"`
// Current user IDs that have claimed, and their outcomes.
Claims map[string]*IncentiveClaim `` /* 154-byte string literal not displayed */
// Additional properties.
AdditionalProperties *structpb.Struct `protobuf:"bytes,15,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
// contains filtered or unexported fields
}
An incentive set up by a user.
func (*Incentive) Descriptor
deprecated
added in
v1.5.0
func (*Incentive) GetAdditionalProperties ¶ added in v1.22.0
func (*Incentive) GetClaims ¶ added in v1.5.0
func (x *Incentive) GetClaims() map[string]*IncentiveClaim
func (*Incentive) GetCreateTimeSec ¶ added in v1.5.0
func (*Incentive) GetDescription ¶ added in v1.5.0
func (*Incentive) GetExpiryTimeSec ¶ added in v1.5.0
func (*Incentive) GetMaxClaims ¶ added in v1.5.0
func (*Incentive) GetRecipientRewards ¶ added in v1.5.0
func (x *Incentive) GetRecipientRewards() *AvailableRewards
func (*Incentive) GetRewards ¶ added in v1.5.0
func (*Incentive) GetSenderRewards ¶ added in v1.5.0
func (x *Incentive) GetSenderRewards() *AvailableRewards
func (*Incentive) GetType ¶ added in v1.5.0
func (x *Incentive) GetType() IncentiveType
func (*Incentive) GetUnclaimedRecipients ¶ added in v1.5.0
func (*Incentive) GetUpdateTimeSec ¶ added in v1.5.0
func (*Incentive) ProtoMessage ¶ added in v1.5.0
func (*Incentive) ProtoMessage()
func (*Incentive) ProtoReflect ¶ added in v1.5.0
func (x *Incentive) ProtoReflect() protoreflect.Message
type IncentiveClaim ¶ added in v1.5.0
type IncentiveClaim struct {
// Reward granted.
Reward *Reward `protobuf:"bytes,1,opt,name=reward,proto3" json:"reward,omitempty"`
// Claim time in UTC seconds.
ClaimTimeSec int64 `protobuf:"varint,2,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// contains filtered or unexported fields
}
The result of claiming an incentive.
func (*IncentiveClaim) Descriptor
deprecated
added in
v1.5.0
func (*IncentiveClaim) Descriptor() ([]byte, []int)
Deprecated: Use IncentiveClaim.ProtoReflect.Descriptor instead.
func (*IncentiveClaim) GetClaimTimeSec ¶ added in v1.5.0
func (x *IncentiveClaim) GetClaimTimeSec() int64
func (*IncentiveClaim) GetReward ¶ added in v1.5.0
func (x *IncentiveClaim) GetReward() *Reward
func (*IncentiveClaim) ProtoMessage ¶ added in v1.5.0
func (*IncentiveClaim) ProtoMessage()
func (*IncentiveClaim) ProtoReflect ¶ added in v1.5.0
func (x *IncentiveClaim) ProtoReflect() protoreflect.Message
func (*IncentiveClaim) Reset ¶ added in v1.5.0
func (x *IncentiveClaim) Reset()
func (*IncentiveClaim) String ¶ added in v1.5.0
func (x *IncentiveClaim) String() string
type IncentiveInfo ¶ added in v1.5.0
type IncentiveInfo struct {
// The ID of the incentive.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Description.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Unique shareable incentive code.
Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
// The type of the incentive.
Type IncentiveType `protobuf:"varint,5,opt,name=type,proto3,enum=hiro.IncentiveType" json:"type,omitempty"`
// Incentive sender user ID.
Sender string `protobuf:"bytes,6,opt,name=sender,proto3" json:"sender,omitempty"`
// Available rewards that the caller can claim.
AvailableRewards *AvailableRewards `protobuf:"bytes,7,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// Indicator if the caller can claim rewards.
CanClaim bool `protobuf:"varint,8,opt,name=can_claim,json=canClaim,proto3" json:"can_claim,omitempty"`
// Reward that was granted.
Reward *Reward `protobuf:"bytes,9,opt,name=reward,proto3" json:"reward,omitempty"`
// Create time in UTC seconds.
CreateTimeSec int64 `protobuf:"varint,10,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// Update time in UTC seconds.
UpdateTimeSec int64 `protobuf:"varint,11,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Expiry time in UTC seconds.
ExpiryTimeSec int64 `protobuf:"varint,12,opt,name=expiry_time_sec,json=expiryTimeSec,proto3" json:"expiry_time_sec,omitempty"`
// Claim time in UTC seconds.
ClaimTimeSec int64 `protobuf:"varint,13,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// contains filtered or unexported fields
}
An incentive claimant's view of a single incentive.
func (*IncentiveInfo) Descriptor
deprecated
added in
v1.5.0
func (*IncentiveInfo) Descriptor() ([]byte, []int)
Deprecated: Use IncentiveInfo.ProtoReflect.Descriptor instead.
func (*IncentiveInfo) GetAvailableRewards ¶ added in v1.5.0
func (x *IncentiveInfo) GetAvailableRewards() *AvailableRewards
func (*IncentiveInfo) GetCanClaim ¶ added in v1.5.0
func (x *IncentiveInfo) GetCanClaim() bool
func (*IncentiveInfo) GetClaimTimeSec ¶ added in v1.5.0
func (x *IncentiveInfo) GetClaimTimeSec() int64
func (*IncentiveInfo) GetCode ¶ added in v1.5.0
func (x *IncentiveInfo) GetCode() string
func (*IncentiveInfo) GetCreateTimeSec ¶ added in v1.5.0
func (x *IncentiveInfo) GetCreateTimeSec() int64
func (*IncentiveInfo) GetDescription ¶ added in v1.5.0
func (x *IncentiveInfo) GetDescription() string
func (*IncentiveInfo) GetExpiryTimeSec ¶ added in v1.5.0
func (x *IncentiveInfo) GetExpiryTimeSec() int64
func (*IncentiveInfo) GetId ¶ added in v1.5.0
func (x *IncentiveInfo) GetId() string
func (*IncentiveInfo) GetName ¶ added in v1.5.0
func (x *IncentiveInfo) GetName() string
func (*IncentiveInfo) GetReward ¶ added in v1.5.0
func (x *IncentiveInfo) GetReward() *Reward
func (*IncentiveInfo) GetSender ¶ added in v1.5.0
func (x *IncentiveInfo) GetSender() string
func (*IncentiveInfo) GetType ¶ added in v1.5.0
func (x *IncentiveInfo) GetType() IncentiveType
func (*IncentiveInfo) GetUpdateTimeSec ¶ added in v1.5.0
func (x *IncentiveInfo) GetUpdateTimeSec() int64
func (*IncentiveInfo) ProtoMessage ¶ added in v1.5.0
func (*IncentiveInfo) ProtoMessage()
func (*IncentiveInfo) ProtoReflect ¶ added in v1.5.0
func (x *IncentiveInfo) ProtoReflect() protoreflect.Message
func (*IncentiveInfo) Reset ¶ added in v1.5.0
func (x *IncentiveInfo) Reset()
func (*IncentiveInfo) String ¶ added in v1.5.0
func (x *IncentiveInfo) String() string
type IncentiveList ¶ added in v1.5.0
type IncentiveList struct {
// Incentives set up by a single user.
Incentives []*Incentive `protobuf:"bytes,1,rep,name=incentives,proto3" json:"incentives,omitempty"`
// contains filtered or unexported fields
}
A list of incentives set up by a user.
func (*IncentiveList) Descriptor
deprecated
added in
v1.5.0
func (*IncentiveList) Descriptor() ([]byte, []int)
Deprecated: Use IncentiveList.ProtoReflect.Descriptor instead.
func (*IncentiveList) GetIncentives ¶ added in v1.5.0
func (x *IncentiveList) GetIncentives() []*Incentive
func (*IncentiveList) ProtoMessage ¶ added in v1.5.0
func (*IncentiveList) ProtoMessage()
func (*IncentiveList) ProtoReflect ¶ added in v1.5.0
func (x *IncentiveList) ProtoReflect() protoreflect.Message
func (*IncentiveList) Reset ¶ added in v1.5.0
func (x *IncentiveList) Reset()
func (*IncentiveList) String ¶ added in v1.5.0
func (x *IncentiveList) String() string
type IncentiveRecipientClaimRequest ¶ added in v1.5.0
type IncentiveRecipientClaimRequest struct {
// The unique incentive code.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// contains filtered or unexported fields
}
Request by a potential incentive claimant to claim an incentive.
func (*IncentiveRecipientClaimRequest) Descriptor
deprecated
added in
v1.5.0
func (*IncentiveRecipientClaimRequest) Descriptor() ([]byte, []int)
Deprecated: Use IncentiveRecipientClaimRequest.ProtoReflect.Descriptor instead.
func (*IncentiveRecipientClaimRequest) GetCode ¶ added in v1.5.0
func (x *IncentiveRecipientClaimRequest) GetCode() string
func (*IncentiveRecipientClaimRequest) ProtoMessage ¶ added in v1.5.0
func (*IncentiveRecipientClaimRequest) ProtoMessage()
func (*IncentiveRecipientClaimRequest) ProtoReflect ¶ added in v1.5.0
func (x *IncentiveRecipientClaimRequest) ProtoReflect() protoreflect.Message
func (*IncentiveRecipientClaimRequest) Reset ¶ added in v1.5.0
func (x *IncentiveRecipientClaimRequest) Reset()
func (*IncentiveRecipientClaimRequest) String ¶ added in v1.5.0
func (x *IncentiveRecipientClaimRequest) String() string
type IncentiveRecipientGetRequest ¶ added in v1.5.0
type IncentiveRecipientGetRequest struct {
// The unique incentive code.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// contains filtered or unexported fields
}
Request by a potential incentive claimant to view incentive information.
func (*IncentiveRecipientGetRequest) Descriptor
deprecated
added in
v1.5.0
func (*IncentiveRecipientGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use IncentiveRecipientGetRequest.ProtoReflect.Descriptor instead.
func (*IncentiveRecipientGetRequest) GetCode ¶ added in v1.5.0
func (x *IncentiveRecipientGetRequest) GetCode() string
func (*IncentiveRecipientGetRequest) ProtoMessage ¶ added in v1.5.0
func (*IncentiveRecipientGetRequest) ProtoMessage()
func (*IncentiveRecipientGetRequest) ProtoReflect ¶ added in v1.5.0
func (x *IncentiveRecipientGetRequest) ProtoReflect() protoreflect.Message
func (*IncentiveRecipientGetRequest) Reset ¶ added in v1.5.0
func (x *IncentiveRecipientGetRequest) Reset()
func (*IncentiveRecipientGetRequest) String ¶ added in v1.5.0
func (x *IncentiveRecipientGetRequest) String() string
type IncentiveSenderClaimRequest ¶ added in v1.5.0
type IncentiveSenderClaimRequest struct {
// The unique incentive code.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// The recipient ID(s) to claim for, or empty for all.
RecipientIds []string `protobuf:"bytes,2,rep,name=recipient_ids,json=recipientIds,proto3" json:"recipient_ids,omitempty"`
// contains filtered or unexported fields
}
Request by a user to claim rewards from an incentive they had set up.
func (*IncentiveSenderClaimRequest) Descriptor
deprecated
added in
v1.5.0
func (*IncentiveSenderClaimRequest) Descriptor() ([]byte, []int)
Deprecated: Use IncentiveSenderClaimRequest.ProtoReflect.Descriptor instead.
func (*IncentiveSenderClaimRequest) GetCode ¶ added in v1.5.0
func (x *IncentiveSenderClaimRequest) GetCode() string
func (*IncentiveSenderClaimRequest) GetRecipientIds ¶ added in v1.5.0
func (x *IncentiveSenderClaimRequest) GetRecipientIds() []string
func (*IncentiveSenderClaimRequest) ProtoMessage ¶ added in v1.5.0
func (*IncentiveSenderClaimRequest) ProtoMessage()
func (*IncentiveSenderClaimRequest) ProtoReflect ¶ added in v1.5.0
func (x *IncentiveSenderClaimRequest) ProtoReflect() protoreflect.Message
func (*IncentiveSenderClaimRequest) Reset ¶ added in v1.5.0
func (x *IncentiveSenderClaimRequest) Reset()
func (*IncentiveSenderClaimRequest) String ¶ added in v1.5.0
func (x *IncentiveSenderClaimRequest) String() string
type IncentiveSenderCreateRequest ¶ added in v1.5.0
type IncentiveSenderCreateRequest struct {
// The incentive configuration ID.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Request by a user to set up a new incentive.
func (*IncentiveSenderCreateRequest) Descriptor
deprecated
added in
v1.5.0
func (*IncentiveSenderCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use IncentiveSenderCreateRequest.ProtoReflect.Descriptor instead.
func (*IncentiveSenderCreateRequest) GetId ¶ added in v1.5.0
func (x *IncentiveSenderCreateRequest) GetId() string
func (*IncentiveSenderCreateRequest) ProtoMessage ¶ added in v1.5.0
func (*IncentiveSenderCreateRequest) ProtoMessage()
func (*IncentiveSenderCreateRequest) ProtoReflect ¶ added in v1.5.0
func (x *IncentiveSenderCreateRequest) ProtoReflect() protoreflect.Message
func (*IncentiveSenderCreateRequest) Reset ¶ added in v1.5.0
func (x *IncentiveSenderCreateRequest) Reset()
func (*IncentiveSenderCreateRequest) String ¶ added in v1.5.0
func (x *IncentiveSenderCreateRequest) String() string
type IncentiveSenderDeleteRequest ¶ added in v1.5.0
type IncentiveSenderDeleteRequest struct {
// The unique incentive code.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// contains filtered or unexported fields
}
Request by a user to delete an incentive they had set up.
func (*IncentiveSenderDeleteRequest) Descriptor
deprecated
added in
v1.5.0
func (*IncentiveSenderDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use IncentiveSenderDeleteRequest.ProtoReflect.Descriptor instead.
func (*IncentiveSenderDeleteRequest) GetCode ¶ added in v1.5.0
func (x *IncentiveSenderDeleteRequest) GetCode() string
func (*IncentiveSenderDeleteRequest) ProtoMessage ¶ added in v1.5.0
func (*IncentiveSenderDeleteRequest) ProtoMessage()
func (*IncentiveSenderDeleteRequest) ProtoReflect ¶ added in v1.5.0
func (x *IncentiveSenderDeleteRequest) ProtoReflect() protoreflect.Message
func (*IncentiveSenderDeleteRequest) Reset ¶ added in v1.5.0
func (x *IncentiveSenderDeleteRequest) Reset()
func (*IncentiveSenderDeleteRequest) String ¶ added in v1.5.0
func (x *IncentiveSenderDeleteRequest) String() string
type IncentiveType ¶ added in v1.5.0
type IncentiveType int32
Types of incentives.
const ( // Unspecified. Defaults to INVITE. IncentiveType_INCENTIVE_TYPE_UNSPECIFIED IncentiveType = 0 // An invite with an associated incentive reward. IncentiveType_INCENTIVE_TYPE_INVITE IncentiveType = 1 )
func (IncentiveType) Descriptor ¶ added in v1.5.0
func (IncentiveType) Descriptor() protoreflect.EnumDescriptor
func (IncentiveType) Enum ¶ added in v1.5.0
func (x IncentiveType) Enum() *IncentiveType
func (IncentiveType) EnumDescriptor
deprecated
added in
v1.5.0
func (IncentiveType) EnumDescriptor() ([]byte, []int)
Deprecated: Use IncentiveType.Descriptor instead.
func (IncentiveType) Number ¶ added in v1.5.0
func (x IncentiveType) Number() protoreflect.EnumNumber
func (IncentiveType) String ¶ added in v1.5.0
func (x IncentiveType) String() string
func (IncentiveType) Type ¶ added in v1.5.0
func (IncentiveType) Type() protoreflect.EnumType
type IncentivesConfig ¶ added in v1.5.0
type IncentivesConfig struct {
Incentives map[string]*IncentivesConfigIncentive `json:"incentives,omitempty"`
}
type IncentivesConfigIncentive ¶ added in v1.5.0
type IncentivesConfigIncentive struct {
Type IncentiveType `json:"type,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
MaxClaims int `json:"max_claims,omitempty"`
MaxGlobalClaims int `json:"max_global_claims,omitempty"`
MaxRecipientAgeSec int64 `json:"max_recipient_age_sec,omitempty"`
RecipientReward *EconomyConfigReward `json:"recipient_reward,omitempty"`
SenderReward *EconomyConfigReward `json:"sender_reward,omitempty"`
MaxConcurrent int `json:"max_concurrent,omitempty"`
ExpiryDurationSec int64 `json:"expiry_duration_sec,omitempty"`
AdditionalProperties map[string]interface{} `json:"additional_properties,omitempty"`
}
type IncentivesSystem ¶ added in v1.5.0
type IncentivesSystem interface {
System
SenderList(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string) (incentives []*Incentive, err error)
SenderCreate(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, incentiveID string) (incentives []*Incentive, err error)
SenderDelete(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, code string) (incentives []*Incentive, err error)
SenderClaim(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, code string, claimantIDs []string) (incentives []*Incentive, err error)
RecipientGet(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, code string) (incentive *IncentiveInfo, err error)
RecipientClaim(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, code string) (incentive *IncentiveInfo, err error)
// SetOnSenderReward sets a custom reward function which will run after an incentive sender's reward is rolled.
SetOnSenderReward(fn OnReward[*IncentivesConfigIncentive])
// SetOnRecipientReward sets a custom reward function which will run after an incentive recipient's reward is rolled.
SetOnRecipientReward(fn OnReward[*IncentivesConfigIncentive])
}
The IncentivesSystem provides a gameplay system which can create and claim incentives and their associated rewards.
type Inventory ¶
type Inventory struct {
// The items in the player's inventory.
Items map[string]*InventoryItem `` /* 151-byte string literal not displayed */
// contains filtered or unexported fields
}
The inventory in the economy or owned by user.
func (*Inventory) Descriptor
deprecated
func (*Inventory) GetItems ¶
func (x *Inventory) GetItems() map[string]*InventoryItem
func (*Inventory) ProtoMessage ¶
func (*Inventory) ProtoMessage()
func (*Inventory) ProtoReflect ¶
func (x *Inventory) ProtoReflect() protoreflect.Message
type InventoryConfig ¶
type InventoryConfig struct {
Items map[string]*InventoryConfigItem `json:"items,omitempty"`
Limits *InventoryConfigLimits `json:"limits,omitempty"`
ItemSets map[string]map[string]bool `json:"-"` // Auto-computed when the config is read or personalized.
ConfigSource ConfigSource[*InventoryConfigItem] `json:"-"` // Not included in serialization, set dynamically.
}
type InventoryConfigItem ¶
type InventoryConfigItem struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Category string `json:"category,omitempty"`
ItemSets []string `json:"item_sets,omitempty"`
MaxCount int64 `json:"max_count,omitempty"`
Stackable bool `json:"stackable,omitempty"`
Consumable bool `json:"consumable,omitempty"`
ConsumeReward *EconomyConfigReward `json:"consume_reward,omitempty"`
StringProperties map[string]string `json:"string_properties,omitempty"`
NumericProperties map[string]float64 `json:"numeric_properties,omitempty"`
Disabled bool `json:"disabled,omitempty"`
KeepZero bool `json:"keep_zero,omitempty"`
}
type InventoryConfigLimits ¶ added in v1.17.0
type InventoryConsumeRequest ¶
type InventoryConsumeRequest struct {
// Item ID amounts to consume, if any.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// Whether or not to allow overconsumption.
Overconsume bool `protobuf:"varint,2,opt,name=overconsume,proto3" json:"overconsume,omitempty"`
// Instance ID amounts to consume, if any.
Instances map[string]int64 `` /* 160-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to consume some amount of items.
func (*InventoryConsumeRequest) Descriptor
deprecated
func (*InventoryConsumeRequest) Descriptor() ([]byte, []int)
Deprecated: Use InventoryConsumeRequest.ProtoReflect.Descriptor instead.
func (*InventoryConsumeRequest) GetInstances ¶ added in v1.8.0
func (x *InventoryConsumeRequest) GetInstances() map[string]int64
func (*InventoryConsumeRequest) GetItems ¶
func (x *InventoryConsumeRequest) GetItems() map[string]int64
func (*InventoryConsumeRequest) GetOverconsume ¶
func (x *InventoryConsumeRequest) GetOverconsume() bool
func (*InventoryConsumeRequest) ProtoMessage ¶
func (*InventoryConsumeRequest) ProtoMessage()
func (*InventoryConsumeRequest) ProtoReflect ¶
func (x *InventoryConsumeRequest) ProtoReflect() protoreflect.Message
func (*InventoryConsumeRequest) Reset ¶
func (x *InventoryConsumeRequest) Reset()
func (*InventoryConsumeRequest) String ¶
func (x *InventoryConsumeRequest) String() string
type InventoryConsumeRewards ¶
type InventoryConsumeRewards struct {
// Updated inventory data, if changed.
Inventory *Inventory `protobuf:"bytes,1,opt,name=inventory,proto3" json:"inventory,omitempty"`
// Consume rewards by item ID, if any.
Rewards map[string]*RewardList `` /* 155-byte string literal not displayed */
// Consume rewards by instance ID, if any.
InstanceRewards map[string]*RewardList `` /* 194-byte string literal not displayed */
// contains filtered or unexported fields
}
Updated inventory and rewards granted from consumption.
func (*InventoryConsumeRewards) Descriptor
deprecated
func (*InventoryConsumeRewards) Descriptor() ([]byte, []int)
Deprecated: Use InventoryConsumeRewards.ProtoReflect.Descriptor instead.
func (*InventoryConsumeRewards) GetInstanceRewards ¶ added in v1.8.0
func (x *InventoryConsumeRewards) GetInstanceRewards() map[string]*RewardList
func (*InventoryConsumeRewards) GetInventory ¶
func (x *InventoryConsumeRewards) GetInventory() *Inventory
func (*InventoryConsumeRewards) GetRewards ¶
func (x *InventoryConsumeRewards) GetRewards() map[string]*RewardList
func (*InventoryConsumeRewards) ProtoMessage ¶
func (*InventoryConsumeRewards) ProtoMessage()
func (*InventoryConsumeRewards) ProtoReflect ¶
func (x *InventoryConsumeRewards) ProtoReflect() protoreflect.Message
func (*InventoryConsumeRewards) Reset ¶
func (x *InventoryConsumeRewards) Reset()
func (*InventoryConsumeRewards) String ¶
func (x *InventoryConsumeRewards) String() string
type InventoryDeleteItemsRequest ¶ added in v1.27.0
type InventoryDeleteItemsRequest struct {
// list of instance ids
InstanceIds []string `protobuf:"bytes,1,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"`
// contains filtered or unexported fields
}
Delete items from inventory
func (*InventoryDeleteItemsRequest) Descriptor
deprecated
added in
v1.27.0
func (*InventoryDeleteItemsRequest) Descriptor() ([]byte, []int)
Deprecated: Use InventoryDeleteItemsRequest.ProtoReflect.Descriptor instead.
func (*InventoryDeleteItemsRequest) GetInstanceIds ¶ added in v1.27.0
func (x *InventoryDeleteItemsRequest) GetInstanceIds() []string
func (*InventoryDeleteItemsRequest) ProtoMessage ¶ added in v1.27.0
func (*InventoryDeleteItemsRequest) ProtoMessage()
func (*InventoryDeleteItemsRequest) ProtoReflect ¶ added in v1.27.0
func (x *InventoryDeleteItemsRequest) ProtoReflect() protoreflect.Message
func (*InventoryDeleteItemsRequest) Reset ¶ added in v1.27.0
func (x *InventoryDeleteItemsRequest) Reset()
func (*InventoryDeleteItemsRequest) String ¶ added in v1.27.0
func (x *InventoryDeleteItemsRequest) String() string
type InventoryGrantRequest ¶
type InventoryGrantRequest struct {
// The items to grant.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// contains filtered or unexported fields
}
Represents a request to grant items to the user.
func (*InventoryGrantRequest) Descriptor
deprecated
func (*InventoryGrantRequest) Descriptor() ([]byte, []int)
Deprecated: Use InventoryGrantRequest.ProtoReflect.Descriptor instead.
func (*InventoryGrantRequest) GetItems ¶
func (x *InventoryGrantRequest) GetItems() map[string]int64
func (*InventoryGrantRequest) ProtoMessage ¶
func (*InventoryGrantRequest) ProtoMessage()
func (*InventoryGrantRequest) ProtoReflect ¶
func (x *InventoryGrantRequest) ProtoReflect() protoreflect.Message
func (*InventoryGrantRequest) Reset ¶
func (x *InventoryGrantRequest) Reset()
func (*InventoryGrantRequest) String ¶
func (x *InventoryGrantRequest) String() string
type InventoryItem ¶
type InventoryItem struct {
// The ID of the item.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The name of the item. May be an i18n code.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// A description of the item. May be an i18n code.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// The category to group the item together with others.
Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
// The sets the item is grouped into.
ItemSets []string `protobuf:"bytes,5,rep,name=item_sets,json=itemSets,proto3" json:"item_sets,omitempty"`
// The current count of the item.
Count int64 `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"`
// The maximum count which can be owned for this item.
MaxCount int64 `protobuf:"varint,7,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"`
// Whether or not the item is stackable.
Stackable bool `protobuf:"varint,8,opt,name=stackable,proto3" json:"stackable,omitempty"`
// Whether or not the item is consumable.
Consumable bool `protobuf:"varint,9,opt,name=consumable,proto3" json:"consumable,omitempty"`
// The configuration for the reward to grant for consumption.
ConsumeAvailableRewards *AvailableRewards `` /* 133-byte string literal not displayed */
// The properties with string values.
StringProperties map[string]string `` /* 198-byte string literal not displayed */
// The properties with numeric values.
NumericProperties map[string]float64 `` /* 203-byte string literal not displayed */
// A UNIX timestamp when the user acquired this item.
OwnedTimeSec int64 `protobuf:"varint,13,opt,name=owned_time_sec,json=ownedTimeSec,proto3" json:"owned_time_sec,omitempty"`
// A UNIX timestamp when the item was updated.
UpdateTimeSec int64 `protobuf:"varint,14,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// The instance ID of the item, if any.
InstanceId string `protobuf:"bytes,15,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// Indicates if the item stays in the inventory even if there are non left.
KeepZero bool `protobuf:"varint,16,opt,name=keep_zero,json=keepZero,proto3" json:"keep_zero,omitempty"`
// contains filtered or unexported fields
}
A item owned by the current user.
func (*InventoryItem) Descriptor
deprecated
func (*InventoryItem) Descriptor() ([]byte, []int)
Deprecated: Use InventoryItem.ProtoReflect.Descriptor instead.
func (*InventoryItem) GetCategory ¶
func (x *InventoryItem) GetCategory() string
func (*InventoryItem) GetConsumable ¶
func (x *InventoryItem) GetConsumable() bool
func (*InventoryItem) GetConsumeAvailableRewards ¶
func (x *InventoryItem) GetConsumeAvailableRewards() *AvailableRewards
func (*InventoryItem) GetCount ¶
func (x *InventoryItem) GetCount() int64
func (*InventoryItem) GetDescription ¶
func (x *InventoryItem) GetDescription() string
func (*InventoryItem) GetId ¶
func (x *InventoryItem) GetId() string
func (*InventoryItem) GetInstanceId ¶ added in v1.8.0
func (x *InventoryItem) GetInstanceId() string
func (*InventoryItem) GetItemSets ¶
func (x *InventoryItem) GetItemSets() []string
func (*InventoryItem) GetKeepZero ¶ added in v1.29.0
func (x *InventoryItem) GetKeepZero() bool
func (*InventoryItem) GetMaxCount ¶
func (x *InventoryItem) GetMaxCount() int64
func (*InventoryItem) GetName ¶
func (x *InventoryItem) GetName() string
func (*InventoryItem) GetNumericProperties ¶
func (x *InventoryItem) GetNumericProperties() map[string]float64
func (*InventoryItem) GetOwnedTimeSec ¶
func (x *InventoryItem) GetOwnedTimeSec() int64
func (*InventoryItem) GetStackable ¶
func (x *InventoryItem) GetStackable() bool
func (*InventoryItem) GetStringProperties ¶
func (x *InventoryItem) GetStringProperties() map[string]string
func (*InventoryItem) GetUpdateTimeSec ¶
func (x *InventoryItem) GetUpdateTimeSec() int64
func (*InventoryItem) ProtoMessage ¶
func (*InventoryItem) ProtoMessage()
func (*InventoryItem) ProtoReflect ¶
func (x *InventoryItem) ProtoReflect() protoreflect.Message
func (*InventoryItem) Reset ¶
func (x *InventoryItem) Reset()
func (*InventoryItem) String ¶
func (x *InventoryItem) String() string
type InventoryList ¶
type InventoryList struct {
// The inventory items from definitions and the user.
Items map[string]*InventoryItem `` /* 151-byte string literal not displayed */
// contains filtered or unexported fields
}
Response for retrieving Inventory system data definitions.
func (*InventoryList) Descriptor
deprecated
func (*InventoryList) Descriptor() ([]byte, []int)
Deprecated: Use InventoryList.ProtoReflect.Descriptor instead.
func (*InventoryList) GetItems ¶
func (x *InventoryList) GetItems() map[string]*InventoryItem
func (*InventoryList) ProtoMessage ¶
func (*InventoryList) ProtoMessage()
func (*InventoryList) ProtoReflect ¶
func (x *InventoryList) ProtoReflect() protoreflect.Message
func (*InventoryList) Reset ¶
func (x *InventoryList) Reset()
func (*InventoryList) String ¶
func (x *InventoryList) String() string
type InventoryListRequest ¶
type InventoryListRequest struct {
// The category for the items to filter for, or empty for all.
ItemCategory string `protobuf:"bytes,1,opt,name=item_category,json=itemCategory,proto3" json:"item_category,omitempty"`
// contains filtered or unexported fields
}
Request all inventory items in the economy.
func (*InventoryListRequest) Descriptor
deprecated
func (*InventoryListRequest) Descriptor() ([]byte, []int)
Deprecated: Use InventoryListRequest.ProtoReflect.Descriptor instead.
func (*InventoryListRequest) GetItemCategory ¶
func (x *InventoryListRequest) GetItemCategory() string
func (*InventoryListRequest) ProtoMessage ¶
func (*InventoryListRequest) ProtoMessage()
func (*InventoryListRequest) ProtoReflect ¶
func (x *InventoryListRequest) ProtoReflect() protoreflect.Message
func (*InventoryListRequest) Reset ¶
func (x *InventoryListRequest) Reset()
func (*InventoryListRequest) String ¶
func (x *InventoryListRequest) String() string
type InventorySystem ¶
type InventorySystem interface {
System
// List will return the items defined as well as the computed item sets for the user by ID.
List(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, category string) (items map[string]*InventoryConfigItem, itemSets map[string][]string, err error)
// ListInventoryItems will return the items which are part of a user's inventory by ID.
ListInventoryItems(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, category string) (inventory *Inventory, err error)
// ConsumeItems will deduct the item(s) from the user's inventory and run the consume reward for each one, if defined.
ConsumeItems(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, itemIDs, instanceIDs map[string]int64, overConsume bool) (updatedInventory *Inventory, rewards map[string][]*Reward, instanceRewards map[string][]*Reward, err error)
// GrantItems will add the item(s) to a user's inventory by ID.
GrantItems(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, itemIDs map[string]int64, ignoreLimits bool) (updatedInventory *Inventory, newItems map[string]*InventoryItem, updatedItems map[string]*InventoryItem, notGrantedItemIDs map[string]int64, err error)
// UpdateItems will update the properties which are stored on each item by instance ID for a user.
UpdateItems(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, instanceIDs map[string]*InventoryUpdateItemProperties) (updatedInventory *Inventory, err error)
// DeleteItems will remove all specified instances for the user's inventory.
DeleteItems(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, instanceIDs []string) (updatedInventory *Inventory, err error)
// SetOnConsumeReward sets a custom reward function which will run after an inventory items' consume reward is rolled.
SetOnConsumeReward(fn OnReward[*InventoryConfigItem])
// SetConfigSource sets a custom additional config lookup function.
SetConfigSource(fn ConfigSource[*InventoryConfigItem])
}
The InventorySystem provides a gameplay system which can manage a player's inventory.
A player can have items added via economy rewards, or directly.
type InventoryUpdateAck ¶
type InventoryUpdateAck struct {
// Updated inventory data, if changed.
Inventory *Inventory `protobuf:"bytes,1,opt,name=inventory,proto3" json:"inventory,omitempty"`
// contains filtered or unexported fields
}
Response from granting or purchasing items. This contains updated inventory data, if changed.
func (*InventoryUpdateAck) Descriptor
deprecated
func (*InventoryUpdateAck) Descriptor() ([]byte, []int)
Deprecated: Use InventoryUpdateAck.ProtoReflect.Descriptor instead.
func (*InventoryUpdateAck) GetInventory ¶
func (x *InventoryUpdateAck) GetInventory() *Inventory
func (*InventoryUpdateAck) ProtoMessage ¶
func (*InventoryUpdateAck) ProtoMessage()
func (*InventoryUpdateAck) ProtoReflect ¶
func (x *InventoryUpdateAck) ProtoReflect() protoreflect.Message
func (*InventoryUpdateAck) Reset ¶
func (x *InventoryUpdateAck) Reset()
func (*InventoryUpdateAck) String ¶
func (x *InventoryUpdateAck) String() string
type InventoryUpdateItemProperties ¶
type InventoryUpdateItemProperties struct {
// The properties with string values.
StringProperties map[string]string `` /* 197-byte string literal not displayed */
// The properties with numeric values.
NumericProperties map[string]float64 `` /* 202-byte string literal not displayed */
// contains filtered or unexported fields
}
The typed properties to update in an instanced inventory item.
func (*InventoryUpdateItemProperties) Descriptor
deprecated
func (*InventoryUpdateItemProperties) Descriptor() ([]byte, []int)
Deprecated: Use InventoryUpdateItemProperties.ProtoReflect.Descriptor instead.
func (*InventoryUpdateItemProperties) GetNumericProperties ¶
func (x *InventoryUpdateItemProperties) GetNumericProperties() map[string]float64
func (*InventoryUpdateItemProperties) GetStringProperties ¶
func (x *InventoryUpdateItemProperties) GetStringProperties() map[string]string
func (*InventoryUpdateItemProperties) ProtoMessage ¶
func (*InventoryUpdateItemProperties) ProtoMessage()
func (*InventoryUpdateItemProperties) ProtoReflect ¶
func (x *InventoryUpdateItemProperties) ProtoReflect() protoreflect.Message
func (*InventoryUpdateItemProperties) Reset ¶
func (x *InventoryUpdateItemProperties) Reset()
func (*InventoryUpdateItemProperties) String ¶
func (x *InventoryUpdateItemProperties) String() string
type InventoryUpdateItemsRequest ¶
type InventoryUpdateItemsRequest struct {
// The item updates to action, keyed by item instance ID.
ItemUpdates map[string]*InventoryUpdateItemProperties `` /* 182-byte string literal not displayed */
// contains filtered or unexported fields
}
Represents a request to update properties of instanced items.
func (*InventoryUpdateItemsRequest) Descriptor
deprecated
func (*InventoryUpdateItemsRequest) Descriptor() ([]byte, []int)
Deprecated: Use InventoryUpdateItemsRequest.ProtoReflect.Descriptor instead.
func (*InventoryUpdateItemsRequest) GetItemUpdates ¶
func (x *InventoryUpdateItemsRequest) GetItemUpdates() map[string]*InventoryUpdateItemProperties
func (*InventoryUpdateItemsRequest) ProtoMessage ¶
func (*InventoryUpdateItemsRequest) ProtoMessage()
func (*InventoryUpdateItemsRequest) ProtoReflect ¶
func (x *InventoryUpdateItemsRequest) ProtoReflect() protoreflect.Message
func (*InventoryUpdateItemsRequest) Reset ¶
func (x *InventoryUpdateItemsRequest) Reset()
func (*InventoryUpdateItemsRequest) String ¶
func (x *InventoryUpdateItemsRequest) String() string
type LeaderboardConfig ¶
type LeaderboardConfig struct {
// The leaderboard id.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The leaderboard sort order.
SortOrder string `protobuf:"bytes,2,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"`
// The leaderboard operator.
Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
// The leaderboard reset schedule.
ResetSchedule string `protobuf:"bytes,4,opt,name=reset_schedule,json=resetSchedule,proto3" json:"reset_schedule,omitempty"`
// Whether the leaderboard is authoritative or not.
Authoritative bool `protobuf:"varint,5,opt,name=authoritative,proto3" json:"authoritative,omitempty"`
// List of regional leaderboards of the leaderboard, if any.
Regions []string `protobuf:"bytes,6,rep,name=regions,proto3" json:"regions,omitempty"`
// contains filtered or unexported fields
}
A leaderboard configuration.
func (*LeaderboardConfig) Descriptor
deprecated
func (*LeaderboardConfig) Descriptor() ([]byte, []int)
Deprecated: Use LeaderboardConfig.ProtoReflect.Descriptor instead.
func (*LeaderboardConfig) GetAuthoritative ¶
func (x *LeaderboardConfig) GetAuthoritative() bool
func (*LeaderboardConfig) GetId ¶
func (x *LeaderboardConfig) GetId() string
func (*LeaderboardConfig) GetOperator ¶
func (x *LeaderboardConfig) GetOperator() string
func (*LeaderboardConfig) GetRegions ¶
func (x *LeaderboardConfig) GetRegions() []string
func (*LeaderboardConfig) GetResetSchedule ¶
func (x *LeaderboardConfig) GetResetSchedule() string
func (*LeaderboardConfig) GetSortOrder ¶
func (x *LeaderboardConfig) GetSortOrder() string
func (*LeaderboardConfig) ProtoMessage ¶
func (*LeaderboardConfig) ProtoMessage()
func (*LeaderboardConfig) ProtoReflect ¶
func (x *LeaderboardConfig) ProtoReflect() protoreflect.Message
func (*LeaderboardConfig) Reset ¶
func (x *LeaderboardConfig) Reset()
func (*LeaderboardConfig) String ¶
func (x *LeaderboardConfig) String() string
type LeaderboardConfigList ¶
type LeaderboardConfigList struct {
// The list of leaderboard configurations.
LeaderboardConfigs []*LeaderboardConfig `protobuf:"bytes,1,rep,name=leaderboard_configs,json=leaderboardConfigs,proto3" json:"leaderboard_configs,omitempty"`
// contains filtered or unexported fields
}
A list of leaderboard configurations.
func (*LeaderboardConfigList) Descriptor
deprecated
func (*LeaderboardConfigList) Descriptor() ([]byte, []int)
Deprecated: Use LeaderboardConfigList.ProtoReflect.Descriptor instead.
func (*LeaderboardConfigList) GetLeaderboardConfigs ¶
func (x *LeaderboardConfigList) GetLeaderboardConfigs() []*LeaderboardConfig
func (*LeaderboardConfigList) ProtoMessage ¶
func (*LeaderboardConfigList) ProtoMessage()
func (*LeaderboardConfigList) ProtoReflect ¶
func (x *LeaderboardConfigList) ProtoReflect() protoreflect.Message
func (*LeaderboardConfigList) Reset ¶
func (x *LeaderboardConfigList) Reset()
func (*LeaderboardConfigList) String ¶
func (x *LeaderboardConfigList) String() string
type LeaderboardsConfig ¶
type LeaderboardsConfig struct {
Leaderboards []*LeaderboardsConfigLeaderboard `json:"leaderboards,omitempty"`
}
LeaderboardsConfig is the data definition for the LeaderboardsSystem type.
type LeaderboardsConfigLeaderboard ¶
type LeaderboardsConfigLeaderboard struct {
Id string `json:"id,omitempty"`
SortOrder string `json:"sort_order,omitempty"`
Operator string `json:"operator,omitempty"`
ResetSchedule string `json:"reset_schedule,omitempty"`
Authoritative bool `json:"authoritative,omitempty"`
Regions []string `json:"regions,omitempty"`
}
type LeaderboardsSystem ¶
type LeaderboardsSystem interface {
System
// Get returns a list of available leaderboards for the user.
Get(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string) (*LeaderboardConfigList, error)
}
The LeaderboardsSystem defines a collection of leaderboards which can be defined as global or regional with Nakama server.
type OnAuctionReward ¶ added in v1.20.0
type OnEventLeaderboardCohortSelection ¶ added in v1.5.0
type OnEventLeaderboardCohortSelection func(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, storageIndex string, eventID string, config *EventLeaderboardsConfigLeaderboard, userID string, tier int, matchmakerProperties map[string]interface{}) (cohortID string, cohortUserIDs []string, newCohort *EventLeaderboardCohortConfig, err error)
type OnReward ¶
type OnReward[T any] func(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, sourceID string, source T, rewardConfig *EconomyConfigReward, reward *Reward) (*Reward, error)
OnReward is a function that can be used by each gameplay system to provide an override reward.
type OnTeamEventLeaderboardCohortSelection ¶ added in v1.26.0
type OnTeamEventLeaderboardCohortSelection func(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, storageIndex string, eventID string, config *EventLeaderboardsConfigLeaderboard, userID, teamID string, tier int, matchmakerProperties map[string]interface{}) (cohortID string, cohortUserIDs []string, newCohort *EventLeaderboardCohortConfig, err error)
type OnTeamReward ¶ added in v1.26.0
type OnTeamReward[T any] func(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID, sourceID string, source T, rewardConfig *EconomyConfigReward, reward *Reward) (*Reward, error)
OnTeamReward is a function that can be used by the teams system to provide an override reward.
type Personalizer ¶
type Personalizer interface {
// GetValue returns a config which has been modified for a gameplay system,
// or nil if the config is not being adjusted by this personalizer.
GetValue(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, system System, identity string) (config any, err error)
}
The Personalizer describes an intermediate server or service which can be used to personalize the base data definitions defined for the gameplay systems.
type ProfanityFilterFn ¶ added in v1.30.0
ProfanityFilterFn can be used to implement a profanity filter that returns: * A profanity confidence value for the given input content between 0.0 (lowest) and 1.0 (highest). * A replacement content message with profanity censored appropriately. * An error message if checking the content failed.
type Progression ¶ added in v1.3.0
type Progression struct {
// The ID of the progression.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The name of the progression. May be an i18n code.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// A description of the progression. May be an i18n code.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// The category to group the progression together with others.
Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
// Current count, if any.
Counts map[string]int64 `` /* 154-byte string literal not displayed */
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 209-byte string literal not displayed */
// Flag indicating unlock status.
Unlocked bool `protobuf:"varint,7,opt,name=unlocked,proto3" json:"unlocked,omitempty"`
// All preconditions.
Preconditions *ProgressionPreconditionsBlock `protobuf:"bytes,8,opt,name=preconditions,proto3" json:"preconditions,omitempty"`
// Unmet preconditions.
UnmetPreconditions *ProgressionPreconditionsBlock `protobuf:"bytes,9,opt,name=unmet_preconditions,json=unmetPreconditions,proto3" json:"unmet_preconditions,omitempty"`
// Flag indicating if unconditional updates are allowed.
UnconditionalUpdates bool `protobuf:"varint,10,opt,name=unconditional_updates,json=unconditionalUpdates,proto3" json:"unconditional_updates,omitempty"`
// Flag indicating if the progression remains unlocked permanently once unlocked the first time.
PermanentUnlock bool `protobuf:"varint,11,opt,name=permanent_unlock,json=permanentUnlock,proto3" json:"permanent_unlock,omitempty"`
// contains filtered or unexported fields
}
A progression element which can be unlocked to access further progressions.
func (*Progression) Descriptor
deprecated
added in
v1.3.0
func (*Progression) Descriptor() ([]byte, []int)
Deprecated: Use Progression.ProtoReflect.Descriptor instead.
func (*Progression) GetAdditionalProperties ¶ added in v1.3.0
func (x *Progression) GetAdditionalProperties() map[string]string
func (*Progression) GetCategory ¶ added in v1.3.0
func (x *Progression) GetCategory() string
func (*Progression) GetCounts ¶ added in v1.4.0
func (x *Progression) GetCounts() map[string]int64
func (*Progression) GetDescription ¶ added in v1.3.0
func (x *Progression) GetDescription() string
func (*Progression) GetId ¶ added in v1.3.0
func (x *Progression) GetId() string
func (*Progression) GetName ¶ added in v1.3.0
func (x *Progression) GetName() string
func (*Progression) GetPermanentUnlock ¶ added in v1.26.0
func (x *Progression) GetPermanentUnlock() bool
func (*Progression) GetPreconditions ¶ added in v1.3.0
func (x *Progression) GetPreconditions() *ProgressionPreconditionsBlock
func (*Progression) GetUnconditionalUpdates ¶ added in v1.26.0
func (x *Progression) GetUnconditionalUpdates() bool
func (*Progression) GetUnlocked ¶ added in v1.3.0
func (x *Progression) GetUnlocked() bool
func (*Progression) GetUnmetPreconditions ¶ added in v1.3.0
func (x *Progression) GetUnmetPreconditions() *ProgressionPreconditionsBlock
func (*Progression) ProtoMessage ¶ added in v1.3.0
func (*Progression) ProtoMessage()
func (*Progression) ProtoReflect ¶ added in v1.3.0
func (x *Progression) ProtoReflect() protoreflect.Message
func (*Progression) Reset ¶ added in v1.3.0
func (x *Progression) Reset()
func (*Progression) String ¶ added in v1.3.0
func (x *Progression) String() string
type ProgressionConfig ¶ added in v1.3.0
type ProgressionConfig struct {
Progressions map[string]*ProgressionConfigProgression `json:"progressions,omitempty"`
}
ProgressionConfig is the data definition for a ProgressionSystem type.
type ProgressionConfigProgression ¶ added in v1.3.0
type ProgressionConfigProgression struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Category string `json:"category,omitempty"`
AdditionalProperties map[string]string `json:"additional_properties,omitempty"`
Preconditions *ProgressionPreconditionsBlock `json:"preconditions,omitempty"`
ResetSchedule string `json:"reset_schedule,omitempty"`
UnconditionalUpdates bool `json:"unconditional_updates,omitempty"`
PermanentUnlock bool `json:"permanent_unlock,omitempty"`
}
type ProgressionCost ¶ added in v1.3.0
type ProgressionCost struct {
// The items which will be deducted.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// The currencies which will be deducted.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// contains filtered or unexported fields
}
The cost(s) associated with permanently unlocking a progression.
func (*ProgressionCost) Descriptor
deprecated
added in
v1.3.0
func (*ProgressionCost) Descriptor() ([]byte, []int)
Deprecated: Use ProgressionCost.ProtoReflect.Descriptor instead.
func (*ProgressionCost) GetCurrencies ¶ added in v1.3.0
func (x *ProgressionCost) GetCurrencies() map[string]int64
func (*ProgressionCost) GetItems ¶ added in v1.3.0
func (x *ProgressionCost) GetItems() map[string]int64
func (*ProgressionCost) ProtoMessage ¶ added in v1.3.0
func (*ProgressionCost) ProtoMessage()
func (*ProgressionCost) ProtoReflect ¶ added in v1.3.0
func (x *ProgressionCost) ProtoReflect() protoreflect.Message
func (*ProgressionCost) Reset ¶ added in v1.3.0
func (x *ProgressionCost) Reset()
func (*ProgressionCost) String ¶ added in v1.3.0
func (x *ProgressionCost) String() string
type ProgressionDelta ¶ added in v1.5.0
type ProgressionDelta struct {
// The ID of the progression.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Potential state change.
State ProgressionDeltaState `protobuf:"varint,2,opt,name=state,proto3,enum=hiro.ProgressionDeltaState" json:"state,omitempty"`
// Changes to counts, if any.
Counts map[string]int64 `` /* 154-byte string literal not displayed */
// Changes to preconditions, if any.
Preconditions *ProgressionPreconditionsBlock `protobuf:"bytes,4,opt,name=preconditions,proto3" json:"preconditions,omitempty"`
// contains filtered or unexported fields
}
A change in a given progression, compared to a previously known state.
func (*ProgressionDelta) Descriptor
deprecated
added in
v1.5.0
func (*ProgressionDelta) Descriptor() ([]byte, []int)
Deprecated: Use ProgressionDelta.ProtoReflect.Descriptor instead.
func (*ProgressionDelta) GetCounts ¶ added in v1.5.0
func (x *ProgressionDelta) GetCounts() map[string]int64
func (*ProgressionDelta) GetId ¶ added in v1.5.0
func (x *ProgressionDelta) GetId() string
func (*ProgressionDelta) GetPreconditions ¶ added in v1.5.0
func (x *ProgressionDelta) GetPreconditions() *ProgressionPreconditionsBlock
func (*ProgressionDelta) GetState ¶ added in v1.5.0
func (x *ProgressionDelta) GetState() ProgressionDeltaState
func (*ProgressionDelta) ProtoMessage ¶ added in v1.5.0
func (*ProgressionDelta) ProtoMessage()
func (*ProgressionDelta) ProtoReflect ¶ added in v1.5.0
func (x *ProgressionDelta) ProtoReflect() protoreflect.Message
func (*ProgressionDelta) Reset ¶ added in v1.5.0
func (x *ProgressionDelta) Reset()
func (*ProgressionDelta) String ¶ added in v1.5.0
func (x *ProgressionDelta) String() string
type ProgressionDeltaState ¶ added in v1.5.0
type ProgressionDeltaState int32
const ( // Unspecified. Defaults to UNCHANGED. ProgressionDeltaState_PROGRESSION_DELTA_STATE_UNSPECIFIED ProgressionDeltaState = 0 // Progression unlock state has not changed. ProgressionDeltaState_PROGRESSION_DELTA_STATE_UNCHANGED ProgressionDeltaState = 1 // Progression was locked, it is now unlocked. ProgressionDeltaState_PROGRESSION_DELTA_STATE_UNLOCKED ProgressionDeltaState = 2 // Progression was unlocked, it is now locked. ProgressionDeltaState_PROGRESSION_DELTA_STATE_LOCKED ProgressionDeltaState = 3 )
func (ProgressionDeltaState) Descriptor ¶ added in v1.5.0
func (ProgressionDeltaState) Descriptor() protoreflect.EnumDescriptor
func (ProgressionDeltaState) Enum ¶ added in v1.5.0
func (x ProgressionDeltaState) Enum() *ProgressionDeltaState
func (ProgressionDeltaState) EnumDescriptor
deprecated
added in
v1.5.0
func (ProgressionDeltaState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProgressionDeltaState.Descriptor instead.
func (ProgressionDeltaState) Number ¶ added in v1.5.0
func (x ProgressionDeltaState) Number() protoreflect.EnumNumber
func (ProgressionDeltaState) String ¶ added in v1.5.0
func (x ProgressionDeltaState) String() string
func (ProgressionDeltaState) Type ¶ added in v1.5.0
func (ProgressionDeltaState) Type() protoreflect.EnumType
type ProgressionGetRequest ¶ added in v1.5.0
type ProgressionGetRequest struct {
// Optional last known progressions state, keyed by progression ID.
Progressions map[string]*Progression `` /* 165-byte string literal not displayed */
// contains filtered or unexported fields
}
Request progressions for a user, optionally including previously seen state for delta calculations.
func (*ProgressionGetRequest) Descriptor
deprecated
added in
v1.5.0
func (*ProgressionGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProgressionGetRequest.ProtoReflect.Descriptor instead.
func (*ProgressionGetRequest) GetProgressions ¶ added in v1.5.0
func (x *ProgressionGetRequest) GetProgressions() map[string]*Progression
func (*ProgressionGetRequest) ProtoMessage ¶ added in v1.5.0
func (*ProgressionGetRequest) ProtoMessage()
func (*ProgressionGetRequest) ProtoReflect ¶ added in v1.5.0
func (x *ProgressionGetRequest) ProtoReflect() protoreflect.Message
func (*ProgressionGetRequest) Reset ¶ added in v1.5.0
func (x *ProgressionGetRequest) Reset()
func (*ProgressionGetRequest) String ¶ added in v1.5.0
func (x *ProgressionGetRequest) String() string
type ProgressionList ¶ added in v1.3.0
type ProgressionList struct {
// Progressions keyed by progression ID.
Progressions map[string]*Progression `` /* 165-byte string literal not displayed */
// Progression deltas keyed by progression ID.
Deltas map[string]*ProgressionDelta `` /* 153-byte string literal not displayed */
// contains filtered or unexported fields
}
All or a filtered list of progressions for a user.
func (*ProgressionList) Descriptor
deprecated
added in
v1.3.0
func (*ProgressionList) Descriptor() ([]byte, []int)
Deprecated: Use ProgressionList.ProtoReflect.Descriptor instead.
func (*ProgressionList) GetDeltas ¶ added in v1.5.0
func (x *ProgressionList) GetDeltas() map[string]*ProgressionDelta
func (*ProgressionList) GetProgressions ¶ added in v1.3.0
func (x *ProgressionList) GetProgressions() map[string]*Progression
func (*ProgressionList) ProtoMessage ¶ added in v1.3.0
func (*ProgressionList) ProtoMessage()
func (*ProgressionList) ProtoReflect ¶ added in v1.3.0
func (x *ProgressionList) ProtoReflect() protoreflect.Message
func (*ProgressionList) Reset ¶ added in v1.3.0
func (x *ProgressionList) Reset()
func (*ProgressionList) String ¶ added in v1.3.0
func (x *ProgressionList) String() string
type ProgressionPreconditions ¶ added in v1.3.0
type ProgressionPreconditions struct {
// Counts required.
Counts map[string]int64 `` /* 154-byte string literal not displayed */
// Purchase cost paid.
Cost *ProgressionCost `protobuf:"bytes,2,opt,name=cost,proto3" json:"cost,omitempty"`
// Other progressions.
Progressions []string `protobuf:"bytes,3,rep,name=progressions,proto3" json:"progressions,omitempty"`
// Achievements.
Achievements []string `protobuf:"bytes,4,rep,name=achievements,proto3" json:"achievements,omitempty"`
// Items with associated minimum counts.
ItemsMin map[string]int64 `` /* 174-byte string literal not displayed */
// Items with associated maximum counts.
ItemsMax map[string]int64 `` /* 174-byte string literal not displayed */
// Stats with associated minimum values.
StatsMin map[string]int64 `` /* 174-byte string literal not displayed */
// Stats with associated maximum values.
StatsMax map[string]int64 `` /* 174-byte string literal not displayed */
// Energies with associated minimum counts.
EnergyMin map[string]int64 `` /* 177-byte string literal not displayed */
// Energies with associated maximum counts.
EnergyMax map[string]int64 `` /* 178-byte string literal not displayed */
// Currencies with associated minimum counts.
CurrencyMin map[string]int64 `` /* 184-byte string literal not displayed */
// Currencies with associated maximum counts.
CurrencyMax map[string]int64 `` /* 184-byte string literal not displayed */
// contains filtered or unexported fields
}
Preconditions associated with a progression.
func (*ProgressionPreconditions) Descriptor
deprecated
added in
v1.3.0
func (*ProgressionPreconditions) Descriptor() ([]byte, []int)
Deprecated: Use ProgressionPreconditions.ProtoReflect.Descriptor instead.
func (*ProgressionPreconditions) GetAchievements ¶ added in v1.3.0
func (x *ProgressionPreconditions) GetAchievements() []string
func (*ProgressionPreconditions) GetCost ¶ added in v1.3.0
func (x *ProgressionPreconditions) GetCost() *ProgressionCost
func (*ProgressionPreconditions) GetCounts ¶ added in v1.4.0
func (x *ProgressionPreconditions) GetCounts() map[string]int64
func (*ProgressionPreconditions) GetCurrencyMax ¶ added in v1.3.0
func (x *ProgressionPreconditions) GetCurrencyMax() map[string]int64
func (*ProgressionPreconditions) GetCurrencyMin ¶ added in v1.3.0
func (x *ProgressionPreconditions) GetCurrencyMin() map[string]int64
func (*ProgressionPreconditions) GetEnergyMax ¶ added in v1.3.0
func (x *ProgressionPreconditions) GetEnergyMax() map[string]int64
func (*ProgressionPreconditions) GetEnergyMin ¶ added in v1.3.0
func (x *ProgressionPreconditions) GetEnergyMin() map[string]int64
func (*ProgressionPreconditions) GetItemsMax ¶ added in v1.3.0
func (x *ProgressionPreconditions) GetItemsMax() map[string]int64
func (*ProgressionPreconditions) GetItemsMin ¶ added in v1.3.0
func (x *ProgressionPreconditions) GetItemsMin() map[string]int64
func (*ProgressionPreconditions) GetProgressions ¶ added in v1.3.0
func (x *ProgressionPreconditions) GetProgressions() []string
func (*ProgressionPreconditions) GetStatsMax ¶ added in v1.3.0
func (x *ProgressionPreconditions) GetStatsMax() map[string]int64
func (*ProgressionPreconditions) GetStatsMin ¶ added in v1.3.0
func (x *ProgressionPreconditions) GetStatsMin() map[string]int64
func (*ProgressionPreconditions) ProtoMessage ¶ added in v1.3.0
func (*ProgressionPreconditions) ProtoMessage()
func (*ProgressionPreconditions) ProtoReflect ¶ added in v1.3.0
func (x *ProgressionPreconditions) ProtoReflect() protoreflect.Message
func (*ProgressionPreconditions) Reset ¶ added in v1.3.0
func (x *ProgressionPreconditions) Reset()
func (*ProgressionPreconditions) String ¶ added in v1.3.0
func (x *ProgressionPreconditions) String() string
type ProgressionPreconditionsBlock ¶ added in v1.3.0
type ProgressionPreconditionsBlock struct {
// Direct preconditions.
Direct *ProgressionPreconditions `protobuf:"bytes,1,opt,name=direct,proto3" json:"direct,omitempty"`
// Operator for any nested block.
Operator ProgressionPreconditionsOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=hiro.ProgressionPreconditionsOperator" json:"operator,omitempty"`
// Nested block of preconditions, if any.
Nested *ProgressionPreconditionsBlock `protobuf:"bytes,3,opt,name=nested,proto3" json:"nested,omitempty"`
// contains filtered or unexported fields
}
A complex set of progression preconditions.
func (*ProgressionPreconditionsBlock) Descriptor
deprecated
added in
v1.3.0
func (*ProgressionPreconditionsBlock) Descriptor() ([]byte, []int)
Deprecated: Use ProgressionPreconditionsBlock.ProtoReflect.Descriptor instead.
func (*ProgressionPreconditionsBlock) GetDirect ¶ added in v1.3.0
func (x *ProgressionPreconditionsBlock) GetDirect() *ProgressionPreconditions
func (*ProgressionPreconditionsBlock) GetNested ¶ added in v1.3.0
func (x *ProgressionPreconditionsBlock) GetNested() *ProgressionPreconditionsBlock
func (*ProgressionPreconditionsBlock) GetOperator ¶ added in v1.3.0
func (x *ProgressionPreconditionsBlock) GetOperator() ProgressionPreconditionsOperator
func (*ProgressionPreconditionsBlock) ProtoMessage ¶ added in v1.3.0
func (*ProgressionPreconditionsBlock) ProtoMessage()
func (*ProgressionPreconditionsBlock) ProtoReflect ¶ added in v1.3.0
func (x *ProgressionPreconditionsBlock) ProtoReflect() protoreflect.Message
func (*ProgressionPreconditionsBlock) Reset ¶ added in v1.3.0
func (x *ProgressionPreconditionsBlock) Reset()
func (*ProgressionPreconditionsBlock) String ¶ added in v1.3.0
func (x *ProgressionPreconditionsBlock) String() string
type ProgressionPreconditionsOperator ¶ added in v1.3.0
type ProgressionPreconditionsOperator int32
const ( // Unspecified. Defaults to AND. ProgressionPreconditionsOperator_PROGRESSION_PRECONDITIONS_OPERATOR_UNSPECIFIED ProgressionPreconditionsOperator = 0 // Both the direct preconditions and the nested block must be true. ProgressionPreconditionsOperator_PROGRESSION_PRECONDITIONS_OPERATOR_AND ProgressionPreconditionsOperator = 1 // Either the direct preconditions or the nested block must be true. ProgressionPreconditionsOperator_PROGRESSION_PRECONDITIONS_OPERATOR_OR ProgressionPreconditionsOperator = 2 // Either the direct preconditions or the nested block must be true, but not both. ProgressionPreconditionsOperator_PROGRESSION_PRECONDITIONS_OPERATOR_XOR ProgressionPreconditionsOperator = 3 // The direct preconditions must be true, but the nested block must not be. ProgressionPreconditionsOperator_PROGRESSION_PRECONDITIONS_OPERATOR_NOT ProgressionPreconditionsOperator = 4 )
func (ProgressionPreconditionsOperator) Descriptor ¶ added in v1.3.0
func (ProgressionPreconditionsOperator) Descriptor() protoreflect.EnumDescriptor
func (ProgressionPreconditionsOperator) Enum ¶ added in v1.3.0
func (x ProgressionPreconditionsOperator) Enum() *ProgressionPreconditionsOperator
func (ProgressionPreconditionsOperator) EnumDescriptor
deprecated
added in
v1.3.0
func (ProgressionPreconditionsOperator) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProgressionPreconditionsOperator.Descriptor instead.
func (ProgressionPreconditionsOperator) Number ¶ added in v1.3.0
func (x ProgressionPreconditionsOperator) Number() protoreflect.EnumNumber
func (ProgressionPreconditionsOperator) String ¶ added in v1.3.0
func (x ProgressionPreconditionsOperator) String() string
func (ProgressionPreconditionsOperator) Type ¶ added in v1.3.0
func (ProgressionPreconditionsOperator) Type() protoreflect.EnumType
type ProgressionPurchaseRequest ¶ added in v1.3.0
type ProgressionPurchaseRequest struct {
// ID of the progression to permanently unlock.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Request to permanently unlock a progression, if supported by that specific progression.
func (*ProgressionPurchaseRequest) Descriptor
deprecated
added in
v1.3.0
func (*ProgressionPurchaseRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProgressionPurchaseRequest.ProtoReflect.Descriptor instead.
func (*ProgressionPurchaseRequest) GetId ¶ added in v1.3.0
func (x *ProgressionPurchaseRequest) GetId() string
func (*ProgressionPurchaseRequest) ProtoMessage ¶ added in v1.3.0
func (*ProgressionPurchaseRequest) ProtoMessage()
func (*ProgressionPurchaseRequest) ProtoReflect ¶ added in v1.3.0
func (x *ProgressionPurchaseRequest) ProtoReflect() protoreflect.Message
func (*ProgressionPurchaseRequest) Reset ¶ added in v1.3.0
func (x *ProgressionPurchaseRequest) Reset()
func (*ProgressionPurchaseRequest) String ¶ added in v1.3.0
func (x *ProgressionPurchaseRequest) String() string
type ProgressionResetRequest ¶ added in v1.9.0
type ProgressionResetRequest struct {
// The progression IDs to reset.
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
Request to reset progression progress.
func (*ProgressionResetRequest) Descriptor
deprecated
added in
v1.9.0
func (*ProgressionResetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProgressionResetRequest.ProtoReflect.Descriptor instead.
func (*ProgressionResetRequest) GetIds ¶ added in v1.9.0
func (x *ProgressionResetRequest) GetIds() []string
func (*ProgressionResetRequest) ProtoMessage ¶ added in v1.9.0
func (*ProgressionResetRequest) ProtoMessage()
func (*ProgressionResetRequest) ProtoReflect ¶ added in v1.9.0
func (x *ProgressionResetRequest) ProtoReflect() protoreflect.Message
func (*ProgressionResetRequest) Reset ¶ added in v1.9.0
func (x *ProgressionResetRequest) Reset()
func (*ProgressionResetRequest) String ¶ added in v1.9.0
func (x *ProgressionResetRequest) String() string
type ProgressionSystem ¶ added in v1.3.0
type ProgressionSystem interface {
System
// Get returns all or an optionally-filtered set of progressions for the given user.
Get(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, lastKnownProgressions map[string]*Progression) (progressions map[string]*Progression, deltas map[string]*ProgressionDelta, err error)
// Purchase permanently unlocks a specified progression, if that progression supports this operation.
Purchase(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, progressionID string) (progressions map[string]*Progression, err error)
// Update a specified progression, if that progression supports this operation.
Update(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, progressionID string, counts map[string]int64) (progressions map[string]*Progression, err error)
// Reset one or more progressions to clear their progress. Only applies to progression counts and unlock costs.
Reset(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, progressionIDs []string) (progressions map[string]*Progression, err error)
// Unlock one or more progressions marking them as complete no matter their cost or preconditions.
Unlock(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, progressionIDs []string) (progressions map[string]*Progression, err error)
}
A ProgressionSystem is a gameplay system which represents a sequence of progression steps.
type ProgressionUpdateRequest ¶ added in v1.4.0
type ProgressionUpdateRequest struct {
// ID of the progression to update.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// One or more counts to add to the progression.
Counts map[string]int64 `` /* 154-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to update a progression, if supported by that specific progression.
func (*ProgressionUpdateRequest) Descriptor
deprecated
added in
v1.4.0
func (*ProgressionUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProgressionUpdateRequest.ProtoReflect.Descriptor instead.
func (*ProgressionUpdateRequest) GetCounts ¶ added in v1.4.0
func (x *ProgressionUpdateRequest) GetCounts() map[string]int64
func (*ProgressionUpdateRequest) GetId ¶ added in v1.4.0
func (x *ProgressionUpdateRequest) GetId() string
func (*ProgressionUpdateRequest) ProtoMessage ¶ added in v1.4.0
func (*ProgressionUpdateRequest) ProtoMessage()
func (*ProgressionUpdateRequest) ProtoReflect ¶ added in v1.4.0
func (x *ProgressionUpdateRequest) ProtoReflect() protoreflect.Message
func (*ProgressionUpdateRequest) Reset ¶ added in v1.4.0
func (x *ProgressionUpdateRequest) Reset()
func (*ProgressionUpdateRequest) String ¶ added in v1.4.0
func (x *ProgressionUpdateRequest) String() string
type Publisher ¶ added in v1.20.0
type Publisher interface {
// Authenticate is called every time a user authenticates with Hiro. The 'created' flag is true if this
// is a newly created user account, and each implementation may choose to handle this as it chooses.
Authenticate(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, created bool)
// Send is called when there are one or more events generated.
Send(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, events []*PublisherEvent)
}
The Publisher describes a service or similar target implementation that wishes to receive and process analytics-style events generated server-side by the various available Hiro systems.
Each Publisher may choose to process or ignore each event as it sees fit. It may also choose to buffer events for batch processing at its discretion, but must take care to.
Publisher implementations must safely handle concurrent calls.
Implementations must handle any errors or retries internally, callers will not repeat calls in case of errors.
type PublisherEvent ¶ added in v1.20.0
type PublisherEvent struct {
Name string `json:"name,omitempty"`
Id string `json:"id,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
Value string `json:"value,omitempty"`
// The Hiro system that generated this event.
System System `json:"-"`
// Source ID represents the identifier of the event source, such as an achievement ID.
SourceId string `json:"-"`
// Source represents the configuration of the event source, such as an achievement config.
Source any `json:"-"`
}
type RateAppRequest ¶
type RateAppRequest struct {
// The score given by the user. Above zero values indicate a positive review.
Score uint32 `protobuf:"varint,1,opt,name=score,proto3" json:"score,omitempty"`
// The message about the reason for their score. May be blank.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
The input message when the user rates the app.
func (*RateAppRequest) Descriptor
deprecated
func (*RateAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use RateAppRequest.ProtoReflect.Descriptor instead.
func (*RateAppRequest) GetMessage ¶
func (x *RateAppRequest) GetMessage() string
func (*RateAppRequest) GetScore ¶
func (x *RateAppRequest) GetScore() uint32
func (*RateAppRequest) ProtoMessage ¶
func (*RateAppRequest) ProtoMessage()
func (*RateAppRequest) ProtoReflect ¶
func (x *RateAppRequest) ProtoReflect() protoreflect.Message
func (*RateAppRequest) Reset ¶
func (x *RateAppRequest) Reset()
func (*RateAppRequest) String ¶
func (x *RateAppRequest) String() string
type Reward ¶
type Reward struct {
// The items granted. Keyed by item ID.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// The currencies granted.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// The energy granted.
Energies map[string]int32 `` /* 158-byte string literal not displayed */
// The energy modifier granted.
EnergyModifiers []*RewardEnergyModifier `protobuf:"bytes,4,rep,name=energy_modifiers,json=energyModifiers,proto3" json:"energy_modifiers,omitempty"`
// The reward modifiers granted.
RewardModifiers []*RewardModifier `protobuf:"bytes,5,rep,name=reward_modifiers,json=rewardModifiers,proto3" json:"reward_modifiers,omitempty"`
// When the reward was granted, in UNIX time.
GrantTimeSec int64 `protobuf:"varint,6,opt,name=grant_time_sec,json=grantTimeSec,proto3" json:"grant_time_sec,omitempty"`
// The item instances granted. Keyed by item instance ID.
ItemInstances map[string]*RewardInventoryItem `` /* 188-byte string literal not displayed */
// Indicates if this reward was sent to the reward mailbox, and what its expiry will be.
ToMailboxExpirySec int64 `protobuf:"varint,8,opt,name=to_mailbox_expiry_sec,json=toMailboxExpirySec,proto3" json:"to_mailbox_expiry_sec,omitempty"`
// Team reward, if any.
TeamReward *TeamReward `protobuf:"bytes,9,opt,name=team_reward,json=teamReward,proto3" json:"team_reward,omitempty"`
// Message associated with the reward, if any.
Message string `protobuf:"bytes,10,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
Rewards granted to the player.
func (*Reward) Descriptor
deprecated
func (*Reward) GetCurrencies ¶
func (*Reward) GetEnergies ¶
func (*Reward) GetEnergyModifiers ¶
func (x *Reward) GetEnergyModifiers() []*RewardEnergyModifier
func (*Reward) GetGrantTimeSec ¶
func (*Reward) GetItemInstances ¶ added in v1.10.0
func (x *Reward) GetItemInstances() map[string]*RewardInventoryItem
func (*Reward) GetMessage ¶ added in v1.29.0
func (*Reward) GetRewardModifiers ¶
func (x *Reward) GetRewardModifiers() []*RewardModifier
func (*Reward) GetTeamReward ¶ added in v1.26.0
func (x *Reward) GetTeamReward() *TeamReward
func (*Reward) GetToMailboxExpirySec ¶ added in v1.26.0
func (*Reward) ProtoMessage ¶
func (*Reward) ProtoMessage()
func (*Reward) ProtoReflect ¶
func (x *Reward) ProtoReflect() protoreflect.Message
type RewardEnergyModifier ¶
type RewardEnergyModifier struct {
// The ID of they modifier granted.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The energy modifier operator.
Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
// The value to apply. Its behavior depends on the operator.
Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
// The duration of the energy modifier in seconds.
DurationSec uint64 `protobuf:"varint,4,opt,name=duration_sec,json=durationSec,proto3" json:"duration_sec,omitempty"`
// The weight of the energy modifier, if weighted. Otherwise, -1.
Weight int64 `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty"`
// contains filtered or unexported fields
}
Energy modifier granted.
func (*RewardEnergyModifier) Descriptor
deprecated
func (*RewardEnergyModifier) Descriptor() ([]byte, []int)
Deprecated: Use RewardEnergyModifier.ProtoReflect.Descriptor instead.
func (*RewardEnergyModifier) GetDurationSec ¶
func (x *RewardEnergyModifier) GetDurationSec() uint64
func (*RewardEnergyModifier) GetId ¶
func (x *RewardEnergyModifier) GetId() string
func (*RewardEnergyModifier) GetOperator ¶
func (x *RewardEnergyModifier) GetOperator() string
func (*RewardEnergyModifier) GetValue ¶
func (x *RewardEnergyModifier) GetValue() int64
func (*RewardEnergyModifier) GetWeight ¶
func (x *RewardEnergyModifier) GetWeight() int64
func (*RewardEnergyModifier) ProtoMessage ¶
func (*RewardEnergyModifier) ProtoMessage()
func (*RewardEnergyModifier) ProtoReflect ¶
func (x *RewardEnergyModifier) ProtoReflect() protoreflect.Message
func (*RewardEnergyModifier) Reset ¶
func (x *RewardEnergyModifier) Reset()
func (*RewardEnergyModifier) String ¶
func (x *RewardEnergyModifier) String() string
type RewardInventoryItem ¶ added in v1.10.0
type RewardInventoryItem struct {
// The ID of the item.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The count granted of the item.
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// The properties with string values.
StringProperties map[string]string `` /* 197-byte string literal not displayed */
// The properties with numeric values.
NumericProperties map[string]float64 `` /* 202-byte string literal not displayed */
// The instance ID of the item.
InstanceId string `protobuf:"bytes,5,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// contains filtered or unexported fields
}
Inventory item granted.
func (*RewardInventoryItem) Descriptor
deprecated
added in
v1.10.0
func (*RewardInventoryItem) Descriptor() ([]byte, []int)
Deprecated: Use RewardInventoryItem.ProtoReflect.Descriptor instead.
func (*RewardInventoryItem) GetCount ¶ added in v1.10.0
func (x *RewardInventoryItem) GetCount() int64
func (*RewardInventoryItem) GetId ¶ added in v1.10.0
func (x *RewardInventoryItem) GetId() string
func (*RewardInventoryItem) GetInstanceId ¶ added in v1.10.0
func (x *RewardInventoryItem) GetInstanceId() string
func (*RewardInventoryItem) GetNumericProperties ¶ added in v1.10.0
func (x *RewardInventoryItem) GetNumericProperties() map[string]float64
func (*RewardInventoryItem) GetStringProperties ¶ added in v1.10.0
func (x *RewardInventoryItem) GetStringProperties() map[string]string
func (*RewardInventoryItem) ProtoMessage ¶ added in v1.10.0
func (*RewardInventoryItem) ProtoMessage()
func (*RewardInventoryItem) ProtoReflect ¶ added in v1.10.0
func (x *RewardInventoryItem) ProtoReflect() protoreflect.Message
func (*RewardInventoryItem) Reset ¶ added in v1.10.0
func (x *RewardInventoryItem) Reset()
func (*RewardInventoryItem) String ¶ added in v1.10.0
func (x *RewardInventoryItem) String() string
type RewardList ¶
type RewardList struct {
// The rewards granted.
Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"`
// contains filtered or unexported fields
}
A list of rewards granted to the player.
func (*RewardList) Descriptor
deprecated
func (*RewardList) Descriptor() ([]byte, []int)
Deprecated: Use RewardList.ProtoReflect.Descriptor instead.
func (*RewardList) GetRewards ¶
func (x *RewardList) GetRewards() []*Reward
func (*RewardList) ProtoMessage ¶
func (*RewardList) ProtoMessage()
func (*RewardList) ProtoReflect ¶
func (x *RewardList) ProtoReflect() protoreflect.Message
func (*RewardList) Reset ¶
func (x *RewardList) Reset()
func (*RewardList) String ¶
func (x *RewardList) String() string
type RewardMailboxClaimRequest ¶ added in v1.26.0
type RewardMailboxClaimRequest struct {
// Identifier for the reward mailbox entry to claim.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// If the entry should be deleted as part of the claim.
Delete bool `protobuf:"varint,2,opt,name=delete,proto3" json:"delete,omitempty"`
// contains filtered or unexported fields
}
Request to claim a reward mailbox entry, and optionally remove it at the same time.
func (*RewardMailboxClaimRequest) Descriptor
deprecated
added in
v1.26.0
func (*RewardMailboxClaimRequest) Descriptor() ([]byte, []int)
Deprecated: Use RewardMailboxClaimRequest.ProtoReflect.Descriptor instead.
func (*RewardMailboxClaimRequest) GetDelete ¶ added in v1.26.0
func (x *RewardMailboxClaimRequest) GetDelete() bool
func (*RewardMailboxClaimRequest) GetId ¶ added in v1.26.0
func (x *RewardMailboxClaimRequest) GetId() string
func (*RewardMailboxClaimRequest) ProtoMessage ¶ added in v1.26.0
func (*RewardMailboxClaimRequest) ProtoMessage()
func (*RewardMailboxClaimRequest) ProtoReflect ¶ added in v1.26.0
func (x *RewardMailboxClaimRequest) ProtoReflect() protoreflect.Message
func (*RewardMailboxClaimRequest) Reset ¶ added in v1.26.0
func (x *RewardMailboxClaimRequest) Reset()
func (*RewardMailboxClaimRequest) String ¶ added in v1.26.0
func (x *RewardMailboxClaimRequest) String() string
type RewardMailboxConfig ¶ added in v1.26.0
type RewardMailboxConfig struct {
MaxSize int `json:"max_size,omitempty"`
}
type RewardMailboxDeleteRequest ¶ added in v1.26.0
type RewardMailboxDeleteRequest struct {
// Identifiers for the reward mailbox entries to delete.
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
Request to delete a reward mailbox entry, even if it is not yet claimed.
func (*RewardMailboxDeleteRequest) Descriptor
deprecated
added in
v1.26.0
func (*RewardMailboxDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use RewardMailboxDeleteRequest.ProtoReflect.Descriptor instead.
func (*RewardMailboxDeleteRequest) GetIds ¶ added in v1.26.0
func (x *RewardMailboxDeleteRequest) GetIds() []string
func (*RewardMailboxDeleteRequest) ProtoMessage ¶ added in v1.26.0
func (*RewardMailboxDeleteRequest) ProtoMessage()
func (*RewardMailboxDeleteRequest) ProtoReflect ¶ added in v1.26.0
func (x *RewardMailboxDeleteRequest) ProtoReflect() protoreflect.Message
func (*RewardMailboxDeleteRequest) Reset ¶ added in v1.26.0
func (x *RewardMailboxDeleteRequest) Reset()
func (*RewardMailboxDeleteRequest) String ¶ added in v1.26.0
func (x *RewardMailboxDeleteRequest) String() string
type RewardMailboxEntry ¶ added in v1.26.0
type RewardMailboxEntry struct {
// Unique identifier for this entry.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Reward associated with this entry.
Reward *Reward `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward,omitempty"`
// Create time in UTC seconds.
CreateTimeSec int64 `protobuf:"varint,3,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// Update time in UTC seconds.
UpdateTimeSec int64 `protobuf:"varint,4,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Expiry time in UTC seconds.
ExpiryTimeSec int64 `protobuf:"varint,5,opt,name=expiry_time_sec,json=expiryTimeSec,proto3" json:"expiry_time_sec,omitempty"`
// Claim time in UTC seconds.
ClaimTimeSec int64 `protobuf:"varint,6,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// Indicator if the entry reward can be claimed.
CanClaim bool `protobuf:"varint,7,opt,name=can_claim,json=canClaim,proto3" json:"can_claim,omitempty"`
// contains filtered or unexported fields
}
A reward mailbox entry and associated reward information.
func (*RewardMailboxEntry) Descriptor
deprecated
added in
v1.26.0
func (*RewardMailboxEntry) Descriptor() ([]byte, []int)
Deprecated: Use RewardMailboxEntry.ProtoReflect.Descriptor instead.
func (*RewardMailboxEntry) GetCanClaim ¶ added in v1.26.0
func (x *RewardMailboxEntry) GetCanClaim() bool
func (*RewardMailboxEntry) GetClaimTimeSec ¶ added in v1.26.0
func (x *RewardMailboxEntry) GetClaimTimeSec() int64
func (*RewardMailboxEntry) GetCreateTimeSec ¶ added in v1.26.0
func (x *RewardMailboxEntry) GetCreateTimeSec() int64
func (*RewardMailboxEntry) GetExpiryTimeSec ¶ added in v1.26.0
func (x *RewardMailboxEntry) GetExpiryTimeSec() int64
func (*RewardMailboxEntry) GetId ¶ added in v1.26.0
func (x *RewardMailboxEntry) GetId() string
func (*RewardMailboxEntry) GetReward ¶ added in v1.26.0
func (x *RewardMailboxEntry) GetReward() *Reward
func (*RewardMailboxEntry) GetUpdateTimeSec ¶ added in v1.26.0
func (x *RewardMailboxEntry) GetUpdateTimeSec() int64
func (*RewardMailboxEntry) ProtoMessage ¶ added in v1.26.0
func (*RewardMailboxEntry) ProtoMessage()
func (*RewardMailboxEntry) ProtoReflect ¶ added in v1.26.0
func (x *RewardMailboxEntry) ProtoReflect() protoreflect.Message
func (*RewardMailboxEntry) Reset ¶ added in v1.26.0
func (x *RewardMailboxEntry) Reset()
func (*RewardMailboxEntry) String ¶ added in v1.26.0
func (x *RewardMailboxEntry) String() string
type RewardMailboxList ¶ added in v1.26.0
type RewardMailboxList struct {
// A list of reward mailbox entries for this reward mailbox.
Entries []*RewardMailboxEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
// Pagination cursor to fetch more results, or empty if there are no more.
Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
// contains filtered or unexported fields
}
A list of reward mailbox entries, with pagination information if applicable.
func (*RewardMailboxList) Descriptor
deprecated
added in
v1.26.0
func (*RewardMailboxList) Descriptor() ([]byte, []int)
Deprecated: Use RewardMailboxList.ProtoReflect.Descriptor instead.
func (*RewardMailboxList) GetCursor ¶ added in v1.26.0
func (x *RewardMailboxList) GetCursor() string
func (*RewardMailboxList) GetEntries ¶ added in v1.26.0
func (x *RewardMailboxList) GetEntries() []*RewardMailboxEntry
func (*RewardMailboxList) ProtoMessage ¶ added in v1.26.0
func (*RewardMailboxList) ProtoMessage()
func (*RewardMailboxList) ProtoReflect ¶ added in v1.26.0
func (x *RewardMailboxList) ProtoReflect() protoreflect.Message
func (*RewardMailboxList) Reset ¶ added in v1.26.0
func (x *RewardMailboxList) Reset()
func (*RewardMailboxList) String ¶ added in v1.26.0
func (x *RewardMailboxList) String() string
type RewardMailboxListRequest ¶ added in v1.26.0
type RewardMailboxListRequest struct {
// Maximum number of reward mailbox entries to return.
Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
// Cursor to paginate from, if any.
Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
// contains filtered or unexported fields
}
Request to list reward mailbox entries.
func (*RewardMailboxListRequest) Descriptor
deprecated
added in
v1.26.0
func (*RewardMailboxListRequest) Descriptor() ([]byte, []int)
Deprecated: Use RewardMailboxListRequest.ProtoReflect.Descriptor instead.
func (*RewardMailboxListRequest) GetCursor ¶ added in v1.26.0
func (x *RewardMailboxListRequest) GetCursor() string
func (*RewardMailboxListRequest) GetLimit ¶ added in v1.26.0
func (x *RewardMailboxListRequest) GetLimit() int64
func (*RewardMailboxListRequest) ProtoMessage ¶ added in v1.26.0
func (*RewardMailboxListRequest) ProtoMessage()
func (*RewardMailboxListRequest) ProtoReflect ¶ added in v1.26.0
func (x *RewardMailboxListRequest) ProtoReflect() protoreflect.Message
func (*RewardMailboxListRequest) Reset ¶ added in v1.26.0
func (x *RewardMailboxListRequest) Reset()
func (*RewardMailboxListRequest) String ¶ added in v1.26.0
func (x *RewardMailboxListRequest) String() string
type RewardMailboxSystem ¶ added in v1.26.0
type RewardMailboxSystem interface {
System
// List the reward mailbox.
List(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, limit int, cursor string) (mailboxList *RewardMailboxList, err error)
// Claim a reward, and optionally remove it from the mailbox.
Claim(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, id string, delete bool) (mailboxEntry *RewardMailboxEntry, err error)
// Delete a reward from the mailbox, even if it is not yet claimed.
Delete(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, ids []string) error
// Grant a reward to the user's mailbox.
Grant(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, reward *Reward) (mailboxEntry *RewardMailboxEntry, err error)
// SetOnClaimReward sets a custom reward function which will run after a mailbox reward is rolled during claiming.
SetOnClaimReward(fn OnReward[*RewardMailboxEntry])
}
A RewardMailboxSystem is a gameplay system representing a rewards mailbox for the player to claim from.
type RewardModifier ¶
type RewardModifier struct {
// The ID of the reward content to modify.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The type of reward content to modify.
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// The operator to apply.
Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
// The value to apply. Its behavior depends on the operator.
Value int64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"`
// The duration of the item modifier in seconds.
DurationSec uint64 `protobuf:"varint,5,opt,name=duration_sec,json=durationSec,proto3" json:"duration_sec,omitempty"`
// contains filtered or unexported fields
}
A reward modifier temporally adjusts the way all rewards are handled in the economy.
func (*RewardModifier) Descriptor
deprecated
func (*RewardModifier) Descriptor() ([]byte, []int)
Deprecated: Use RewardModifier.ProtoReflect.Descriptor instead.
func (*RewardModifier) GetDurationSec ¶
func (x *RewardModifier) GetDurationSec() uint64
func (*RewardModifier) GetId ¶
func (x *RewardModifier) GetId() string
func (*RewardModifier) GetOperator ¶
func (x *RewardModifier) GetOperator() string
func (*RewardModifier) GetType ¶
func (x *RewardModifier) GetType() string
func (*RewardModifier) GetValue ¶
func (x *RewardModifier) GetValue() int64
func (*RewardModifier) ProtoMessage ¶
func (*RewardModifier) ProtoMessage()
func (*RewardModifier) ProtoReflect ¶
func (x *RewardModifier) ProtoReflect() protoreflect.Message
func (*RewardModifier) Reset ¶
func (x *RewardModifier) Reset()
func (*RewardModifier) String ¶
func (x *RewardModifier) String() string
type RewardRangeDouble ¶ added in v1.10.0
type RewardRangeDouble struct {
// The minimum bound of the range.
Min float64 `protobuf:"fixed64,1,opt,name=min,proto3" json:"min,omitempty"`
// The maximum bound of the range.
Max float64 `protobuf:"fixed64,2,opt,name=max,proto3" json:"max,omitempty"`
// A number that the result must be a multiple of.
Multiple float64 `protobuf:"fixed64,3,opt,name=multiple,proto3" json:"multiple,omitempty"`
// contains filtered or unexported fields
}
A range of possible values.
func (*RewardRangeDouble) Descriptor
deprecated
added in
v1.10.0
func (*RewardRangeDouble) Descriptor() ([]byte, []int)
Deprecated: Use RewardRangeDouble.ProtoReflect.Descriptor instead.
func (*RewardRangeDouble) GetMax ¶ added in v1.10.0
func (x *RewardRangeDouble) GetMax() float64
func (*RewardRangeDouble) GetMin ¶ added in v1.10.0
func (x *RewardRangeDouble) GetMin() float64
func (*RewardRangeDouble) GetMultiple ¶ added in v1.10.0
func (x *RewardRangeDouble) GetMultiple() float64
func (*RewardRangeDouble) ProtoMessage ¶ added in v1.10.0
func (*RewardRangeDouble) ProtoMessage()
func (*RewardRangeDouble) ProtoReflect ¶ added in v1.10.0
func (x *RewardRangeDouble) ProtoReflect() protoreflect.Message
func (*RewardRangeDouble) Reset ¶ added in v1.10.0
func (x *RewardRangeDouble) Reset()
func (*RewardRangeDouble) String ¶ added in v1.10.0
func (x *RewardRangeDouble) String() string
type RewardRangeInt32 ¶
type RewardRangeInt32 struct {
// The minimum bound of the range.
Min int32 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"`
// The maximum bound of the range.
Max int32 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
// A number that the result must be a multiple of.
Multiple int32 `protobuf:"varint,3,opt,name=multiple,proto3" json:"multiple,omitempty"`
// contains filtered or unexported fields
}
A range of possible values.
func (*RewardRangeInt32) Descriptor
deprecated
func (*RewardRangeInt32) Descriptor() ([]byte, []int)
Deprecated: Use RewardRangeInt32.ProtoReflect.Descriptor instead.
func (*RewardRangeInt32) GetMax ¶
func (x *RewardRangeInt32) GetMax() int32
func (*RewardRangeInt32) GetMin ¶
func (x *RewardRangeInt32) GetMin() int32
func (*RewardRangeInt32) GetMultiple ¶
func (x *RewardRangeInt32) GetMultiple() int32
func (*RewardRangeInt32) ProtoMessage ¶
func (*RewardRangeInt32) ProtoMessage()
func (*RewardRangeInt32) ProtoReflect ¶
func (x *RewardRangeInt32) ProtoReflect() protoreflect.Message
func (*RewardRangeInt32) Reset ¶
func (x *RewardRangeInt32) Reset()
func (*RewardRangeInt32) String ¶
func (x *RewardRangeInt32) String() string
type RewardRangeInt64 ¶
type RewardRangeInt64 struct {
// The minimum bound of the range.
Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"`
// The maximum bound of the range.
Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
// A number that the result must be a multiple of.
Multiple int64 `protobuf:"varint,3,opt,name=multiple,proto3" json:"multiple,omitempty"`
// contains filtered or unexported fields
}
A range of possible values.
func (*RewardRangeInt64) Descriptor
deprecated
func (*RewardRangeInt64) Descriptor() ([]byte, []int)
Deprecated: Use RewardRangeInt64.ProtoReflect.Descriptor instead.
func (*RewardRangeInt64) GetMax ¶
func (x *RewardRangeInt64) GetMax() int64
func (*RewardRangeInt64) GetMin ¶
func (x *RewardRangeInt64) GetMin() int64
func (*RewardRangeInt64) GetMultiple ¶
func (x *RewardRangeInt64) GetMultiple() int64
func (*RewardRangeInt64) ProtoMessage ¶
func (*RewardRangeInt64) ProtoMessage()
func (*RewardRangeInt64) ProtoReflect ¶
func (x *RewardRangeInt64) ProtoReflect() protoreflect.Message
func (*RewardRangeInt64) Reset ¶
func (x *RewardRangeInt64) Reset()
func (*RewardRangeInt64) String ¶
func (x *RewardRangeInt64) String() string
type RewardRangeUInt64 ¶ added in v1.10.0
type RewardRangeUInt64 struct {
// The minimum bound of the range.
Min uint64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"`
// The maximum bound of the range.
Max uint64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
// A number that the result must be a multiple of.
Multiple uint64 `protobuf:"varint,3,opt,name=multiple,proto3" json:"multiple,omitempty"`
// contains filtered or unexported fields
}
A range of possible values.
func (*RewardRangeUInt64) Descriptor
deprecated
added in
v1.10.0
func (*RewardRangeUInt64) Descriptor() ([]byte, []int)
Deprecated: Use RewardRangeUInt64.ProtoReflect.Descriptor instead.
func (*RewardRangeUInt64) GetMax ¶ added in v1.10.0
func (x *RewardRangeUInt64) GetMax() uint64
func (*RewardRangeUInt64) GetMin ¶ added in v1.10.0
func (x *RewardRangeUInt64) GetMin() uint64
func (*RewardRangeUInt64) GetMultiple ¶ added in v1.10.0
func (x *RewardRangeUInt64) GetMultiple() uint64
func (*RewardRangeUInt64) ProtoMessage ¶ added in v1.10.0
func (*RewardRangeUInt64) ProtoMessage()
func (*RewardRangeUInt64) ProtoReflect ¶ added in v1.10.0
func (x *RewardRangeUInt64) ProtoReflect() protoreflect.Message
func (*RewardRangeUInt64) Reset ¶ added in v1.10.0
func (x *RewardRangeUInt64) Reset()
func (*RewardRangeUInt64) String ¶ added in v1.10.0
func (x *RewardRangeUInt64) String() string
type RpcId ¶
type RpcId int32
const ( RpcId_RPC_ID_UNSPECIFIED RpcId = 0 // List all inventory items defined in the codex. RpcId_RPC_ID_INVENTORY_LIST RpcId = 1 // List all inventory items owned by the player. RpcId_RPC_ID_INVENTORY_LIST_INVENTORY RpcId = 2 // Consume one or more inventory items owned by the player. RpcId_RPC_ID_INVENTORY_CONSUME RpcId = 3 // Grant one or more inventory items to the player. RpcId_RPC_ID_INVENTORY_GRANT RpcId = 4 // Update the properties on one or more inventory items owned by the player. RpcId_RPC_ID_INVENTORY_UPDATE RpcId = 5 // Delete Items by instance id. RpcId_RPC_ID_INVENTORY_DELETE RpcId = 123 // Claim one or more rewards which are partially or full donated by other players. RpcId_RPC_ID_ECONOMY_DONATION_CLAIM RpcId = 6 // Donate some resource (currencies, items, etc.) to a user by donation ID. RpcId_RPC_ID_ECONOMY_DONATION_GIVE RpcId = 7 // Get progress on one or more donations for a set of players by their IDs. RpcId_RPC_ID_ECONOMY_DONATION_GET RpcId = 8 // Request a donation which other players can contribute into. RpcId_RPC_ID_ECONOMY_DONATION_REQUEST RpcId = 9 // Get all store items defined in the Virtual Store. RpcId_RPC_ID_ECONOMY_STORE_GET RpcId = 10 // Grant one or more currencies or reward modifiers to te player. RpcId_RPC_ID_ECONOMY_GRANT RpcId = 11 // Send a marker of intent to purchase by the player. RpcId_RPC_ID_ECONOMY_PURCHASE_INTENT RpcId = 12 // Purchase a store item by the player. RpcId_RPC_ID_ECONOMY_PURCHASE_ITEM RpcId = 13 // Restore a set of purchases. RpcId_RPC_ID_ECONOMY_PURCHASE_RESTORE RpcId = 59 // Get the current status on an Ad placement which may have been rewarded. RpcId_RPC_ID_ECONOMY_PLACEMENT_STATUS RpcId = 14 // Start a new Ad placement by placement ID. RpcId_RPC_ID_ECONOMY_PLACEMENT_START RpcId = 15 // Claim one or more achievements which have completed their progress. RpcId_RPC_ID_ACHIEVEMENTS_CLAIM RpcId = 16 // Get all achievements with progress accumulated by the player. RpcId_RPC_ID_ACHIEVEMENTS_GET RpcId = 17 // Update one or more achievements with the same progress amount. RpcId_RPC_ID_ACHIEVEMENTS_UPDATE RpcId = 18 // Get the energies and their current timers for the player. RpcId_RPC_ID_ENERGY_GET RpcId = 19 // Spend one or more energies for the player. RpcId_RPC_ID_ENERGY_SPEND RpcId = 20 // Grant one or more energies to the player. RpcId_RPC_ID_ENERGY_GRANT RpcId = 65 // Spend one or more energies with custom refill start times for the player. RpcId_RPC_ID_ENERGY_SPEND_WITH_REFILL_START_TIME RpcId = 125 // Get the tutorials and current progress step for the player. RpcId_RPC_ID_TUTORIALS_GET RpcId = 21 // Accept an offer to step through a tutorial. RpcId_RPC_ID_TUTORIALS_ACCEPT RpcId = 22 // Decline an offer to start a tutorial. RpcId_RPC_ID_TUTORIALS_DECLINE RpcId = 23 // Abandon progress on a tutorial. RpcId_RPC_ID_TUTORIALS_ABANDON RpcId = 24 // Update the current progress step in the tutorial by ID. RpcId_RPC_ID_TUTORIALS_UPDATE RpcId = 25 // Reset the state of all given tutorial IDs. RpcId_RPC_ID_TUTORIALS_RESET RpcId = 79 // Create a team which other players can join. RpcId_RPC_ID_TEAMS_CREATE RpcId = 26 // Update a team's properties. RpcId_RPC_ID_TEAMS_UPDATE RpcId = 121 // List one or more teams which the player can join. RpcId_RPC_ID_TEAMS_LIST RpcId = 27 // Search for teams by name or an optional short code. RpcId_RPC_ID_TEAMS_SEARCH RpcId = 28 // Retrieves a team by its TeamID. RpcId_RPC_ID_TEAMS_GET RpcId = 122 // Retrieve a list of teams associated with a given set of users. RpcId_RPC_ID_TEAMS_USER_TEAMS_LIST RpcId = 124 // Write a chat message to the Team's chat channel. RpcId_RPC_ID_TEAMS_WRITE_CHAT_MESSAGE RpcId = 29 // Get all store items defined in the team Virtual Store. RpcId_RPC_ID_TEAMS_STORE_GET RpcId = 94 // Purchase a team store item. RpcId_RPC_ID_TEAMS_STORE_PURCHASE RpcId = 95 // Get a team's wallet. RpcId_RPC_ID_TEAMS_WALLET_GET RpcId = 96 // Grant currencies to a team's wallet. RpcId_RPC_ID_TEAMS_WALLET_GRANT RpcId = 97 // Get a team's stats. RpcId_RPC_ID_TEAMS_STATS_GET RpcId = 98 // Update a team's stats. RpcId_RPC_ID_TEAMS_STATS_UPDATE RpcId = 99 // List all inventory items defined in the team codex. RpcId_RPC_ID_TEAMS_INVENTORY_LIST RpcId = 100 // List all inventory items owned by a team. RpcId_RPC_ID_TEAMS_INVENTORY_LIST_INVENTORY RpcId = 101 // Consume one or more inventory items owned by a team. RpcId_RPC_ID_TEAMS_INVENTORY_CONSUME RpcId = 102 // Grant one or more inventory items to a team. RpcId_RPC_ID_TEAMS_INVENTORY_GRANT RpcId = 103 // Update the properties on one or more team inventory items accessible to the player. RpcId_RPC_ID_TEAMS_INVENTORY_UPDATE RpcId = 104 // Claim one or more team achievements which have completed their progress. RpcId_RPC_ID_TEAMS_ACHIEVEMENTS_CLAIM RpcId = 105 // Get all team achievements with progress accumulated by the team. RpcId_RPC_ID_TEAMS_ACHIEVEMENTS_GET RpcId = 106 // Update one or more team achievements with the same progress amount. RpcId_RPC_ID_TEAMS_ACHIEVEMENTS_UPDATE RpcId = 107 // List available event leaderboards. RpcId_RPC_ID_TEAMS_EVENT_LEADERBOARD_LIST RpcId = 108 // Get a specified event leaderboard defined for the game. RpcId_RPC_ID_TEAMS_EVENT_LEADERBOARD_GET RpcId = 109 // Update an event leaderboard record for a user. RpcId_RPC_ID_TEAMS_EVENT_LEADERBOARD_UPDATE RpcId = 110 // Claim an event leaderboard reward for a user. RpcId_RPC_ID_TEAMS_EVENT_LEADERBOARD_CLAIM RpcId = 111 // Roll a new cohort for the specified event leaderboard. RpcId_RPC_ID_TEAMS_EVENT_LEADERBOARD_ROLL RpcId = 112 // DEBUG. Fill an event leaderboard with random user IDs. RpcId_RPC_ID_TEAMS_EVENT_LEADERBOARD_DEBUG_FILL RpcId = 113 // DEBUG. Assign random scores within a given range to users within the caller's cohort, except for the caller themselves. RpcId_RPC_ID_TEAMS_EVENT_LEADERBOARD_DEBUG_RANDOM_SCORES RpcId = 114 // List rewards available in a team reward mailbox. RpcId_RPC_ID_TEAMS_REWARD_MAILBOX_LIST RpcId = 115 // Claim a reward from the team reward mailbox, and optionally delete it. RpcId_RPC_ID_TEAMS_REWARD_MAILBOX_CLAIM RpcId = 116 // Delete a reward from the team reward mailbox, even if it is not yet claimed. RpcId_RPC_ID_TEAMS_REWARD_MAILBOX_DELETE RpcId = 117 // List available team gifts. RpcId_RPC_ID_TEAMS_GIFT_LIST RpcId = 118 // Contribute to an active team gift. RpcId_RPC_ID_TEAMS_GIFT_CONTRIBUTE RpcId = 119 // Claim the user's reward from an eligible team gift. RpcId_RPC_ID_TEAMS_GIFT_CLAIM RpcId = 120 // Create a random unlockable to assign to a slot (or overflow) unless there are no slots. RpcId_RPC_ID_UNLOCKABLES_CREATE RpcId = 30 // Get the unlockables which are currently in progress for the player. RpcId_RPC_ID_UNLOCKABLES_GET RpcId = 31 // Start the unlock timer for an unlockable in the specified slot. RpcId_RPC_ID_UNLOCKABLES_UNLOCK_START RpcId = 32 // Purchase an unlockable with soft currency based on the remainder cost calculated by the offset left to wait. RpcId_RPC_ID_UNLOCKABLES_PURCHASE_UNLOCK RpcId = 33 // Purchase a new slot to be used to store unlockables. RpcId_RPC_ID_UNLOCKABLES_PURCHASE_SLOT RpcId = 34 // Claim an unlockable whose start timer has completed or completion was fast tracked with a purchase. RpcId_RPC_ID_UNLOCKABLES_CLAIM RpcId = 35 // Add some set of unlockables to the unlock queue. RpcId_RPC_ID_UNLOCKABLES_QUEUE_ADD RpcId = 62 // Remove some set of unlockables from the unlock queue. RpcId_RPC_ID_UNLOCKABLES_QUEUE_REMOVE RpcId = 63 // Replace the unlock queue with the given set of unlockables. RpcId_RPC_ID_UNLOCKABLES_QUEUE_SET RpcId = 64 // Send feedback to the game's developers over email. RpcId_RPC_ID_BASE_RATE_APP RpcId = 36 // Update or create the mobile push device tokens and preferences for the player. RpcId_RPC_ID_BASE_SET_DEVICE_PREFS RpcId = 37 // Sync offline state. RpcId_RPC_ID_BASE_SYNC RpcId = 58 // Get the leaderboards defined for the game. RpcId_RPC_ID_LEADERBOARDS_CONFIG_GET RpcId = 38 // List available event leaderboards. RpcId_RPC_ID_EVENT_LEADERBOARD_LIST RpcId = 80 // Get a specified event leaderboard defined for the game. RpcId_RPC_ID_EVENT_LEADERBOARD_GET RpcId = 42 // Update an event leaderboard record for a user. RpcId_RPC_ID_EVENT_LEADERBOARD_UPDATE RpcId = 43 // Claim an event leaderboard reward for a user. RpcId_RPC_ID_EVENT_LEADERBOARD_CLAIM RpcId = 44 // Roll a new cohort for the specified event leaderboard. RpcId_RPC_ID_EVENT_LEADERBOARD_ROLL RpcId = 45 // DEBUG. Fill an event leaderboard with random user IDs. RpcId_RPC_ID_EVENT_LEADERBOARD_DEBUG_FILL RpcId = 60 // DEBUG. Assign random scores within a given range to users within the caller's cohort, except for the caller themselves. RpcId_RPC_ID_EVENT_LEADERBOARD_DEBUG_RANDOM_SCORES RpcId = 61 // Get all stats. RpcId_RPC_ID_STATS_GET RpcId = 46 // Update stats. RpcId_RPC_ID_STATS_UPDATE RpcId = 47 // Get progressions. RpcId_RPC_ID_PROGRESSIONS_GET RpcId = 48 // Purchase a progression for permanent unlock, if supported. RpcId_RPC_ID_PROGRESSIONS_PURCHASE RpcId = 49 // Update a progression to change its count, if supported. RpcId_RPC_ID_PROGRESSIONS_UPDATE RpcId = 50 // List incentives set up by the user. RpcId_RPC_ID_INCENTIVES_SENDER_LIST RpcId = 51 // Create a new incentive set up by the user. RpcId_RPC_ID_INCENTIVES_SENDER_CREATE RpcId = 52 // Delete an existing incentive set up by the user. RpcId_RPC_ID_INCENTIVES_SENDER_DELETE RpcId = 53 // Claim rewards for an existing incentive after it has been used by some recipient(s). RpcId_RPC_ID_INCENTIVES_SENDER_CLAIM RpcId = 54 // Get information about an existing incentive from a recipient's perspective. RpcId_RPC_ID_INCENTIVES_RECIPIENT_GET RpcId = 55 // Claim an existing incentive and receive associated rewards. RpcId_RPC_ID_INCENTIVES_RECIPIENT_CLAIM RpcId = 56 // Reset progression progress. RpcId_RPC_ID_PROGRESSIONS_RESET RpcId = 57 // Fetch all available auction templates. RpcId_RPC_ID_AUCTIONS_GET_TEMPLATES RpcId = 66 // List available auctions. RpcId_RPC_ID_AUCTIONS_LIST RpcId = 67 // Bid on an active auction. RpcId_RPC_ID_AUCTIONS_BID RpcId = 68 // Claim a completed auction where the user was the winning bidder. RpcId_RPC_ID_AUCTIONS_CLAIM_BID RpcId = 69 // Claim a completed auction where the user was the seller. RpcId_RPC_ID_AUCTIONS_CLAIM_CREATED RpcId = 70 // Cancel an in-progress auction. RpcId_RPC_ID_AUCTIONS_CANCEL RpcId = 71 // Create a new auction. RpcId_RPC_ID_AUCTIONS_CREATE RpcId = 72 // List auctions the user has bid on. RpcId_RPC_ID_AUCTIONS_LIST_BIDS RpcId = 73 // List auctions the user has created. RpcId_RPC_ID_AUCTIONS_LIST_CREATED RpcId = 74 // List all available streaks, including their current state and progress if any. RpcId_RPC_ID_STREAKS_LIST RpcId = 75 // Update one or more streaks with the given progress amounts. RpcId_RPC_ID_STREAKS_UPDATE RpcId = 76 // Claim the rewards from one or more streaks. RpcId_RPC_ID_STREAKS_CLAIM RpcId = 77 // Reset all progress for one or more streaks. RpcId_RPC_ID_STREAKS_RESET RpcId = 78 // List all available templates for challenges. RpcId_RPC_ID_CHALLENGES_GET_TEMPLATES RpcId = 81 // Get a challenge by id. RpcId_RPC_ID_CHALLENGE_GET RpcId = 82 // List all the user's challenges. RpcId_RPC_ID_CHALLENGE_LIST RpcId = 83 // Create a new challenge based on a template. RpcId_RPC_ID_CHALLENGE_CREATE RpcId = 84 // Join a challenge. RpcId_RPC_ID_CHALLENGE_JOIN RpcId = 85 // Leave a challenge. RpcId_RPC_ID_CHALLENGE_LEAVE RpcId = 86 // Submit a score to a challenge. RpcId_RPC_ID_CHALLENGE_SUBMIT_SCORE RpcId = 87 // Claim a reward of a challenge. RpcId_RPC_ID_CHALLENGE_CLAIM RpcId = 88 // Search for an open challenge to join. RpcId_RPC_ID_CHALLENGE_SEARCH RpcId = 89 // Invite more users to an ongoing challenge. RpcId_RPC_ID_CHALLENGE_INVITE RpcId = 90 // List rewards available in a reward mailbox. RpcId_RPC_ID_REWARD_MAILBOX_LIST RpcId = 91 // Claim a reward from the reward mailbox, and optionally delete it. RpcId_RPC_ID_REWARD_MAILBOX_CLAIM RpcId = 92 // Delete a reward from the reward mailbox, even if it is not yet claimed. RpcId_RPC_ID_REWARD_MAILBOX_DELETE RpcId = 93 // Webhook RPC to handle Rewarded Video Ad placement success callbacks. RpcId_RPC_ID_ECONOMY_PLACEMENT_SUCCESS RpcId = 1001 // Webhook RPC to handle Rewarded Video Ad placement failure callbacks. RpcId_RPC_ID_ECONOMY_PLACEMENT_FAIL RpcId = 1002 // RPC to upload Hiro system configurations for the storage personalizer. RpcId_RPC_ID_STORAGE_PERSONALIZER_UPLOAD RpcId = 1003 )
func (RpcId) Descriptor ¶
func (RpcId) Descriptor() protoreflect.EnumDescriptor
func (RpcId) EnumDescriptor
deprecated
func (RpcId) Number ¶
func (x RpcId) Number() protoreflect.EnumNumber
func (RpcId) Type ¶
func (RpcId) Type() protoreflect.EnumType
type RpcSocketId ¶ added in v1.18.0
type RpcSocketId int32
const ( RpcSocketId_RPC_SOCKET_ID_UNSPECIFIED RpcSocketId = 0 // Follow auctions a user has an interest in, bid or own. Must be called via a connected socket. RpcSocketId_RPC_SOCKET_ID_AUCTIONS_FOLLOW RpcSocketId = 1 // Bid on an auction and follow it for further updates. RpcSocketId_RPC_SOCKET_ID_AUCTIONS_BID RpcSocketId = 2 )
func (RpcSocketId) Descriptor ¶ added in v1.18.0
func (RpcSocketId) Descriptor() protoreflect.EnumDescriptor
func (RpcSocketId) Enum ¶ added in v1.18.0
func (x RpcSocketId) Enum() *RpcSocketId
func (RpcSocketId) EnumDescriptor
deprecated
added in
v1.18.0
func (RpcSocketId) EnumDescriptor() ([]byte, []int)
Deprecated: Use RpcSocketId.Descriptor instead.
func (RpcSocketId) Number ¶ added in v1.18.0
func (x RpcSocketId) Number() protoreflect.EnumNumber
func (RpcSocketId) String ¶ added in v1.18.0
func (x RpcSocketId) String() string
func (RpcSocketId) Type ¶ added in v1.18.0
func (RpcSocketId) Type() protoreflect.EnumType
type SatoriPersonalizer ¶
type SatoriPersonalizer struct {
// contains filtered or unexported fields
}
func NewSatoriPersonalizer ¶ added in v1.8.0
func NewSatoriPersonalizer(ctx context.Context, opts ...SatoriPersonalizerOption) *SatoriPersonalizer
func (*SatoriPersonalizer) Authenticate ¶ added in v1.20.0
func (p *SatoriPersonalizer) Authenticate(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, created bool)
func (*SatoriPersonalizer) IsPublishAchievementsEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishAchievementsEvents() bool
func (*SatoriPersonalizer) IsPublishAuctionsEvents ¶ added in v1.18.0
func (p *SatoriPersonalizer) IsPublishAuctionsEvents() bool
func (*SatoriPersonalizer) IsPublishAuthenticateRequest ¶ added in v1.8.0
func (p *SatoriPersonalizer) IsPublishAuthenticateRequest() bool
func (*SatoriPersonalizer) IsPublishAuthenticateRequestWithSession ¶ added in v1.25.0
func (p *SatoriPersonalizer) IsPublishAuthenticateRequestWithSession() bool
func (*SatoriPersonalizer) IsPublishBaseEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishBaseEvents() bool
func (*SatoriPersonalizer) IsPublishChallengeEvents ¶ added in v1.26.0
func (p *SatoriPersonalizer) IsPublishChallengeEvents() bool
func (*SatoriPersonalizer) IsPublishEconomyEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishEconomyEvents() bool
func (*SatoriPersonalizer) IsPublishEnergyEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishEnergyEvents() bool
func (*SatoriPersonalizer) IsPublishEventLeaderboardsEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishEventLeaderboardsEvents() bool
func (*SatoriPersonalizer) IsPublishIncentivesEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishIncentivesEvents() bool
func (*SatoriPersonalizer) IsPublishInventoryEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishInventoryEvents() bool
func (*SatoriPersonalizer) IsPublishLeaderboardsEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishLeaderboardsEvents() bool
func (*SatoriPersonalizer) IsPublishProgressionEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishProgressionEvents() bool
func (*SatoriPersonalizer) IsPublishStatsEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishStatsEvents() bool
func (*SatoriPersonalizer) IsPublishStreaksEvents ¶ added in v1.19.0
func (p *SatoriPersonalizer) IsPublishStreaksEvents() bool
func (*SatoriPersonalizer) IsPublishTeamsEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishTeamsEvents() bool
func (*SatoriPersonalizer) IsPublishTutorialsEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishTutorialsEvents() bool
func (*SatoriPersonalizer) IsPublishUnlockablesEvents ¶ added in v1.9.0
func (p *SatoriPersonalizer) IsPublishUnlockablesEvents() bool
func (*SatoriPersonalizer) Send ¶ added in v1.20.0
func (p *SatoriPersonalizer) Send(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, events []*PublisherEvent)
type SatoriPersonalizerCache ¶ added in v1.11.0
type SatoriPersonalizerCache struct {
// contains filtered or unexported fields
}
type SatoriPersonalizerOption ¶ added in v1.9.0
type SatoriPersonalizerOption interface {
// contains filtered or unexported methods
}
func SatoriPersonalizerNoCache ¶ added in v1.11.0
func SatoriPersonalizerNoCache() SatoriPersonalizerOption
func SatoriPersonalizerPublishAchievementsEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishAchievementsEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishAllEvents ¶ added in v1.18.0
func SatoriPersonalizerPublishAllEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishAuctionsEvents ¶ added in v1.18.0
func SatoriPersonalizerPublishAuctionsEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishAuthenticateEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishAuthenticateEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishAuthenticateEventsWithSession ¶ added in v1.25.0
func SatoriPersonalizerPublishAuthenticateEventsWithSession() SatoriPersonalizerOption
func SatoriPersonalizerPublishBaseEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishBaseEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishChallengeEvents ¶ added in v1.26.0
func SatoriPersonalizerPublishChallengeEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishEconomyEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishEconomyEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishEnergyEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishEnergyEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishEventLeaderboardsEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishEventLeaderboardsEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishIncentivesEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishIncentivesEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishInventoryEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishInventoryEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishLeaderboardsEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishLeaderboardsEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishProgressionEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishProgressionEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishStatsEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishStatsEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishStreaksEvents ¶ added in v1.19.0
func SatoriPersonalizerPublishStreaksEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishTeamsEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishTeamsEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishTutorialsEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishTutorialsEvents() SatoriPersonalizerOption
func SatoriPersonalizerPublishUnlockablesEvents ¶ added in v1.9.0
func SatoriPersonalizerPublishUnlockablesEvents() SatoriPersonalizerOption
type Stat ¶ added in v1.2.0
type Stat struct {
// Name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Indicator if this belongs to public or private stats.
Public bool `protobuf:"varint,2,opt,name=public,proto3" json:"public,omitempty"`
// Update time in UTC seconds.
UpdateTimeSec int64 `protobuf:"varint,3,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Current value.
Value int64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"`
// Number of values submitted.
Count int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
// Total of all submitted values.
Total int64 `protobuf:"varint,6,opt,name=total,proto3" json:"total,omitempty"`
// Smallest value submitted.
Min int64 `protobuf:"varint,7,opt,name=min,proto3" json:"min,omitempty"`
// Largest value submitted.
Max int64 `protobuf:"varint,8,opt,name=max,proto3" json:"max,omitempty"`
// First value submitted.
First int64 `protobuf:"varint,9,opt,name=first,proto3" json:"first,omitempty"`
// Latest value submitted.
Last int64 `protobuf:"varint,10,opt,name=last,proto3" json:"last,omitempty"`
// Additional properties.
AdditionalProperties *structpb.Struct `protobuf:"bytes,11,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
// contains filtered or unexported fields
}
A single stat with associated information.
func (*Stat) Descriptor
deprecated
added in
v1.2.0
func (*Stat) GetAdditionalProperties ¶ added in v1.21.0
func (*Stat) GetUpdateTimeSec ¶ added in v1.2.0
func (*Stat) ProtoMessage ¶ added in v1.2.0
func (*Stat) ProtoMessage()
func (*Stat) ProtoReflect ¶ added in v1.2.0
func (x *Stat) ProtoReflect() protoreflect.Message
type StatList ¶ added in v1.2.0
type StatList struct {
// Public stat names and their associated data.
Public map[string]*Stat `` /* 153-byte string literal not displayed */
// Private stat names and their associated data.
Private map[string]*Stat `` /* 155-byte string literal not displayed */
// contains filtered or unexported fields
}
A list of stats all belonging to one user.
func (*StatList) Descriptor
deprecated
added in
v1.2.0
func (*StatList) GetPrivate ¶ added in v1.2.0
func (*StatList) ProtoMessage ¶ added in v1.2.0
func (*StatList) ProtoMessage()
func (*StatList) ProtoReflect ¶ added in v1.2.0
func (x *StatList) ProtoReflect() protoreflect.Message
type StatUpdate ¶ added in v1.2.0
type StatUpdate struct {
// Name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Value.
Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
// Operator.
Operator StatUpdateOperator `protobuf:"varint,3,opt,name=operator,proto3,enum=hiro.StatUpdateOperator" json:"operator,omitempty"`
// contains filtered or unexported fields
}
Describes a single stat update.
func (*StatUpdate) Descriptor
deprecated
added in
v1.2.0
func (*StatUpdate) Descriptor() ([]byte, []int)
Deprecated: Use StatUpdate.ProtoReflect.Descriptor instead.
func (*StatUpdate) GetName ¶ added in v1.2.0
func (x *StatUpdate) GetName() string
func (*StatUpdate) GetOperator ¶ added in v1.2.0
func (x *StatUpdate) GetOperator() StatUpdateOperator
func (*StatUpdate) GetValue ¶ added in v1.2.0
func (x *StatUpdate) GetValue() int64
func (*StatUpdate) ProtoMessage ¶ added in v1.2.0
func (*StatUpdate) ProtoMessage()
func (*StatUpdate) ProtoReflect ¶ added in v1.2.0
func (x *StatUpdate) ProtoReflect() protoreflect.Message
func (*StatUpdate) Reset ¶ added in v1.2.0
func (x *StatUpdate) Reset()
func (*StatUpdate) String ¶ added in v1.2.0
func (x *StatUpdate) String() string
type StatUpdateOperator ¶ added in v1.2.0
type StatUpdateOperator int32
Indicate how a stats update should be handled.
const ( // Unspecified. Defaults to Set. StatUpdateOperator_STAT_UPDATE_OPERATOR_UNSPECIFIED StatUpdateOperator = 0 // Set the given value, overwriting any previous one. StatUpdateOperator_STAT_UPDATE_OPERATOR_SET StatUpdateOperator = 1 // Increment or decrement the existing value by the given amount. Equivalent to Set if no previous value existed. StatUpdateOperator_STAT_UPDATE_OPERATOR_DELTA StatUpdateOperator = 2 // Use the new value if it's lower than the existing one. Equivalent to Set if no previous value existed. StatUpdateOperator_STAT_UPDATE_OPERATOR_MIN StatUpdateOperator = 3 // Use the new value if it's higher than the existing one. Equivalent to Set if no previous value existed. StatUpdateOperator_STAT_UPDATE_OPERATOR_MAX StatUpdateOperator = 4 )
func (StatUpdateOperator) Descriptor ¶ added in v1.2.0
func (StatUpdateOperator) Descriptor() protoreflect.EnumDescriptor
func (StatUpdateOperator) Enum ¶ added in v1.2.0
func (x StatUpdateOperator) Enum() *StatUpdateOperator
func (StatUpdateOperator) EnumDescriptor
deprecated
added in
v1.2.0
func (StatUpdateOperator) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatUpdateOperator.Descriptor instead.
func (StatUpdateOperator) Number ¶ added in v1.2.0
func (x StatUpdateOperator) Number() protoreflect.EnumNumber
func (StatUpdateOperator) String ¶ added in v1.2.0
func (x StatUpdateOperator) String() string
func (StatUpdateOperator) Type ¶ added in v1.2.0
func (StatUpdateOperator) Type() protoreflect.EnumType
type StatUpdateRequest ¶ added in v1.2.0
type StatUpdateRequest struct {
// Public stat updates.
Public []*StatUpdate `protobuf:"bytes,1,rep,name=public,proto3" json:"public,omitempty"`
// Private stat updates.
Private []*StatUpdate `protobuf:"bytes,2,rep,name=private,proto3" json:"private,omitempty"`
// contains filtered or unexported fields
}
Request an optionally batched stats update.
func (*StatUpdateRequest) Descriptor
deprecated
added in
v1.2.0
func (*StatUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatUpdateRequest.ProtoReflect.Descriptor instead.
func (*StatUpdateRequest) GetPrivate ¶ added in v1.2.0
func (x *StatUpdateRequest) GetPrivate() []*StatUpdate
func (*StatUpdateRequest) GetPublic ¶ added in v1.2.0
func (x *StatUpdateRequest) GetPublic() []*StatUpdate
func (*StatUpdateRequest) ProtoMessage ¶ added in v1.2.0
func (*StatUpdateRequest) ProtoMessage()
func (*StatUpdateRequest) ProtoReflect ¶ added in v1.2.0
func (x *StatUpdateRequest) ProtoReflect() protoreflect.Message
func (*StatUpdateRequest) Reset ¶ added in v1.2.0
func (x *StatUpdateRequest) Reset()
func (*StatUpdateRequest) String ¶ added in v1.2.0
func (x *StatUpdateRequest) String() string
type StatsConfig ¶ added in v1.2.0
type StatsConfig struct {
Whitelist []string `json:"whitelist,omitempty"`
StatsPublic map[string]*StatsConfigStat `json:"stats_public,omitempty"`
StatsPrivate map[string]*StatsConfigStat `json:"stats_private,omitempty"`
}
StatsConfig is the data definition for a StatsSystem type.
type StatsConfigStat ¶ added in v1.21.0
type StatsSystem ¶
type StatsSystem interface {
System
// List all private stats for one or more users.
List(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, userIDs []string) (stats map[string]*StatList, err error)
// Update private stats for a particular user.
Update(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, publicStats []*StatUpdate, privateStats []*StatUpdate) (stats *StatList, err error)
}
type StoragePersonalizer ¶ added in v1.8.0
func NewStoragePersonalizer ¶ added in v1.8.0
func NewStoragePersonalizer(logger runtime.Logger, cacheExpirySec int, collection string, initializer runtime.Initializer, register bool) *StoragePersonalizer
func NewStoragePersonalizerDefault ¶ added in v1.8.0
func NewStoragePersonalizerDefault(logger runtime.Logger, initializer runtime.Initializer, register bool) *StoragePersonalizer
type StoragePersonalizerCachedStorageObject ¶ added in v1.8.0
type StoragePersonalizerCachedStorageObject struct {
// contains filtered or unexported fields
}
type Streak ¶ added in v1.19.0
type Streak struct {
// Unique identifier.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Display name for this streak.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// A user-facing description for this streak.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Current overall progress count.
Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
// Maximum allowed overall progress count.
MaxCount int64 `protobuf:"varint,5,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"`
// Progress count submitted during this reset.
CountCurrentReset int64 `protobuf:"varint,6,opt,name=count_current_reset,json=countCurrentReset,proto3" json:"count_current_reset,omitempty"`
// Maximum progress count allowed during any single reset.
MaxCountCurrentReset int64 `` /* 126-byte string literal not displayed */
// How much overall count is lost per idle reset.
IdleCountDecayReset int64 `protobuf:"varint,8,opt,name=idle_count_decay_reset,json=idleCountDecayReset,proto3" json:"idle_count_decay_reset,omitempty"`
// How much overall count can be lost total in any contiguous idle period.
MaxIdleCountDecay int64 `protobuf:"varint,9,opt,name=max_idle_count_decay,json=maxIdleCountDecay,proto3" json:"max_idle_count_decay,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the streak's last reset period was.
PrevResetTimeSec int64 `protobuf:"varint,10,opt,name=prev_reset_time_sec,json=prevResetTimeSec,proto3" json:"prev_reset_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the streak's next reset period is.
ResetTimeSec int64 `protobuf:"varint,11,opt,name=reset_time_sec,json=resetTimeSec,proto3" json:"reset_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the streak was first registered for this user.
CreateTimeSec int64 `protobuf:"varint,12,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the streak was last updated.
UpdateTimeSec int64 `protobuf:"varint,13,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the streak was last claimed.
ClaimTimeSec int64 `protobuf:"varint,14,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the streak becomes available for use.
StartTimeSec int64 `protobuf:"varint,15,opt,name=start_time_sec,json=startTimeSec,proto3" json:"start_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the streak is no longer available for use.
EndTimeSec int64 `protobuf:"varint,16,opt,name=end_time_sec,json=endTimeSec,proto3" json:"end_time_sec,omitempty"`
// All rewards configured for this streak.
Rewards []*StreakAvailableReward `protobuf:"bytes,17,rep,name=rewards,proto3" json:"rewards,omitempty"`
// Rewards currently available to claim for this streak.
AvailableRewards []*StreakAvailableReward `protobuf:"bytes,18,rep,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// Claimed rewards.
ClaimedRewards []*StreakReward `protobuf:"bytes,19,rep,name=claimed_rewards,json=claimedRewards,proto3" json:"claimed_rewards,omitempty"`
// Flag indicating if this streak can currently be claimed to obtain some rewards.
CanClaim bool `protobuf:"varint,20,opt,name=can_claim,json=canClaim,proto3" json:"can_claim,omitempty"`
// Flag indicating if submitting a count update is allowed.
CanUpdate bool `protobuf:"varint,21,opt,name=can_update,json=canUpdate,proto3" json:"can_update,omitempty"`
// Flag indicating if resetting the streak is allowed.
CanReset bool `protobuf:"varint,22,opt,name=can_reset,json=canReset,proto3" json:"can_reset,omitempty"`
// Last count that was claimed.
ClaimCount int64 `protobuf:"varint,23,opt,name=claim_count,json=claimCount,proto3" json:"claim_count,omitempty"`
// contains filtered or unexported fields
}
An individual streak, along with its status and progress if any.
func (*Streak) Descriptor
deprecated
added in
v1.19.0
func (*Streak) GetAvailableRewards ¶ added in v1.19.0
func (x *Streak) GetAvailableRewards() []*StreakAvailableReward
func (*Streak) GetCanClaim ¶ added in v1.19.0
func (*Streak) GetCanReset ¶ added in v1.19.0
func (*Streak) GetCanUpdate ¶ added in v1.19.0
func (*Streak) GetClaimCount ¶ added in v1.22.0
func (*Streak) GetClaimTimeSec ¶ added in v1.19.0
func (*Streak) GetClaimedRewards ¶ added in v1.19.0
func (x *Streak) GetClaimedRewards() []*StreakReward
func (*Streak) GetCountCurrentReset ¶ added in v1.19.0
func (*Streak) GetCreateTimeSec ¶ added in v1.19.0
func (*Streak) GetDescription ¶ added in v1.19.0
func (*Streak) GetEndTimeSec ¶ added in v1.19.0
func (*Streak) GetIdleCountDecayReset ¶ added in v1.19.0
func (*Streak) GetMaxCount ¶ added in v1.19.0
func (*Streak) GetMaxCountCurrentReset ¶ added in v1.19.0
func (*Streak) GetMaxIdleCountDecay ¶ added in v1.19.0
func (*Streak) GetPrevResetTimeSec ¶ added in v1.19.0
func (*Streak) GetResetTimeSec ¶ added in v1.19.0
func (*Streak) GetRewards ¶ added in v1.19.0
func (x *Streak) GetRewards() []*StreakAvailableReward
func (*Streak) GetStartTimeSec ¶ added in v1.19.0
func (*Streak) GetUpdateTimeSec ¶ added in v1.19.0
func (*Streak) ProtoMessage ¶ added in v1.19.0
func (*Streak) ProtoMessage()
func (*Streak) ProtoReflect ¶ added in v1.19.0
func (x *Streak) ProtoReflect() protoreflect.Message
type StreakAvailableReward ¶ added in v1.19.0
type StreakAvailableReward struct {
// Minimum streak progress count required for this reward, inclusive.
CountMin int64 `protobuf:"varint,1,opt,name=count_min,json=countMin,proto3" json:"count_min,omitempty"`
// Maximum streak progress count required for this reward, inclusive.
CountMax int64 `protobuf:"varint,2,opt,name=count_max,json=countMax,proto3" json:"count_max,omitempty"`
// Available reward contents.
Reward *AvailableRewards `protobuf:"bytes,3,opt,name=reward,proto3" json:"reward,omitempty"`
// Whether this reward can be claimed at each count between count_min and count_max, both inclusive.
Repeatable bool `protobuf:"varint,4,opt,name=repeatable,proto3" json:"repeatable,omitempty"`
// contains filtered or unexported fields
}
Represents an available reward based on the progress of a streak.
func (*StreakAvailableReward) Descriptor
deprecated
added in
v1.19.0
func (*StreakAvailableReward) Descriptor() ([]byte, []int)
Deprecated: Use StreakAvailableReward.ProtoReflect.Descriptor instead.
func (*StreakAvailableReward) GetCountMax ¶ added in v1.19.0
func (x *StreakAvailableReward) GetCountMax() int64
func (*StreakAvailableReward) GetCountMin ¶ added in v1.19.0
func (x *StreakAvailableReward) GetCountMin() int64
func (*StreakAvailableReward) GetRepeatable ¶ added in v1.26.0
func (x *StreakAvailableReward) GetRepeatable() bool
func (*StreakAvailableReward) GetReward ¶ added in v1.19.0
func (x *StreakAvailableReward) GetReward() *AvailableRewards
func (*StreakAvailableReward) ProtoMessage ¶ added in v1.19.0
func (*StreakAvailableReward) ProtoMessage()
func (*StreakAvailableReward) ProtoReflect ¶ added in v1.19.0
func (x *StreakAvailableReward) ProtoReflect() protoreflect.Message
func (*StreakAvailableReward) Reset ¶ added in v1.19.0
func (x *StreakAvailableReward) Reset()
func (*StreakAvailableReward) String ¶ added in v1.19.0
func (x *StreakAvailableReward) String() string
type StreakReward ¶ added in v1.19.0
type StreakReward struct {
// Minimum streak progress count required for this reward, inclusive.
CountMin int64 `protobuf:"varint,1,opt,name=count_min,json=countMin,proto3" json:"count_min,omitempty"`
// Maximum streak progress count required for this reward, inclusive.
CountMax int64 `protobuf:"varint,2,opt,name=count_max,json=countMax,proto3" json:"count_max,omitempty"`
// Reward that was actually granted.
Reward *Reward `protobuf:"bytes,3,opt,name=reward,proto3" json:"reward,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when this reward was claimed.
ClaimTimeSec int64 `protobuf:"varint,4,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// Whether this reward can be claimed at each count between count_min and count_max, both inclusive.
Repeatable bool `protobuf:"varint,5,opt,name=repeatable,proto3" json:"repeatable,omitempty"`
// contains filtered or unexported fields
}
A single claimed streak reward.
func (*StreakReward) Descriptor
deprecated
added in
v1.19.0
func (*StreakReward) Descriptor() ([]byte, []int)
Deprecated: Use StreakReward.ProtoReflect.Descriptor instead.
func (*StreakReward) GetClaimTimeSec ¶ added in v1.19.0
func (x *StreakReward) GetClaimTimeSec() int64
func (*StreakReward) GetCountMax ¶ added in v1.19.0
func (x *StreakReward) GetCountMax() int64
func (*StreakReward) GetCountMin ¶ added in v1.19.0
func (x *StreakReward) GetCountMin() int64
func (*StreakReward) GetRepeatable ¶ added in v1.26.0
func (x *StreakReward) GetRepeatable() bool
func (*StreakReward) GetReward ¶ added in v1.19.0
func (x *StreakReward) GetReward() *Reward
func (*StreakReward) ProtoMessage ¶ added in v1.19.0
func (*StreakReward) ProtoMessage()
func (*StreakReward) ProtoReflect ¶ added in v1.19.0
func (x *StreakReward) ProtoReflect() protoreflect.Message
func (*StreakReward) Reset ¶ added in v1.19.0
func (x *StreakReward) Reset()
func (*StreakReward) String ¶ added in v1.19.0
func (x *StreakReward) String() string
type StreaksClaimRequest ¶ added in v1.19.0
type StreaksClaimRequest struct {
// List of streak identifiers to claim.
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
Request to claim rewards for one or more streaks.
func (*StreaksClaimRequest) Descriptor
deprecated
added in
v1.19.0
func (*StreaksClaimRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreaksClaimRequest.ProtoReflect.Descriptor instead.
func (*StreaksClaimRequest) GetIds ¶ added in v1.19.0
func (x *StreaksClaimRequest) GetIds() []string
func (*StreaksClaimRequest) ProtoMessage ¶ added in v1.19.0
func (*StreaksClaimRequest) ProtoMessage()
func (*StreaksClaimRequest) ProtoReflect ¶ added in v1.19.0
func (x *StreaksClaimRequest) ProtoReflect() protoreflect.Message
func (*StreaksClaimRequest) Reset ¶ added in v1.19.0
func (x *StreaksClaimRequest) Reset()
func (*StreaksClaimRequest) String ¶ added in v1.19.0
func (x *StreaksClaimRequest) String() string
type StreaksConfig ¶ added in v1.19.0
type StreaksConfig struct {
Streaks map[string]*StreaksConfigStreak `json:"streaks,omitempty"`
}
StreaksConfig is the data definition for a StreaksSystem type.
type StreaksConfigStreak ¶ added in v1.19.0
type StreaksConfigStreak struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Count int64 `json:"count,omitempty"`
MaxCount int64 `json:"max_count,omitempty"`
MaxCountCurrentReset int64 `json:"max_count_current_reset,omitempty"`
IdleCountDecayReset int64 `json:"idle_count_decay_reset,omitempty"`
MaxIdleCountDecay int64 `json:"max_idle_count_decay,omitempty"`
ResetCronexpr string `json:"reset_cronexpr,omitempty"`
TimeOffsetSec int64 `json:"time_offset_sec,omitempty"`
Rewards []*StreaksConfigStreakReward `json:"rewards,omitempty"`
StartTimeSec int64 `json:"start_time_sec,omitempty"`
EndTimeSec int64 `json:"end_time_sec,omitempty"`
Disabled bool `json:"disabled,omitempty"`
}
type StreaksConfigStreakReward ¶ added in v1.19.0
type StreaksConfigStreakReward struct {
CountMin int64 `json:"count_min,omitempty"`
CountMax int64 `json:"count_max,omitempty"`
Reward *EconomyConfigReward `json:"reward,omitempty"`
Repeatable bool `json:"repeatable,omitempty"`
}
type StreaksList ¶ added in v1.19.0
type StreaksList struct {
// All available streaks for the caller.
Streaks map[string]*Streak `` /* 155-byte string literal not displayed */
// contains filtered or unexported fields
}
A list of all streaks for a given user.
func (*StreaksList) Descriptor
deprecated
added in
v1.19.0
func (*StreaksList) Descriptor() ([]byte, []int)
Deprecated: Use StreaksList.ProtoReflect.Descriptor instead.
func (*StreaksList) GetStreaks ¶ added in v1.19.0
func (x *StreaksList) GetStreaks() map[string]*Streak
func (*StreaksList) ProtoMessage ¶ added in v1.19.0
func (*StreaksList) ProtoMessage()
func (*StreaksList) ProtoReflect ¶ added in v1.19.0
func (x *StreaksList) ProtoReflect() protoreflect.Message
func (*StreaksList) Reset ¶ added in v1.19.0
func (x *StreaksList) Reset()
func (*StreaksList) String ¶ added in v1.19.0
func (x *StreaksList) String() string
type StreaksResetRequest ¶ added in v1.19.0
type StreaksResetRequest struct {
// List of streak identifiers to reset.
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
Request to fully reset the progress of one or more streaks.
func (*StreaksResetRequest) Descriptor
deprecated
added in
v1.19.0
func (*StreaksResetRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreaksResetRequest.ProtoReflect.Descriptor instead.
func (*StreaksResetRequest) GetIds ¶ added in v1.19.0
func (x *StreaksResetRequest) GetIds() []string
func (*StreaksResetRequest) ProtoMessage ¶ added in v1.19.0
func (*StreaksResetRequest) ProtoMessage()
func (*StreaksResetRequest) ProtoReflect ¶ added in v1.19.0
func (x *StreaksResetRequest) ProtoReflect() protoreflect.Message
func (*StreaksResetRequest) Reset ¶ added in v1.19.0
func (x *StreaksResetRequest) Reset()
func (*StreaksResetRequest) String ¶ added in v1.19.0
func (x *StreaksResetRequest) String() string
type StreaksSystem ¶ added in v1.19.0
type StreaksSystem interface {
System
// List all streaks and their current state and progress for a given user.
List(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string) (streaks map[string]*Streak, err error)
// Update one or more streaks with the indicated counts for the given user.
Update(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, streakIDs map[string]int64) (streaks map[string]*Streak, err error)
// Claim rewards for one or more streaks for the given user.
Claim(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, streakIDs []string) (streaks map[string]*Streak, err error)
// Reset progress on selected streaks for the given user.
Reset(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, streakIDs []string) (streaks map[string]*Streak, err error)
// SetOnClaimReward sets a custom reward function which will run after a streak's reward is rolled.
SetOnClaimReward(fn OnReward[*StreaksConfigStreak])
}
type StreaksUpdateRequest ¶ added in v1.19.0
type StreaksUpdateRequest struct {
// Update one or more streaks by identifier.
Updates map[string]int64 `` /* 156-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to update one or more streaks with new progress.
func (*StreaksUpdateRequest) Descriptor
deprecated
added in
v1.19.0
func (*StreaksUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreaksUpdateRequest.ProtoReflect.Descriptor instead.
func (*StreaksUpdateRequest) GetUpdates ¶ added in v1.19.0
func (x *StreaksUpdateRequest) GetUpdates() map[string]int64
func (*StreaksUpdateRequest) ProtoMessage ¶ added in v1.19.0
func (*StreaksUpdateRequest) ProtoMessage()
func (*StreaksUpdateRequest) ProtoReflect ¶ added in v1.19.0
func (x *StreaksUpdateRequest) ProtoReflect() protoreflect.Message
func (*StreaksUpdateRequest) Reset ¶ added in v1.19.0
func (x *StreaksUpdateRequest) Reset()
func (*StreaksUpdateRequest) String ¶ added in v1.19.0
func (x *StreaksUpdateRequest) String() string
type StreamEnvelope ¶ added in v1.18.0
type StreamEnvelope struct {
// Types that are assignable to Message:
//
// *StreamEnvelope_AuctionBid
Message isStreamEnvelope_Message `protobuf_oneof:"message"`
// contains filtered or unexported fields
}
Server to client stream envelope.
func (*StreamEnvelope) Descriptor
deprecated
added in
v1.18.0
func (*StreamEnvelope) Descriptor() ([]byte, []int)
Deprecated: Use StreamEnvelope.ProtoReflect.Descriptor instead.
func (*StreamEnvelope) GetAuctionBid ¶ added in v1.18.0
func (x *StreamEnvelope) GetAuctionBid() *AuctionNotificationBid
func (*StreamEnvelope) GetMessage ¶ added in v1.18.0
func (m *StreamEnvelope) GetMessage() isStreamEnvelope_Message
func (*StreamEnvelope) ProtoMessage ¶ added in v1.18.0
func (*StreamEnvelope) ProtoMessage()
func (*StreamEnvelope) ProtoReflect ¶ added in v1.18.0
func (x *StreamEnvelope) ProtoReflect() protoreflect.Message
func (*StreamEnvelope) Reset ¶ added in v1.18.0
func (x *StreamEnvelope) Reset()
func (*StreamEnvelope) String ¶ added in v1.18.0
func (x *StreamEnvelope) String() string
type StreamEnvelope_AuctionBid ¶ added in v1.18.0
type StreamEnvelope_AuctionBid struct {
AuctionBid *AuctionNotificationBid `protobuf:"bytes,1,opt,name=auction_bid,json=auctionBid,proto3,oneof"`
}
type SubAchievement ¶
type SubAchievement struct {
// The category to group the sub-achievement together with others.
Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
// The UNIX timestamp for when the sub-achievement reward was claimed, or zero if unclaimed.
ClaimTimeSec int64 `protobuf:"varint,2,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// The count of the sub-achievement.
Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
// The UNIX timestamp for the current server time.
CurrentTimeSec int64 `protobuf:"varint,4,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// A description of the sub-achievement. May be an i18n code.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// The UNIX timestamp when this sub-achievement will expire. This may be before its next reset. A zero means it does not expire.
ExpireTimeSec int64 `protobuf:"varint,6,opt,name=expire_time_sec,json=expireTimeSec,proto3" json:"expire_time_sec,omitempty"`
// The ID of the sub-achievement.
Id string `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
// The maximum count of the sub-achievement.
MaxCount int64 `protobuf:"varint,8,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"`
// The name of the sub-achievement. May be an i18n code.
Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"`
// The IDs which are a precondition on the progress to be made on this sub-achievement.
PreconditionIds []string `protobuf:"bytes,10,rep,name=precondition_ids,json=preconditionIds,proto3" json:"precondition_ids,omitempty"`
// The UNIX timestamp when this sub-achievement will reset.
ResetTimeSec int64 `protobuf:"varint,11,opt,name=reset_time_sec,json=resetTimeSec,proto3" json:"reset_time_sec,omitempty"`
// The outcome (rolled) reward for the achievement, if any.
Reward *Reward `protobuf:"bytes,12,opt,name=reward,proto3" json:"reward,omitempty"`
// The available reward and its probabilities.
AvailableRewards *AvailableRewards `protobuf:"bytes,13,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 210-byte string literal not displayed */
// Whether the sub-achievement reward will be given automatically upon completion.
AutoClaim bool `protobuf:"varint,15,opt,name=auto_claim,json=autoClaim,proto3" json:"auto_claim,omitempty"`
// Whether the sub-achievement will reset after completion.
AutoReset bool `protobuf:"varint,16,opt,name=auto_reset,json=autoReset,proto3" json:"auto_reset,omitempty"`
// The UNIX timestamp when this sub-achievement was last updated.
UpdateTimeSec int64 `protobuf:"varint,17,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// True if the sub-achievement is in an active period, false otherwise.
IsActive bool `protobuf:"varint,18,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
// contains filtered or unexported fields
}
A sub-achievement is an achievement which belongs as part of a parent achievement.
func (*SubAchievement) Descriptor
deprecated
func (*SubAchievement) Descriptor() ([]byte, []int)
Deprecated: Use SubAchievement.ProtoReflect.Descriptor instead.
func (*SubAchievement) GetAdditionalProperties ¶
func (x *SubAchievement) GetAdditionalProperties() map[string]string
func (*SubAchievement) GetAutoClaim ¶ added in v1.15.0
func (x *SubAchievement) GetAutoClaim() bool
func (*SubAchievement) GetAutoReset ¶ added in v1.15.0
func (x *SubAchievement) GetAutoReset() bool
func (*SubAchievement) GetAvailableRewards ¶
func (x *SubAchievement) GetAvailableRewards() *AvailableRewards
func (*SubAchievement) GetCategory ¶
func (x *SubAchievement) GetCategory() string
func (*SubAchievement) GetClaimTimeSec ¶
func (x *SubAchievement) GetClaimTimeSec() int64
func (*SubAchievement) GetCount ¶
func (x *SubAchievement) GetCount() int64
func (*SubAchievement) GetCurrentTimeSec ¶
func (x *SubAchievement) GetCurrentTimeSec() int64
func (*SubAchievement) GetDescription ¶
func (x *SubAchievement) GetDescription() string
func (*SubAchievement) GetExpireTimeSec ¶
func (x *SubAchievement) GetExpireTimeSec() int64
func (*SubAchievement) GetId ¶
func (x *SubAchievement) GetId() string
func (*SubAchievement) GetIsActive ¶ added in v1.29.0
func (x *SubAchievement) GetIsActive() bool
func (*SubAchievement) GetMaxCount ¶
func (x *SubAchievement) GetMaxCount() int64
func (*SubAchievement) GetName ¶
func (x *SubAchievement) GetName() string
func (*SubAchievement) GetPreconditionIds ¶
func (x *SubAchievement) GetPreconditionIds() []string
func (*SubAchievement) GetResetTimeSec ¶
func (x *SubAchievement) GetResetTimeSec() int64
func (*SubAchievement) GetReward ¶
func (x *SubAchievement) GetReward() *Reward
func (*SubAchievement) GetUpdateTimeSec ¶ added in v1.29.0
func (x *SubAchievement) GetUpdateTimeSec() int64
func (*SubAchievement) ProtoMessage ¶
func (*SubAchievement) ProtoMessage()
func (*SubAchievement) ProtoReflect ¶
func (x *SubAchievement) ProtoReflect() protoreflect.Message
func (*SubAchievement) Reset ¶
func (x *SubAchievement) Reset()
func (*SubAchievement) String ¶
func (x *SubAchievement) String() string
type SyncAchievements ¶ added in v1.10.0
type SyncAchievements struct {
// Achievement updates and associated metadata.
Achievements map[string]*SyncAchievementsUpdate `` /* 165-byte string literal not displayed */
// contains filtered or unexported fields
}
Input for an offline state sync operation for the achievements system.
func (*SyncAchievements) Descriptor
deprecated
added in
v1.10.0
func (*SyncAchievements) Descriptor() ([]byte, []int)
Deprecated: Use SyncAchievements.ProtoReflect.Descriptor instead.
func (*SyncAchievements) GetAchievements ¶ added in v1.10.0
func (x *SyncAchievements) GetAchievements() map[string]*SyncAchievementsUpdate
func (*SyncAchievements) ProtoMessage ¶ added in v1.10.0
func (*SyncAchievements) ProtoMessage()
func (*SyncAchievements) ProtoReflect ¶ added in v1.10.0
func (x *SyncAchievements) ProtoReflect() protoreflect.Message
func (*SyncAchievements) Reset ¶ added in v1.10.0
func (x *SyncAchievements) Reset()
func (*SyncAchievements) String ¶ added in v1.10.0
func (x *SyncAchievements) String() string
type SyncAchievementsUpdate ¶ added in v1.10.0
type SyncAchievementsUpdate struct {
// Count to add.
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
// Time when the achievement first recorded progress.
CreateTimeSec int64 `protobuf:"varint,2,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// Time when the achievement update was generated on the client.
UpdateTimeSec int64 `protobuf:"varint,3,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Claim time, if claimed offline.
ClaimTimeSec int64 `protobuf:"varint,4,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// Total claim time, if claimed offline.
TotalClaimTimeSec int64 `protobuf:"varint,5,opt,name=total_claim_time_sec,json=totalClaimTimeSec,proto3" json:"total_claim_time_sec,omitempty"`
// contains filtered or unexported fields
}
Sync operation for a single achievement.
func (*SyncAchievementsUpdate) Descriptor
deprecated
added in
v1.10.0
func (*SyncAchievementsUpdate) Descriptor() ([]byte, []int)
Deprecated: Use SyncAchievementsUpdate.ProtoReflect.Descriptor instead.
func (*SyncAchievementsUpdate) GetClaimTimeSec ¶ added in v1.10.0
func (x *SyncAchievementsUpdate) GetClaimTimeSec() int64
func (*SyncAchievementsUpdate) GetCount ¶ added in v1.10.0
func (x *SyncAchievementsUpdate) GetCount() int64
func (*SyncAchievementsUpdate) GetCreateTimeSec ¶ added in v1.10.0
func (x *SyncAchievementsUpdate) GetCreateTimeSec() int64
func (*SyncAchievementsUpdate) GetTotalClaimTimeSec ¶ added in v1.10.0
func (x *SyncAchievementsUpdate) GetTotalClaimTimeSec() int64
func (*SyncAchievementsUpdate) GetUpdateTimeSec ¶ added in v1.10.0
func (x *SyncAchievementsUpdate) GetUpdateTimeSec() int64
func (*SyncAchievementsUpdate) ProtoMessage ¶ added in v1.10.0
func (*SyncAchievementsUpdate) ProtoMessage()
func (*SyncAchievementsUpdate) ProtoReflect ¶ added in v1.10.0
func (x *SyncAchievementsUpdate) ProtoReflect() protoreflect.Message
func (*SyncAchievementsUpdate) Reset ¶ added in v1.10.0
func (x *SyncAchievementsUpdate) Reset()
func (*SyncAchievementsUpdate) String ¶ added in v1.10.0
func (x *SyncAchievementsUpdate) String() string
type SyncEconomy ¶ added in v1.10.0
type SyncEconomy struct {
// Currencies deltas.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// Economy modifiers to add.
Modifiers []*ActiveRewardModifier `protobuf:"bytes,2,rep,name=modifiers,proto3" json:"modifiers,omitempty"`
// contains filtered or unexported fields
}
Input for an offline state sync operation for the economy system.
func (*SyncEconomy) Descriptor
deprecated
added in
v1.10.0
func (*SyncEconomy) Descriptor() ([]byte, []int)
Deprecated: Use SyncEconomy.ProtoReflect.Descriptor instead.
func (*SyncEconomy) GetCurrencies ¶ added in v1.10.0
func (x *SyncEconomy) GetCurrencies() map[string]int64
func (*SyncEconomy) GetModifiers ¶ added in v1.10.0
func (x *SyncEconomy) GetModifiers() []*ActiveRewardModifier
func (*SyncEconomy) ProtoMessage ¶ added in v1.10.0
func (*SyncEconomy) ProtoMessage()
func (*SyncEconomy) ProtoReflect ¶ added in v1.10.0
func (x *SyncEconomy) ProtoReflect() protoreflect.Message
func (*SyncEconomy) Reset ¶ added in v1.10.0
func (x *SyncEconomy) Reset()
func (*SyncEconomy) String ¶ added in v1.10.0
func (x *SyncEconomy) String() string
type SyncEnergy ¶ added in v1.10.0
type SyncEnergy struct {
// Energies and associated full sync data.
Energies map[string]*SyncEnergyState `` /* 157-byte string literal not displayed */
// Energy modifiers to add.
Modifiers []*EnergyModifier `protobuf:"bytes,2,rep,name=modifiers,proto3" json:"modifiers,omitempty"`
// contains filtered or unexported fields
}
Input for an offline state sync operation for the energy system.
func (*SyncEnergy) Descriptor
deprecated
added in
v1.10.0
func (*SyncEnergy) Descriptor() ([]byte, []int)
Deprecated: Use SyncEnergy.ProtoReflect.Descriptor instead.
func (*SyncEnergy) GetEnergies ¶ added in v1.10.0
func (x *SyncEnergy) GetEnergies() map[string]*SyncEnergyState
func (*SyncEnergy) GetModifiers ¶ added in v1.10.0
func (x *SyncEnergy) GetModifiers() []*EnergyModifier
func (*SyncEnergy) ProtoMessage ¶ added in v1.10.0
func (*SyncEnergy) ProtoMessage()
func (*SyncEnergy) ProtoReflect ¶ added in v1.10.0
func (x *SyncEnergy) ProtoReflect() protoreflect.Message
func (*SyncEnergy) Reset ¶ added in v1.10.0
func (x *SyncEnergy) Reset()
func (*SyncEnergy) String ¶ added in v1.10.0
func (x *SyncEnergy) String() string
type SyncEnergyState ¶ added in v1.10.0
type SyncEnergyState struct {
// Current count.
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
// Time when the energy started refilling.
RefillStartTimeSec int64 `protobuf:"varint,2,opt,name=refill_start_time_sec,json=refillStartTimeSec,proto3" json:"refill_start_time_sec,omitempty"`
// contains filtered or unexported fields
}
Full state (not delta) for an energy.
func (*SyncEnergyState) Descriptor
deprecated
added in
v1.10.0
func (*SyncEnergyState) Descriptor() ([]byte, []int)
Deprecated: Use SyncEnergyState.ProtoReflect.Descriptor instead.
func (*SyncEnergyState) GetCount ¶ added in v1.10.0
func (x *SyncEnergyState) GetCount() int64
func (*SyncEnergyState) GetRefillStartTimeSec ¶ added in v1.18.0
func (x *SyncEnergyState) GetRefillStartTimeSec() int64
func (*SyncEnergyState) ProtoMessage ¶ added in v1.10.0
func (*SyncEnergyState) ProtoMessage()
func (*SyncEnergyState) ProtoReflect ¶ added in v1.10.0
func (x *SyncEnergyState) ProtoReflect() protoreflect.Message
func (*SyncEnergyState) Reset ¶ added in v1.10.0
func (x *SyncEnergyState) Reset()
func (*SyncEnergyState) String ¶ added in v1.10.0
func (x *SyncEnergyState) String() string
type SyncEventLeaderboardUpdate ¶ added in v1.10.0
type SyncEventLeaderboardUpdate struct {
// Score.
Score int64 `protobuf:"varint,1,opt,name=score,proto3" json:"score,omitempty"`
// Subscore.
Subscore int64 `protobuf:"varint,2,opt,name=subscore,proto3" json:"subscore,omitempty"`
// Time when the score was generated on the client.
UpdateTimeSec int64 `protobuf:"varint,3,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Metadata.
Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
Single event leaderboard update.
func (*SyncEventLeaderboardUpdate) Descriptor
deprecated
added in
v1.10.0
func (*SyncEventLeaderboardUpdate) Descriptor() ([]byte, []int)
Deprecated: Use SyncEventLeaderboardUpdate.ProtoReflect.Descriptor instead.
func (*SyncEventLeaderboardUpdate) GetMetadata ¶ added in v1.27.0
func (x *SyncEventLeaderboardUpdate) GetMetadata() string
func (*SyncEventLeaderboardUpdate) GetScore ¶ added in v1.10.0
func (x *SyncEventLeaderboardUpdate) GetScore() int64
func (*SyncEventLeaderboardUpdate) GetSubscore ¶ added in v1.10.0
func (x *SyncEventLeaderboardUpdate) GetSubscore() int64
func (*SyncEventLeaderboardUpdate) GetUpdateTimeSec ¶ added in v1.10.0
func (x *SyncEventLeaderboardUpdate) GetUpdateTimeSec() int64
func (*SyncEventLeaderboardUpdate) ProtoMessage ¶ added in v1.10.0
func (*SyncEventLeaderboardUpdate) ProtoMessage()
func (*SyncEventLeaderboardUpdate) ProtoReflect ¶ added in v1.10.0
func (x *SyncEventLeaderboardUpdate) ProtoReflect() protoreflect.Message
func (*SyncEventLeaderboardUpdate) Reset ¶ added in v1.10.0
func (x *SyncEventLeaderboardUpdate) Reset()
func (*SyncEventLeaderboardUpdate) String ¶ added in v1.10.0
func (x *SyncEventLeaderboardUpdate) String() string
type SyncEventLeaderboards ¶ added in v1.10.0
type SyncEventLeaderboards struct {
// Updates for various event leaderboards, keyed by event leaderboard identifier.
EventLeaderboards map[string]*SyncEventLeaderboardUpdate `` /* 200-byte string literal not displayed */
// contains filtered or unexported fields
}
Input for an offline state sync of event leaderboard updates.
func (*SyncEventLeaderboards) Descriptor
deprecated
added in
v1.10.0
func (*SyncEventLeaderboards) Descriptor() ([]byte, []int)
Deprecated: Use SyncEventLeaderboards.ProtoReflect.Descriptor instead.
func (*SyncEventLeaderboards) GetEventLeaderboards ¶ added in v1.10.0
func (x *SyncEventLeaderboards) GetEventLeaderboards() map[string]*SyncEventLeaderboardUpdate
func (*SyncEventLeaderboards) ProtoMessage ¶ added in v1.10.0
func (*SyncEventLeaderboards) ProtoMessage()
func (*SyncEventLeaderboards) ProtoReflect ¶ added in v1.10.0
func (x *SyncEventLeaderboards) ProtoReflect() protoreflect.Message
func (*SyncEventLeaderboards) Reset ¶ added in v1.10.0
func (x *SyncEventLeaderboards) Reset()
func (*SyncEventLeaderboards) String ¶ added in v1.10.0
func (x *SyncEventLeaderboards) String() string
type SyncInventory ¶ added in v1.10.0
type SyncInventory struct {
// Map of instance IDs to update operation data.
Items map[string]*SyncInventoryItem `` /* 151-byte string literal not displayed */
// contains filtered or unexported fields
}
Input for an offline state sync operation for the inventory system.
func (*SyncInventory) Descriptor
deprecated
added in
v1.10.0
func (*SyncInventory) Descriptor() ([]byte, []int)
Deprecated: Use SyncInventory.ProtoReflect.Descriptor instead.
func (*SyncInventory) GetItems ¶ added in v1.10.0
func (x *SyncInventory) GetItems() map[string]*SyncInventoryItem
func (*SyncInventory) ProtoMessage ¶ added in v1.10.0
func (*SyncInventory) ProtoMessage()
func (*SyncInventory) ProtoReflect ¶ added in v1.10.0
func (x *SyncInventory) ProtoReflect() protoreflect.Message
func (*SyncInventory) Reset ¶ added in v1.10.0
func (x *SyncInventory) Reset()
func (*SyncInventory) String ¶ added in v1.10.0
func (x *SyncInventory) String() string
type SyncInventoryItem ¶ added in v1.10.0
type SyncInventoryItem struct {
// Item identifier from config mapping.
ItemId string `protobuf:"bytes,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
// Number of items to add or remove.
Delta int64 `protobuf:"varint,2,opt,name=delta,proto3" json:"delta,omitempty"`
// Item properties with string values.
StringProperties map[string]string `` /* 197-byte string literal not displayed */
// Item properties with numeric values.
NumericProperties map[string]float64 `` /* 202-byte string literal not displayed */
// contains filtered or unexported fields
}
Sync operation for a single inventory item.
func (*SyncInventoryItem) Descriptor
deprecated
added in
v1.10.0
func (*SyncInventoryItem) Descriptor() ([]byte, []int)
Deprecated: Use SyncInventoryItem.ProtoReflect.Descriptor instead.
func (*SyncInventoryItem) GetDelta ¶ added in v1.10.0
func (x *SyncInventoryItem) GetDelta() int64
func (*SyncInventoryItem) GetItemId ¶ added in v1.10.0
func (x *SyncInventoryItem) GetItemId() string
func (*SyncInventoryItem) GetNumericProperties ¶ added in v1.10.0
func (x *SyncInventoryItem) GetNumericProperties() map[string]float64
func (*SyncInventoryItem) GetStringProperties ¶ added in v1.10.0
func (x *SyncInventoryItem) GetStringProperties() map[string]string
func (*SyncInventoryItem) ProtoMessage ¶ added in v1.10.0
func (*SyncInventoryItem) ProtoMessage()
func (*SyncInventoryItem) ProtoReflect ¶ added in v1.10.0
func (x *SyncInventoryItem) ProtoReflect() protoreflect.Message
func (*SyncInventoryItem) Reset ¶ added in v1.10.0
func (x *SyncInventoryItem) Reset()
func (*SyncInventoryItem) String ¶ added in v1.10.0
func (x *SyncInventoryItem) String() string
type SyncProgressionUpdate ¶ added in v1.10.0
type SyncProgressionUpdate struct {
// The counts to set.
Counts map[string]int64 `` /* 154-byte string literal not displayed */
// Time when the progression was first updated on the client, if new.
CreateTimeSec int64 `protobuf:"varint,2,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// Time when the progression update was generated on the client.
UpdateTimeSec int64 `protobuf:"varint,3,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Cost paid to unlock the progression.
Cost *ProgressionCost `protobuf:"bytes,4,opt,name=cost,proto3" json:"cost,omitempty"`
// contains filtered or unexported fields
}
Single progression update.
func (*SyncProgressionUpdate) Descriptor
deprecated
added in
v1.10.0
func (*SyncProgressionUpdate) Descriptor() ([]byte, []int)
Deprecated: Use SyncProgressionUpdate.ProtoReflect.Descriptor instead.
func (*SyncProgressionUpdate) GetCost ¶ added in v1.10.0
func (x *SyncProgressionUpdate) GetCost() *ProgressionCost
func (*SyncProgressionUpdate) GetCounts ¶ added in v1.10.0
func (x *SyncProgressionUpdate) GetCounts() map[string]int64
func (*SyncProgressionUpdate) GetCreateTimeSec ¶ added in v1.10.0
func (x *SyncProgressionUpdate) GetCreateTimeSec() int64
func (*SyncProgressionUpdate) GetUpdateTimeSec ¶ added in v1.10.0
func (x *SyncProgressionUpdate) GetUpdateTimeSec() int64
func (*SyncProgressionUpdate) ProtoMessage ¶ added in v1.10.0
func (*SyncProgressionUpdate) ProtoMessage()
func (*SyncProgressionUpdate) ProtoReflect ¶ added in v1.10.0
func (x *SyncProgressionUpdate) ProtoReflect() protoreflect.Message
func (*SyncProgressionUpdate) Reset ¶ added in v1.10.0
func (x *SyncProgressionUpdate) Reset()
func (*SyncProgressionUpdate) String ¶ added in v1.10.0
func (x *SyncProgressionUpdate) String() string
type SyncProgressions ¶ added in v1.10.0
type SyncProgressions struct {
// Updates for various progressions, keyed by progression identifier.
Progressions map[string]*SyncProgressionUpdate `` /* 165-byte string literal not displayed */
// contains filtered or unexported fields
}
Input for an offline state sync of progressions updates.
func (*SyncProgressions) Descriptor
deprecated
added in
v1.10.0
func (*SyncProgressions) Descriptor() ([]byte, []int)
Deprecated: Use SyncProgressions.ProtoReflect.Descriptor instead.
func (*SyncProgressions) GetProgressions ¶ added in v1.10.0
func (x *SyncProgressions) GetProgressions() map[string]*SyncProgressionUpdate
func (*SyncProgressions) ProtoMessage ¶ added in v1.10.0
func (*SyncProgressions) ProtoMessage()
func (*SyncProgressions) ProtoReflect ¶ added in v1.10.0
func (x *SyncProgressions) ProtoReflect() protoreflect.Message
func (*SyncProgressions) Reset ¶ added in v1.10.0
func (x *SyncProgressions) Reset()
func (*SyncProgressions) String ¶ added in v1.10.0
func (x *SyncProgressions) String() string
type SyncRequest ¶ added in v1.10.0
type SyncRequest struct {
// Inventory.
Inventory *SyncInventory `protobuf:"bytes,1,opt,name=inventory,proto3" json:"inventory,omitempty"`
// Economy.
Economy *SyncEconomy `protobuf:"bytes,2,opt,name=economy,proto3" json:"economy,omitempty"`
// Achievements.
Achievements *SyncAchievements `protobuf:"bytes,3,opt,name=achievements,proto3" json:"achievements,omitempty"`
// Energy.
Energy *SyncEnergy `protobuf:"bytes,4,opt,name=energy,proto3" json:"energy,omitempty"`
// Event leaderboards.
EventLeaderboards *SyncEventLeaderboards `protobuf:"bytes,5,opt,name=event_leaderboards,json=eventLeaderboards,proto3" json:"event_leaderboards,omitempty"`
// Progressions.
Progressions *SyncProgressions `protobuf:"bytes,6,opt,name=progressions,proto3" json:"progressions,omitempty"`
// Stats. Message reused from standard synchronous stats updates.
Stats *StatUpdateRequest `protobuf:"bytes,7,opt,name=stats,proto3" json:"stats,omitempty"`
// Tutorials.
Tutorials *SyncTutorials `protobuf:"bytes,8,opt,name=tutorials,proto3" json:"tutorials,omitempty"`
// Unlockables.
Unlockables *SyncUnlockables `protobuf:"bytes,9,opt,name=unlockables,proto3" json:"unlockables,omitempty"`
// Streaks.
Streaks *SyncStreaks `protobuf:"bytes,10,opt,name=streaks,proto3" json:"streaks,omitempty"`
// contains filtered or unexported fields
}
Input for an offline state sync operation.
func (*SyncRequest) Descriptor
deprecated
added in
v1.10.0
func (*SyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
func (*SyncRequest) GetAchievements ¶ added in v1.10.0
func (x *SyncRequest) GetAchievements() *SyncAchievements
func (*SyncRequest) GetEconomy ¶ added in v1.10.0
func (x *SyncRequest) GetEconomy() *SyncEconomy
func (*SyncRequest) GetEnergy ¶ added in v1.10.0
func (x *SyncRequest) GetEnergy() *SyncEnergy
func (*SyncRequest) GetEventLeaderboards ¶ added in v1.10.0
func (x *SyncRequest) GetEventLeaderboards() *SyncEventLeaderboards
func (*SyncRequest) GetInventory ¶ added in v1.10.0
func (x *SyncRequest) GetInventory() *SyncInventory
func (*SyncRequest) GetProgressions ¶ added in v1.10.0
func (x *SyncRequest) GetProgressions() *SyncProgressions
func (*SyncRequest) GetStats ¶ added in v1.10.0
func (x *SyncRequest) GetStats() *StatUpdateRequest
func (*SyncRequest) GetStreaks ¶ added in v1.19.0
func (x *SyncRequest) GetStreaks() *SyncStreaks
func (*SyncRequest) GetTutorials ¶ added in v1.10.0
func (x *SyncRequest) GetTutorials() *SyncTutorials
func (*SyncRequest) GetUnlockables ¶ added in v1.10.0
func (x *SyncRequest) GetUnlockables() *SyncUnlockables
func (*SyncRequest) ProtoMessage ¶ added in v1.10.0
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) ProtoReflect ¶ added in v1.10.0
func (x *SyncRequest) ProtoReflect() protoreflect.Message
func (*SyncRequest) Reset ¶ added in v1.10.0
func (x *SyncRequest) Reset()
func (*SyncRequest) String ¶ added in v1.10.0
func (x *SyncRequest) String() string
type SyncResponse ¶ added in v1.10.0
type SyncResponse struct {
// Updated wallet data, if any.
Wallet map[string]int64 `` /* 154-byte string literal not displayed */
// Inventory.
Inventory *Inventory `protobuf:"bytes,2,opt,name=inventory,proto3" json:"inventory,omitempty"`
// Achievements.
Achievements *AchievementList `protobuf:"bytes,3,opt,name=achievements,proto3" json:"achievements,omitempty"`
// Energies.
Energy *EnergyList `protobuf:"bytes,4,opt,name=energy,proto3" json:"energy,omitempty"`
// Event leaderboards.
EventLeaderboards []*EventLeaderboard `protobuf:"bytes,5,rep,name=event_leaderboards,json=eventLeaderboards,proto3" json:"event_leaderboards,omitempty"`
// Progressions.
Progressions *ProgressionList `protobuf:"bytes,6,opt,name=progressions,proto3" json:"progressions,omitempty"`
// Stats.
Stats *StatList `protobuf:"bytes,7,opt,name=stats,proto3" json:"stats,omitempty"`
// Tutorials.
Tutorials *TutorialList `protobuf:"bytes,8,opt,name=tutorials,proto3" json:"tutorials,omitempty"`
// Unlockables.
Unlockables *UnlockablesList `protobuf:"bytes,9,opt,name=unlockables,proto3" json:"unlockables,omitempty"`
// The list of active reward modifiers.
ActiveRewardModifiers []*ActiveRewardModifier `` /* 127-byte string literal not displayed */
// Current server time.
CurrentTimeSec int64 `protobuf:"varint,11,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// Streaks.
Streaks *StreaksList `protobuf:"bytes,12,opt,name=streaks,proto3" json:"streaks,omitempty"`
// contains filtered or unexported fields
}
Resulting updates after an offline state sync operation. Fields are only populated if the corresponding updated was requested via the sync.
func (*SyncResponse) Descriptor
deprecated
added in
v1.10.0
func (*SyncResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.
func (*SyncResponse) GetAchievements ¶ added in v1.10.0
func (x *SyncResponse) GetAchievements() *AchievementList
func (*SyncResponse) GetActiveRewardModifiers ¶ added in v1.15.0
func (x *SyncResponse) GetActiveRewardModifiers() []*ActiveRewardModifier
func (*SyncResponse) GetCurrentTimeSec ¶ added in v1.15.0
func (x *SyncResponse) GetCurrentTimeSec() int64
func (*SyncResponse) GetEnergy ¶ added in v1.10.0
func (x *SyncResponse) GetEnergy() *EnergyList
func (*SyncResponse) GetEventLeaderboards ¶ added in v1.10.0
func (x *SyncResponse) GetEventLeaderboards() []*EventLeaderboard
func (*SyncResponse) GetInventory ¶ added in v1.10.0
func (x *SyncResponse) GetInventory() *Inventory
func (*SyncResponse) GetProgressions ¶ added in v1.10.0
func (x *SyncResponse) GetProgressions() *ProgressionList
func (*SyncResponse) GetStats ¶ added in v1.10.0
func (x *SyncResponse) GetStats() *StatList
func (*SyncResponse) GetStreaks ¶ added in v1.19.0
func (x *SyncResponse) GetStreaks() *StreaksList
func (*SyncResponse) GetTutorials ¶ added in v1.10.0
func (x *SyncResponse) GetTutorials() *TutorialList
func (*SyncResponse) GetUnlockables ¶ added in v1.10.0
func (x *SyncResponse) GetUnlockables() *UnlockablesList
func (*SyncResponse) GetWallet ¶ added in v1.10.0
func (x *SyncResponse) GetWallet() map[string]int64
func (*SyncResponse) ProtoMessage ¶ added in v1.10.0
func (*SyncResponse) ProtoMessage()
func (*SyncResponse) ProtoReflect ¶ added in v1.10.0
func (x *SyncResponse) ProtoReflect() protoreflect.Message
func (*SyncResponse) Reset ¶ added in v1.10.0
func (x *SyncResponse) Reset()
func (*SyncResponse) String ¶ added in v1.10.0
func (x *SyncResponse) String() string
type SyncStreakUpdate ¶ added in v1.19.0
type SyncStreakUpdate struct {
// Current progress count for this streak.
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
// Progress count for the current reset.
CountCurrentReset int64 `protobuf:"varint,2,opt,name=count_current_reset,json=countCurrentReset,proto3" json:"count_current_reset,omitempty"`
// Last count that was claimed.
ClaimCount int64 `protobuf:"varint,3,opt,name=claim_count,json=claimCount,proto3" json:"claim_count,omitempty"`
// When updates for this streak were first recorded.
CreateTimeSec int64 `protobuf:"varint,4,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// When an update for this streak was most recently recorded.
UpdateTimeSec int64 `protobuf:"varint,5,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// When the last claim for this streak was.
ClaimTimeSec int64 `protobuf:"varint,6,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// Record of rewards that have been claimed.
ClaimedRewards []*StreakReward `protobuf:"bytes,7,rep,name=claimed_rewards,json=claimedRewards,proto3" json:"claimed_rewards,omitempty"`
// contains filtered or unexported fields
}
Single streak state update.
func (*SyncStreakUpdate) Descriptor
deprecated
added in
v1.19.0
func (*SyncStreakUpdate) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreakUpdate.ProtoReflect.Descriptor instead.
func (*SyncStreakUpdate) GetClaimCount ¶ added in v1.19.0
func (x *SyncStreakUpdate) GetClaimCount() int64
func (*SyncStreakUpdate) GetClaimTimeSec ¶ added in v1.19.0
func (x *SyncStreakUpdate) GetClaimTimeSec() int64
func (*SyncStreakUpdate) GetClaimedRewards ¶ added in v1.19.0
func (x *SyncStreakUpdate) GetClaimedRewards() []*StreakReward
func (*SyncStreakUpdate) GetCount ¶ added in v1.19.0
func (x *SyncStreakUpdate) GetCount() int64
func (*SyncStreakUpdate) GetCountCurrentReset ¶ added in v1.19.0
func (x *SyncStreakUpdate) GetCountCurrentReset() int64
func (*SyncStreakUpdate) GetCreateTimeSec ¶ added in v1.19.0
func (x *SyncStreakUpdate) GetCreateTimeSec() int64
func (*SyncStreakUpdate) GetUpdateTimeSec ¶ added in v1.19.0
func (x *SyncStreakUpdate) GetUpdateTimeSec() int64
func (*SyncStreakUpdate) ProtoMessage ¶ added in v1.19.0
func (*SyncStreakUpdate) ProtoMessage()
func (*SyncStreakUpdate) ProtoReflect ¶ added in v1.19.0
func (x *SyncStreakUpdate) ProtoReflect() protoreflect.Message
func (*SyncStreakUpdate) Reset ¶ added in v1.19.0
func (x *SyncStreakUpdate) Reset()
func (*SyncStreakUpdate) String ¶ added in v1.19.0
func (x *SyncStreakUpdate) String() string
type SyncStreaks ¶ added in v1.19.0
type SyncStreaks struct {
// Streak identifiers to reset.
Resets []string `protobuf:"bytes,1,rep,name=resets,proto3" json:"resets,omitempty"`
// Streak state updates keyed by streak identifier.
Updates map[string]*SyncStreakUpdate `` /* 155-byte string literal not displayed */
// contains filtered or unexported fields
}
Input for an offline state sync of streaks updates.
func (*SyncStreaks) Descriptor
deprecated
added in
v1.19.0
func (*SyncStreaks) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreaks.ProtoReflect.Descriptor instead.
func (*SyncStreaks) GetResets ¶ added in v1.19.0
func (x *SyncStreaks) GetResets() []string
func (*SyncStreaks) GetUpdates ¶ added in v1.19.0
func (x *SyncStreaks) GetUpdates() map[string]*SyncStreakUpdate
func (*SyncStreaks) ProtoMessage ¶ added in v1.19.0
func (*SyncStreaks) ProtoMessage()
func (*SyncStreaks) ProtoReflect ¶ added in v1.19.0
func (x *SyncStreaks) ProtoReflect() protoreflect.Message
func (*SyncStreaks) Reset ¶ added in v1.19.0
func (x *SyncStreaks) Reset()
func (*SyncStreaks) String ¶ added in v1.19.0
func (x *SyncStreaks) String() string
type SyncTutorials ¶ added in v1.10.0
type SyncTutorials struct {
// Accept list.
Accepts []string `protobuf:"bytes,1,rep,name=accepts,proto3" json:"accepts,omitempty"`
// Decline list.
Declines []string `protobuf:"bytes,2,rep,name=declines,proto3" json:"declines,omitempty"`
// Abandon list.
Abandons []string `protobuf:"bytes,3,rep,name=abandons,proto3" json:"abandons,omitempty"`
// Updates to tutorial steps. Implicitly counts as accepting these tutorials, if not accepted already.
Updates map[string]int64 `` /* 156-byte string literal not displayed */
// contains filtered or unexported fields
}
Input for an offline state sync of tutorials updates.
func (*SyncTutorials) Descriptor
deprecated
added in
v1.10.0
func (*SyncTutorials) Descriptor() ([]byte, []int)
Deprecated: Use SyncTutorials.ProtoReflect.Descriptor instead.
func (*SyncTutorials) GetAbandons ¶ added in v1.10.0
func (x *SyncTutorials) GetAbandons() []string
func (*SyncTutorials) GetAccepts ¶ added in v1.10.0
func (x *SyncTutorials) GetAccepts() []string
func (*SyncTutorials) GetDeclines ¶ added in v1.10.0
func (x *SyncTutorials) GetDeclines() []string
func (*SyncTutorials) GetUpdates ¶ added in v1.10.0
func (x *SyncTutorials) GetUpdates() map[string]int64
func (*SyncTutorials) ProtoMessage ¶ added in v1.10.0
func (*SyncTutorials) ProtoMessage()
func (*SyncTutorials) ProtoReflect ¶ added in v1.10.0
func (x *SyncTutorials) ProtoReflect() protoreflect.Message
func (*SyncTutorials) Reset ¶ added in v1.10.0
func (x *SyncTutorials) Reset()
func (*SyncTutorials) String ¶ added in v1.10.0
func (x *SyncTutorials) String() string
type SyncUnlockableUpdate ¶ added in v1.10.0
type SyncUnlockableUpdate struct {
// Unlockable identifier from config.
UnlockableId string `protobuf:"bytes,1,opt,name=unlockable_id,json=unlockableId,proto3" json:"unlockable_id,omitempty"`
// Time this unlockabled was granted.
CreateTimeSec int64 `protobuf:"varint,2,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// Unlock start time, if any.
StartTimeSec int64 `protobuf:"varint,3,opt,name=start_time_sec,json=startTimeSec,proto3" json:"start_time_sec,omitempty"`
// Unlock completion time, if any.
UnlockTimeSec int64 `protobuf:"varint,4,opt,name=unlock_time_sec,json=unlockTimeSec,proto3" json:"unlock_time_sec,omitempty"`
// contains filtered or unexported fields
}
Single unlockable update, either grant or unlock start.
func (*SyncUnlockableUpdate) Descriptor
deprecated
added in
v1.10.0
func (*SyncUnlockableUpdate) Descriptor() ([]byte, []int)
Deprecated: Use SyncUnlockableUpdate.ProtoReflect.Descriptor instead.
func (*SyncUnlockableUpdate) GetCreateTimeSec ¶ added in v1.10.0
func (x *SyncUnlockableUpdate) GetCreateTimeSec() int64
func (*SyncUnlockableUpdate) GetStartTimeSec ¶ added in v1.10.0
func (x *SyncUnlockableUpdate) GetStartTimeSec() int64
func (*SyncUnlockableUpdate) GetUnlockTimeSec ¶ added in v1.10.0
func (x *SyncUnlockableUpdate) GetUnlockTimeSec() int64
func (*SyncUnlockableUpdate) GetUnlockableId ¶ added in v1.10.0
func (x *SyncUnlockableUpdate) GetUnlockableId() string
func (*SyncUnlockableUpdate) ProtoMessage ¶ added in v1.10.0
func (*SyncUnlockableUpdate) ProtoMessage()
func (*SyncUnlockableUpdate) ProtoReflect ¶ added in v1.10.0
func (x *SyncUnlockableUpdate) ProtoReflect() protoreflect.Message
func (*SyncUnlockableUpdate) Reset ¶ added in v1.10.0
func (x *SyncUnlockableUpdate) Reset()
func (*SyncUnlockableUpdate) String ¶ added in v1.10.0
func (x *SyncUnlockableUpdate) String() string
type SyncUnlockables ¶ added in v1.10.0
type SyncUnlockables struct {
// Unlockable instance IDs to remove.
Removes []string `protobuf:"bytes,1,rep,name=removes,proto3" json:"removes,omitempty"`
// Unlockable updates keyed by instance identifier, such as new grants or unlock starts.
Updates map[string]*SyncUnlockableUpdate `` /* 155-byte string literal not displayed */
// contains filtered or unexported fields
}
Input for an offline state sync of unlockables updates.
func (*SyncUnlockables) Descriptor
deprecated
added in
v1.10.0
func (*SyncUnlockables) Descriptor() ([]byte, []int)
Deprecated: Use SyncUnlockables.ProtoReflect.Descriptor instead.
func (*SyncUnlockables) GetRemoves ¶ added in v1.10.0
func (x *SyncUnlockables) GetRemoves() []string
func (*SyncUnlockables) GetUpdates ¶ added in v1.10.0
func (x *SyncUnlockables) GetUpdates() map[string]*SyncUnlockableUpdate
func (*SyncUnlockables) ProtoMessage ¶ added in v1.10.0
func (*SyncUnlockables) ProtoMessage()
func (*SyncUnlockables) ProtoReflect ¶ added in v1.10.0
func (x *SyncUnlockables) ProtoReflect() protoreflect.Message
func (*SyncUnlockables) Reset ¶ added in v1.10.0
func (x *SyncUnlockables) Reset()
func (*SyncUnlockables) String ¶ added in v1.10.0
func (x *SyncUnlockables) String() string
type System ¶
type System interface {
// GetType provides the runtime type of the gameplay system.
GetType() SystemType
// GetConfig returns the configuration type of the gameplay system.
GetConfig() any
}
A System is a base type for a gameplay system.
type SystemConfig ¶
type SystemConfig interface {
// GetType returns the runtime type of the gameplay system.
GetType() SystemType
// GetConfigFile returns the configuration file used for the data definitions in the gameplay system.
GetConfigFile() string
// GetRegister returns true if the gameplay system's RPCs should be registered with the game server.
GetRegister() bool
// GetExtra returns the extra parameter used to configure the gameplay system.
GetExtra() any
}
The SystemConfig describes the configuration that each gameplay system must use to configure itself.
func WithAchievementsSystem ¶
func WithAchievementsSystem(configFile string, register bool) SystemConfig
WithAchievementsSystem configures an AchievementsSystem type and optionally registers its RPCs with the game server.
func WithAuctionsSystem ¶ added in v1.18.0
func WithAuctionsSystem(configFile string, register bool) SystemConfig
WithAuctionsSystem configures a AuctionsSystem type and optionally registers its RPCs with the game server.
func WithBaseSystem ¶
func WithBaseSystem(configFile string, register bool, options ...BaseSystemOption) SystemConfig
WithBaseSystem configures a BaseSystem type and optionally registers its RPCs with the game server.
func WithChallengesSystem ¶ added in v1.23.0
func WithChallengesSystem(configFile string, register bool) SystemConfig
WithChallengesSystem configures a ChallengesSystem type and optionally registers its RPCs with the game server.
func WithEconomySystem ¶
func WithEconomySystem(configFile string, register bool, ironSrcPrivKey ...string) SystemConfig
WithEconomySystem configures an EconomySystem type and optionally registers its RPCs with the game server.
func WithEnergySystem ¶
func WithEnergySystem(configFile string, register bool) SystemConfig
WithEnergySystem configures an EnergySystem type and optionally registers its RPCs with the game server.
func WithEventLeaderboardsSystem ¶ added in v1.1.0
func WithEventLeaderboardsSystem(configFile string, register bool) SystemConfig
WithEventLeaderboardsSystem configures an EventLeaderboardsSystem type and optionally registers its RPCs with the game server.
func WithIncentivesSystem ¶ added in v1.5.0
func WithIncentivesSystem(configFile string, register bool) SystemConfig
WithIncentivesSystem configures a IncentivesSystem type and optionally registers its RPCs with the game server.
func WithInventorySystem ¶
func WithInventorySystem(configFile string, register bool) SystemConfig
WithInventorySystem configures an InventorySystem type and optionally registers its RPCs with the game server.
func WithLeaderboardsSystem ¶
func WithLeaderboardsSystem(configFile string, register bool, validateWriteScore ...ValidateWriteScoreFn) SystemConfig
WithLeaderboardsSystem configures a LeaderboardsSystem type.
func WithProgressionSystem ¶ added in v1.3.0
func WithProgressionSystem(configFile string, register bool) SystemConfig
WithProgressionSystem configures a ProgressionSystem type and optionally registers its RPCs with the game server.
func WithRewardMailboxSystem ¶ added in v1.26.0
func WithRewardMailboxSystem(configFile string, register bool) SystemConfig
WithRewardMailboxSystem configures a RewardMailboxSystem type and optionally registers its RPCs with the game server.
func WithStatsSystem ¶
func WithStatsSystem(configFile string, register bool) SystemConfig
WithStatsSystem configures a StatsSystem type and optionally registers its RPCs with the game server.
func WithStreaksSystem ¶ added in v1.19.0
func WithStreaksSystem(configFile string, register bool) SystemConfig
WithStreaksSystem configures a StreaksSystem type and optionally registers its RPCs with the game server.
func WithTeamsSystem ¶
func WithTeamsSystem(configFile string, register bool) SystemConfig
WithTeamsSystem configures a TeamsSystem type and optionally registers its RPCs with the game server.
func WithTutorialsSystem ¶
func WithTutorialsSystem(configFile string, register bool) SystemConfig
WithTutorialsSystem configures a TutorialsSystem type and optionally registers its RPCs with the game server.
func WithUnlockablesSystem ¶
func WithUnlockablesSystem(configFile string, register bool) SystemConfig
WithUnlockablesSystem configures an UnlockablesSystem type and optionally registers its RPCs with the game server.
type SystemType ¶
type SystemType uint
The SystemType identifies each of the gameplay systems.
const ( SystemTypeUnknown SystemType = iota SystemTypeUnregistered SystemTypeBase SystemTypeEnergy SystemTypeUnlockables SystemTypeTutorials SystemTypeLeaderboards SystemTypeStats SystemTypeTeams SystemTypeInventory SystemTypeAchievements SystemTypeEconomy SystemTypeEventLeaderboards SystemTypeProgression SystemTypeIncentives SystemTypeAuctions SystemTypeStreaks SystemTypeChallenges SystemTypeRewardMailbox )
type Team ¶
type Team struct {
// The ID of a team.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The ID of the user who created the team.
CreatorId string `protobuf:"bytes,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
// The unique name of the team.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// A description for the team.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// The language expected to be a tag which follows the BCP-47 spec.
LangTag string `protobuf:"bytes,5,opt,name=lang_tag,json=langTag,proto3" json:"lang_tag,omitempty"`
// Additional information stored as a JSON object.
Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
// A URL for an avatar image.
AvatarUrl string `protobuf:"bytes,7,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
// Anyone can join open groups, otherwise only admins can accept members.
Open bool `protobuf:"varint,8,opt,name=open,proto3" json:"open,omitempty"`
// The current count of all members in the group.
EdgeCount int32 `protobuf:"varint,9,opt,name=edge_count,json=edgeCount,proto3" json:"edge_count,omitempty"`
// The maximum number of members allowed.
MaxCount int32 `protobuf:"varint,10,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"`
// The UNIX timestamp when the group was created.
CreateTimeSec int64 `protobuf:"varint,11,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// The UNIX timestamp when the group was last updated.
UpdateTimeSec int64 `protobuf:"varint,12,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Activity score.
Activity int64 `protobuf:"varint,13,opt,name=activity,proto3" json:"activity,omitempty"`
// Team member activity.
Members []*TeamMember `protobuf:"bytes,14,rep,name=members,proto3" json:"members,omitempty"`
// contains filtered or unexported fields
}
A Team represents a group of users who play together.
func (*Team) Descriptor
deprecated
func (*Team) GetActivity ¶ added in v1.26.0
func (*Team) GetAvatarUrl ¶
func (*Team) GetCreateTimeSec ¶
func (*Team) GetCreatorId ¶
func (*Team) GetDescription ¶
func (*Team) GetEdgeCount ¶
func (*Team) GetLangTag ¶
func (*Team) GetMaxCount ¶
func (*Team) GetMembers ¶ added in v1.26.0
func (x *Team) GetMembers() []*TeamMember
func (*Team) GetMetadata ¶
func (*Team) GetUpdateTimeSec ¶
func (*Team) ProtoMessage ¶
func (*Team) ProtoMessage()
func (*Team) ProtoReflect ¶
func (x *Team) ProtoReflect() protoreflect.Message
type TeamAchievementsClaimRequest ¶ added in v1.26.0
type TeamAchievementsClaimRequest struct {
// Team identifier for which to claim the specified achievements.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The set of team achievement IDs to claim.
AchievementIds []string `protobuf:"bytes,2,rep,name=achievement_ids,json=achievementIds,proto3" json:"achievement_ids,omitempty"`
// Whether or not to claim the total reward as well, if available.
ClaimTotalReward bool `protobuf:"varint,3,opt,name=claim_total_reward,json=claimTotalReward,proto3" json:"claim_total_reward,omitempty"`
// contains filtered or unexported fields
}
Claim rewards with one or more team achievement on the server.
func (*TeamAchievementsClaimRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamAchievementsClaimRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamAchievementsClaimRequest.ProtoReflect.Descriptor instead.
func (*TeamAchievementsClaimRequest) GetAchievementIds ¶ added in v1.26.0
func (x *TeamAchievementsClaimRequest) GetAchievementIds() []string
func (*TeamAchievementsClaimRequest) GetClaimTotalReward ¶ added in v1.26.0
func (x *TeamAchievementsClaimRequest) GetClaimTotalReward() bool
func (*TeamAchievementsClaimRequest) GetId ¶ added in v1.26.0
func (x *TeamAchievementsClaimRequest) GetId() string
func (*TeamAchievementsClaimRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamAchievementsClaimRequest) ProtoMessage()
func (*TeamAchievementsClaimRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamAchievementsClaimRequest) ProtoReflect() protoreflect.Message
func (*TeamAchievementsClaimRequest) Reset ¶ added in v1.26.0
func (x *TeamAchievementsClaimRequest) Reset()
func (*TeamAchievementsClaimRequest) String ¶ added in v1.26.0
func (x *TeamAchievementsClaimRequest) String() string
type TeamAchievementsGetRequest ¶ added in v1.26.0
type TeamAchievementsGetRequest struct {
// Team identifier for which to get achievement data.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Get achievements for a particular team.
func (*TeamAchievementsGetRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamAchievementsGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamAchievementsGetRequest.ProtoReflect.Descriptor instead.
func (*TeamAchievementsGetRequest) GetId ¶ added in v1.26.0
func (x *TeamAchievementsGetRequest) GetId() string
func (*TeamAchievementsGetRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamAchievementsGetRequest) ProtoMessage()
func (*TeamAchievementsGetRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamAchievementsGetRequest) ProtoReflect() protoreflect.Message
func (*TeamAchievementsGetRequest) Reset ¶ added in v1.26.0
func (x *TeamAchievementsGetRequest) Reset()
func (*TeamAchievementsGetRequest) String ¶ added in v1.26.0
func (x *TeamAchievementsGetRequest) String() string
type TeamAchievementsUpdateRequest ¶ added in v1.26.0
type TeamAchievementsUpdateRequest struct {
// Team identifier for which to update achievements.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The set of achievement IDs to progress.
AchievementIds []string `protobuf:"bytes,2,rep,name=achievement_ids,json=achievementIds,proto3" json:"achievement_ids,omitempty"`
// The amount of progress to increment on the achievements.
Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
// Achievements with different amounts.
Achievements map[string]int64 `` /* 166-byte string literal not displayed */
// contains filtered or unexported fields
}
Update progress on one or more team achievements on the server.
func (*TeamAchievementsUpdateRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamAchievementsUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamAchievementsUpdateRequest.ProtoReflect.Descriptor instead.
func (*TeamAchievementsUpdateRequest) GetAchievementIds ¶ added in v1.26.0
func (x *TeamAchievementsUpdateRequest) GetAchievementIds() []string
func (*TeamAchievementsUpdateRequest) GetAchievements ¶ added in v1.26.0
func (x *TeamAchievementsUpdateRequest) GetAchievements() map[string]int64
func (*TeamAchievementsUpdateRequest) GetAmount ¶ added in v1.26.0
func (x *TeamAchievementsUpdateRequest) GetAmount() int64
func (*TeamAchievementsUpdateRequest) GetId ¶ added in v1.26.0
func (x *TeamAchievementsUpdateRequest) GetId() string
func (*TeamAchievementsUpdateRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamAchievementsUpdateRequest) ProtoMessage()
func (*TeamAchievementsUpdateRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamAchievementsUpdateRequest) ProtoReflect() protoreflect.Message
func (*TeamAchievementsUpdateRequest) Reset ¶ added in v1.26.0
func (x *TeamAchievementsUpdateRequest) Reset()
func (*TeamAchievementsUpdateRequest) String ¶ added in v1.26.0
func (x *TeamAchievementsUpdateRequest) String() string
type TeamActivityCalculator ¶ added in v1.26.0
type TeamActivityCalculator func(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, team *Team) int64
TeamActivityCalculator specifies a function used to resolve an activity score for a given team. Implementations may inspect the team members list to use individual activity scores as part of the calculation. Higher activity values should generally be used to indicate more active teams.
type TeamCreateRequest ¶
type TeamCreateRequest struct {
// The name of the team to be created.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The description of the team to be created.
Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
// True if the team is open to join by any user.
Open bool `protobuf:"varint,3,opt,name=open,proto3" json:"open,omitempty"`
// The avatar URL or artwork reference ID for the team, if any.
AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
// The language expected to be a tag which follows the BCP-47 spec.
LangTag string `protobuf:"bytes,5,opt,name=lang_tag,json=langTag,proto3" json:"lang_tag,omitempty"`
// The starting metadata passed in as part of creating the team.
SetupMetadata string `protobuf:"bytes,6,opt,name=setup_metadata,json=setupMetadata,proto3" json:"setup_metadata,omitempty"`
// contains filtered or unexported fields
}
A request to create a team.
func (*TeamCreateRequest) Descriptor
deprecated
func (*TeamCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamCreateRequest.ProtoReflect.Descriptor instead.
func (*TeamCreateRequest) GetAvatarUrl ¶ added in v1.26.0
func (x *TeamCreateRequest) GetAvatarUrl() string
func (*TeamCreateRequest) GetDesc ¶
func (x *TeamCreateRequest) GetDesc() string
func (*TeamCreateRequest) GetLangTag ¶
func (x *TeamCreateRequest) GetLangTag() string
func (*TeamCreateRequest) GetName ¶
func (x *TeamCreateRequest) GetName() string
func (*TeamCreateRequest) GetOpen ¶
func (x *TeamCreateRequest) GetOpen() bool
func (*TeamCreateRequest) GetSetupMetadata ¶
func (x *TeamCreateRequest) GetSetupMetadata() string
func (*TeamCreateRequest) ProtoMessage ¶
func (*TeamCreateRequest) ProtoMessage()
func (*TeamCreateRequest) ProtoReflect ¶
func (x *TeamCreateRequest) ProtoReflect() protoreflect.Message
func (*TeamCreateRequest) Reset ¶
func (x *TeamCreateRequest) Reset()
func (*TeamCreateRequest) String ¶
func (x *TeamCreateRequest) String() string
type TeamEconomyConfigStoreItem ¶ added in v1.26.0
type TeamEconomyConfigStoreItem struct {
Category string `json:"category,omitempty"`
Cost *TeamEconomyConfigStoreItemCost `json:"cost,omitempty"`
Description string `json:"description,omitempty"`
Name string `json:"name,omitempty"`
Reward *EconomyConfigReward `json:"reward,omitempty"`
AdditionalProperties map[string]string `json:"additional_properties,omitempty"`
Disabled bool `json:"disabled,omitempty"`
}
type TeamEconomyConfigStoreItemCost ¶ added in v1.26.0
type TeamEventLeaderboard ¶ added in v1.26.0
type TeamEventLeaderboard struct {
// Event leaderboard ID.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The name of the event leaderboard. May be an i18n code.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// A description of the event leaderboard. May be an i18n code.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// The category to group the event leaderboard together with others.
Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
// Score ordering.
Ascending bool `protobuf:"varint,5,opt,name=ascending,proto3" json:"ascending,omitempty"`
// Score submission operator.
Operator string `protobuf:"bytes,6,opt,name=operator,proto3" json:"operator,omitempty"`
// The tier of this instance of the event leaderboard.
Tier int32 `protobuf:"varint,7,opt,name=tier,proto3" json:"tier,omitempty"`
// Time when the event starts.
StartTimeSec int64 `protobuf:"varint,8,opt,name=start_time_sec,json=startTimeSec,proto3" json:"start_time_sec,omitempty"`
// Time when the event ends.
EndTimeSec int64 `protobuf:"varint,9,opt,name=end_time_sec,json=endTimeSec,proto3" json:"end_time_sec,omitempty"`
// Time when the event expires.
ExpiryTimeSec int64 `protobuf:"varint,10,opt,name=expiry_time_sec,json=expiryTimeSec,proto3" json:"expiry_time_sec,omitempty"`
// The available reward and its probabilities.
AvailableRewards *AvailableRewards `protobuf:"bytes,11,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// The possible reward tiers for this instance of the event leaderboard, based on its current tier.
RewardTiers map[int32]*EventLeaderboardRewardTiers `` /* 184-byte string literal not displayed */
// Per-tier promotion/demotion change zones, if configured.
ChangeZones map[int32]*EventLeaderboardChangeZone `` /* 184-byte string literal not displayed */
// Claim time, if any.
ClaimTimeSec int64 `protobuf:"varint,14,opt,name=claim_time_sec,json=claimTimeSec,proto3" json:"claim_time_sec,omitempty"`
// The outcome (rolled) reward for the event leaderboard.
Reward *Reward `protobuf:"bytes,15,opt,name=reward,proto3" json:"reward,omitempty"`
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 210-byte string literal not displayed */
// Current participant count.
Count int64 `protobuf:"varint,17,opt,name=count,proto3" json:"count,omitempty"`
// Maximum participant count.
MaxCount int64 `protobuf:"varint,18,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"`
// Maximum number of score submissions per participant.
MaxNumScore int64 `protobuf:"varint,19,opt,name=max_num_score,json=maxNumScore,proto3" json:"max_num_score,omitempty"`
// Participants and their scores.
Scores []*TeamEventLeaderboardScore `protobuf:"bytes,20,rep,name=scores,proto3" json:"scores,omitempty"`
// Indicates if the event is still active, and scores can be submitted.
IsActive bool `protobuf:"varint,21,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
// Indicates if the event is over and its reward can be claimed.
CanClaim bool `protobuf:"varint,22,opt,name=can_claim,json=canClaim,proto3" json:"can_claim,omitempty"`
// Indicates if the event can be rolled to get a new set of opponents.
CanRoll bool `protobuf:"varint,23,opt,name=can_roll,json=canRoll,proto3" json:"can_roll,omitempty"`
// Extra matchmaker properties for this cohort.
MatchmakerProperties *structpb.Struct `protobuf:"bytes,24,opt,name=matchmaker_properties,json=matchmakerProperties,proto3" json:"matchmaker_properties,omitempty"`
// The UNIX timestamp for the current server time.
CurrentTimeSec int64 `protobuf:"varint,25,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// Cohort ID the user belongs to for this active phase.
CohortId string `protobuf:"bytes,26,opt,name=cohort_id,json=cohortId,proto3" json:"cohort_id,omitempty"`
// Backing ID for underlying score tracking.
BackingId string `protobuf:"bytes,27,opt,name=backing_id,json=backingId,proto3" json:"backing_id,omitempty"`
// Contributions from team members towards the score.
Contributions []*TeamEventLeaderboardContribution `protobuf:"bytes,28,rep,name=contributions,proto3" json:"contributions,omitempty"`
// contains filtered or unexported fields
}
Details about a specific team event leaderboard.
func (*TeamEventLeaderboard) Descriptor
deprecated
added in
v1.26.0
func (*TeamEventLeaderboard) Descriptor() ([]byte, []int)
Deprecated: Use TeamEventLeaderboard.ProtoReflect.Descriptor instead.
func (*TeamEventLeaderboard) GetAdditionalProperties ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetAdditionalProperties() map[string]string
func (*TeamEventLeaderboard) GetAscending ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetAscending() bool
func (*TeamEventLeaderboard) GetAvailableRewards ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetAvailableRewards() *AvailableRewards
func (*TeamEventLeaderboard) GetBackingId ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetBackingId() string
func (*TeamEventLeaderboard) GetCanClaim ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetCanClaim() bool
func (*TeamEventLeaderboard) GetCanRoll ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetCanRoll() bool
func (*TeamEventLeaderboard) GetCategory ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetCategory() string
func (*TeamEventLeaderboard) GetChangeZones ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetChangeZones() map[int32]*EventLeaderboardChangeZone
func (*TeamEventLeaderboard) GetClaimTimeSec ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetClaimTimeSec() int64
func (*TeamEventLeaderboard) GetCohortId ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetCohortId() string
func (*TeamEventLeaderboard) GetContributions ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetContributions() []*TeamEventLeaderboardContribution
func (*TeamEventLeaderboard) GetCount ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetCount() int64
func (*TeamEventLeaderboard) GetCurrentTimeSec ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetCurrentTimeSec() int64
func (*TeamEventLeaderboard) GetDescription ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetDescription() string
func (*TeamEventLeaderboard) GetEndTimeSec ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetEndTimeSec() int64
func (*TeamEventLeaderboard) GetExpiryTimeSec ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetExpiryTimeSec() int64
func (*TeamEventLeaderboard) GetId ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetId() string
func (*TeamEventLeaderboard) GetIsActive ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetIsActive() bool
func (*TeamEventLeaderboard) GetMatchmakerProperties ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetMatchmakerProperties() *structpb.Struct
func (*TeamEventLeaderboard) GetMaxCount ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetMaxCount() int64
func (*TeamEventLeaderboard) GetMaxNumScore ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetMaxNumScore() int64
func (*TeamEventLeaderboard) GetName ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetName() string
func (*TeamEventLeaderboard) GetOperator ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetOperator() string
func (*TeamEventLeaderboard) GetReward ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetReward() *Reward
func (*TeamEventLeaderboard) GetRewardTiers ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetRewardTiers() map[int32]*EventLeaderboardRewardTiers
func (*TeamEventLeaderboard) GetScores ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetScores() []*TeamEventLeaderboardScore
func (*TeamEventLeaderboard) GetStartTimeSec ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetStartTimeSec() int64
func (*TeamEventLeaderboard) GetTier ¶ added in v1.26.0
func (x *TeamEventLeaderboard) GetTier() int32
func (*TeamEventLeaderboard) ProtoMessage ¶ added in v1.26.0
func (*TeamEventLeaderboard) ProtoMessage()
func (*TeamEventLeaderboard) ProtoReflect ¶ added in v1.26.0
func (x *TeamEventLeaderboard) ProtoReflect() protoreflect.Message
func (*TeamEventLeaderboard) Reset ¶ added in v1.26.0
func (x *TeamEventLeaderboard) Reset()
func (*TeamEventLeaderboard) String ¶ added in v1.26.0
func (x *TeamEventLeaderboard) String() string
type TeamEventLeaderboardClaim ¶ added in v1.26.0
type TeamEventLeaderboardClaim struct {
// Team identifier for which to attempt the claim.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Event leaderboard ID to claim.
EventLeaderboardId string `protobuf:"bytes,2,opt,name=event_leaderboard_id,json=eventLeaderboardId,proto3" json:"event_leaderboard_id,omitempty"`
// contains filtered or unexported fields
}
Claim the available reward for a team event leaderboard by ID.
func (*TeamEventLeaderboardClaim) Descriptor
deprecated
added in
v1.26.0
func (*TeamEventLeaderboardClaim) Descriptor() ([]byte, []int)
Deprecated: Use TeamEventLeaderboardClaim.ProtoReflect.Descriptor instead.
func (*TeamEventLeaderboardClaim) GetEventLeaderboardId ¶ added in v1.26.0
func (x *TeamEventLeaderboardClaim) GetEventLeaderboardId() string
func (*TeamEventLeaderboardClaim) GetId ¶ added in v1.26.0
func (x *TeamEventLeaderboardClaim) GetId() string
func (*TeamEventLeaderboardClaim) ProtoMessage ¶ added in v1.26.0
func (*TeamEventLeaderboardClaim) ProtoMessage()
func (*TeamEventLeaderboardClaim) ProtoReflect ¶ added in v1.26.0
func (x *TeamEventLeaderboardClaim) ProtoReflect() protoreflect.Message
func (*TeamEventLeaderboardClaim) Reset ¶ added in v1.26.0
func (x *TeamEventLeaderboardClaim) Reset()
func (*TeamEventLeaderboardClaim) String ¶ added in v1.26.0
func (x *TeamEventLeaderboardClaim) String() string
type TeamEventLeaderboardContribution ¶ added in v1.26.0
type TeamEventLeaderboardContribution struct {
// User ID that owns this contribution.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Username.
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// Display name.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Avatar URL.
AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
// Time when the user first submitted a score for this cohort.
CreateTimeSec int64 `protobuf:"varint,5,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// Time when the user last submitted a score fir this cohort.
UpdateTimeSec int64 `protobuf:"varint,6,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Aggregate score submitted by this user.
Score int64 `protobuf:"varint,7,opt,name=score,proto3" json:"score,omitempty"`
// Aggregate subscore submitted by this user.
Subscore int64 `protobuf:"varint,8,opt,name=subscore,proto3" json:"subscore,omitempty"`
// Number of score submissions from this user.
NumScores int64 `protobuf:"varint,9,opt,name=num_scores,json=numScores,proto3" json:"num_scores,omitempty"`
// Metadata for this user's most recent score update.
Metadata string `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
Individual user contribution towards the score of a team in a team event leaderboard.
func (*TeamEventLeaderboardContribution) Descriptor
deprecated
added in
v1.26.0
func (*TeamEventLeaderboardContribution) Descriptor() ([]byte, []int)
Deprecated: Use TeamEventLeaderboardContribution.ProtoReflect.Descriptor instead.
func (*TeamEventLeaderboardContribution) GetAvatarUrl ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) GetAvatarUrl() string
func (*TeamEventLeaderboardContribution) GetCreateTimeSec ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) GetCreateTimeSec() int64
func (*TeamEventLeaderboardContribution) GetDisplayName ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) GetDisplayName() string
func (*TeamEventLeaderboardContribution) GetId ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) GetId() string
func (*TeamEventLeaderboardContribution) GetMetadata ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) GetMetadata() string
func (*TeamEventLeaderboardContribution) GetNumScores ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) GetNumScores() int64
func (*TeamEventLeaderboardContribution) GetScore ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) GetScore() int64
func (*TeamEventLeaderboardContribution) GetSubscore ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) GetSubscore() int64
func (*TeamEventLeaderboardContribution) GetUpdateTimeSec ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) GetUpdateTimeSec() int64
func (*TeamEventLeaderboardContribution) GetUsername ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) GetUsername() string
func (*TeamEventLeaderboardContribution) ProtoMessage ¶ added in v1.26.0
func (*TeamEventLeaderboardContribution) ProtoMessage()
func (*TeamEventLeaderboardContribution) ProtoReflect ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) ProtoReflect() protoreflect.Message
func (*TeamEventLeaderboardContribution) Reset ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) Reset()
func (*TeamEventLeaderboardContribution) String ¶ added in v1.26.0
func (x *TeamEventLeaderboardContribution) String() string
type TeamEventLeaderboardDebugFillRequest ¶ added in v1.26.0
type TeamEventLeaderboardDebugFillRequest struct {
// Team identifier for which to fill the cohort.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Event leaderboard ID to fill.
EventLeaderboardId string `protobuf:"bytes,2,opt,name=event_leaderboard_id,json=eventLeaderboardId,proto3" json:"event_leaderboard_id,omitempty"`
// Optional target cohort size to fill to, otherwise fill to max cohort size.
TargetCount int32 `protobuf:"varint,3,opt,name=target_count,json=targetCount,proto3" json:"target_count,omitempty"`
// contains filtered or unexported fields
}
func (*TeamEventLeaderboardDebugFillRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamEventLeaderboardDebugFillRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamEventLeaderboardDebugFillRequest.ProtoReflect.Descriptor instead.
func (*TeamEventLeaderboardDebugFillRequest) GetEventLeaderboardId ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugFillRequest) GetEventLeaderboardId() string
func (*TeamEventLeaderboardDebugFillRequest) GetId ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugFillRequest) GetId() string
func (*TeamEventLeaderboardDebugFillRequest) GetTargetCount ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugFillRequest) GetTargetCount() int32
func (*TeamEventLeaderboardDebugFillRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamEventLeaderboardDebugFillRequest) ProtoMessage()
func (*TeamEventLeaderboardDebugFillRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugFillRequest) ProtoReflect() protoreflect.Message
func (*TeamEventLeaderboardDebugFillRequest) Reset ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugFillRequest) Reset()
func (*TeamEventLeaderboardDebugFillRequest) String ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugFillRequest) String() string
type TeamEventLeaderboardDebugRandomScoresRequest ¶ added in v1.26.0
type TeamEventLeaderboardDebugRandomScoresRequest struct {
// Team identifier for which to use random cohort scores.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Event leaderboard ID to update.
EventLeaderboardId string `protobuf:"bytes,2,opt,name=event_leaderboard_id,json=eventLeaderboardId,proto3" json:"event_leaderboard_id,omitempty"`
// Minimum score, inclusive.
Min int64 `protobuf:"varint,3,opt,name=min,proto3" json:"min,omitempty"`
// Maximum score, inclusive.
Max int64 `protobuf:"varint,4,opt,name=max,proto3" json:"max,omitempty"`
// Optional operator to use when updating scores.
Operator *wrapperspb.Int32Value `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator,omitempty"`
// Minimum subscore, inclusive.
SubscoreMin int64 `protobuf:"varint,6,opt,name=subscore_min,json=subscoreMin,proto3" json:"subscore_min,omitempty"`
// Maximum subscore, inclusive.
SubscoreMax int64 `protobuf:"varint,7,opt,name=subscore_max,json=subscoreMax,proto3" json:"subscore_max,omitempty"`
// contains filtered or unexported fields
}
DEBUG. Payload describing scores to set for a cohort's participants.
func (*TeamEventLeaderboardDebugRandomScoresRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamEventLeaderboardDebugRandomScoresRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamEventLeaderboardDebugRandomScoresRequest.ProtoReflect.Descriptor instead.
func (*TeamEventLeaderboardDebugRandomScoresRequest) GetEventLeaderboardId ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetEventLeaderboardId() string
func (*TeamEventLeaderboardDebugRandomScoresRequest) GetId ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetId() string
func (*TeamEventLeaderboardDebugRandomScoresRequest) GetMax ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetMax() int64
func (*TeamEventLeaderboardDebugRandomScoresRequest) GetMin ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetMin() int64
func (*TeamEventLeaderboardDebugRandomScoresRequest) GetOperator ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetOperator() *wrapperspb.Int32Value
func (*TeamEventLeaderboardDebugRandomScoresRequest) GetSubscoreMax ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetSubscoreMax() int64
func (*TeamEventLeaderboardDebugRandomScoresRequest) GetSubscoreMin ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugRandomScoresRequest) GetSubscoreMin() int64
func (*TeamEventLeaderboardDebugRandomScoresRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamEventLeaderboardDebugRandomScoresRequest) ProtoMessage()
func (*TeamEventLeaderboardDebugRandomScoresRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugRandomScoresRequest) ProtoReflect() protoreflect.Message
func (*TeamEventLeaderboardDebugRandomScoresRequest) Reset ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugRandomScoresRequest) Reset()
func (*TeamEventLeaderboardDebugRandomScoresRequest) String ¶ added in v1.26.0
func (x *TeamEventLeaderboardDebugRandomScoresRequest) String() string
type TeamEventLeaderboardGet ¶ added in v1.26.0
type TeamEventLeaderboardGet struct {
// Team identifier for which to get the team event leaderboard.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Event leaderboard ID to get, and join if necessary/possible.
EventLeaderboardId string `protobuf:"bytes,2,opt,name=event_leaderboard_id,json=eventLeaderboardId,proto3" json:"event_leaderboard_id,omitempty"`
// contains filtered or unexported fields
}
Find and retrieve a team event leaderboard by ID, automatically joining the event if necessary.
func (*TeamEventLeaderboardGet) Descriptor
deprecated
added in
v1.26.0
func (*TeamEventLeaderboardGet) Descriptor() ([]byte, []int)
Deprecated: Use TeamEventLeaderboardGet.ProtoReflect.Descriptor instead.
func (*TeamEventLeaderboardGet) GetEventLeaderboardId ¶ added in v1.26.0
func (x *TeamEventLeaderboardGet) GetEventLeaderboardId() string
func (*TeamEventLeaderboardGet) GetId ¶ added in v1.26.0
func (x *TeamEventLeaderboardGet) GetId() string
func (*TeamEventLeaderboardGet) ProtoMessage ¶ added in v1.26.0
func (*TeamEventLeaderboardGet) ProtoMessage()
func (*TeamEventLeaderboardGet) ProtoReflect ¶ added in v1.26.0
func (x *TeamEventLeaderboardGet) ProtoReflect() protoreflect.Message
func (*TeamEventLeaderboardGet) Reset ¶ added in v1.26.0
func (x *TeamEventLeaderboardGet) Reset()
func (*TeamEventLeaderboardGet) String ¶ added in v1.26.0
func (x *TeamEventLeaderboardGet) String() string
type TeamEventLeaderboardList ¶ added in v1.26.0
type TeamEventLeaderboardList struct {
// Team identifier for which to list team event leaderboards.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Whether or not the response should include scores, defaults to false.
WithScores bool `protobuf:"varint,2,opt,name=with_scores,json=withScores,proto3" json:"with_scores,omitempty"`
// Optional filter of Event Leaderboard categories to list. If empty does not filter on category.
Categories []string `protobuf:"bytes,3,rep,name=categories,proto3" json:"categories,omitempty"`
// contains filtered or unexported fields
}
Retrieve available team event leaderboards.
func (*TeamEventLeaderboardList) Descriptor
deprecated
added in
v1.26.0
func (*TeamEventLeaderboardList) Descriptor() ([]byte, []int)
Deprecated: Use TeamEventLeaderboardList.ProtoReflect.Descriptor instead.
func (*TeamEventLeaderboardList) GetCategories ¶ added in v1.26.0
func (x *TeamEventLeaderboardList) GetCategories() []string
func (*TeamEventLeaderboardList) GetId ¶ added in v1.26.0
func (x *TeamEventLeaderboardList) GetId() string
func (*TeamEventLeaderboardList) GetWithScores ¶ added in v1.26.0
func (x *TeamEventLeaderboardList) GetWithScores() bool
func (*TeamEventLeaderboardList) ProtoMessage ¶ added in v1.26.0
func (*TeamEventLeaderboardList) ProtoMessage()
func (*TeamEventLeaderboardList) ProtoReflect ¶ added in v1.26.0
func (x *TeamEventLeaderboardList) ProtoReflect() protoreflect.Message
func (*TeamEventLeaderboardList) Reset ¶ added in v1.26.0
func (x *TeamEventLeaderboardList) Reset()
func (*TeamEventLeaderboardList) String ¶ added in v1.26.0
func (x *TeamEventLeaderboardList) String() string
type TeamEventLeaderboardRoll ¶ added in v1.26.0
type TeamEventLeaderboardRoll struct {
// Team identifier for which to roll a cohort.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Event leaderboard ID to roll.
EventLeaderboardId string `protobuf:"bytes,2,opt,name=event_leaderboard_id,json=eventLeaderboardId,proto3" json:"event_leaderboard_id,omitempty"`
// Metadata for the initial score write.
Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
Roll a new cohort for the specified team event leaderboard.
func (*TeamEventLeaderboardRoll) Descriptor
deprecated
added in
v1.26.0
func (*TeamEventLeaderboardRoll) Descriptor() ([]byte, []int)
Deprecated: Use TeamEventLeaderboardRoll.ProtoReflect.Descriptor instead.
func (*TeamEventLeaderboardRoll) GetEventLeaderboardId ¶ added in v1.26.0
func (x *TeamEventLeaderboardRoll) GetEventLeaderboardId() string
func (*TeamEventLeaderboardRoll) GetId ¶ added in v1.26.0
func (x *TeamEventLeaderboardRoll) GetId() string
func (*TeamEventLeaderboardRoll) GetMetadata ¶ added in v1.26.0
func (x *TeamEventLeaderboardRoll) GetMetadata() string
func (*TeamEventLeaderboardRoll) ProtoMessage ¶ added in v1.26.0
func (*TeamEventLeaderboardRoll) ProtoMessage()
func (*TeamEventLeaderboardRoll) ProtoReflect ¶ added in v1.26.0
func (x *TeamEventLeaderboardRoll) ProtoReflect() protoreflect.Message
func (*TeamEventLeaderboardRoll) Reset ¶ added in v1.26.0
func (x *TeamEventLeaderboardRoll) Reset()
func (*TeamEventLeaderboardRoll) String ¶ added in v1.26.0
func (x *TeamEventLeaderboardRoll) String() string
type TeamEventLeaderboardScore ¶ added in v1.26.0
type TeamEventLeaderboardScore struct {
// Team identifier which owns this score.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Avatar URL.
AvatarUrl string `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
// Time when the user joined the event leaderboard.
CreateTimeSec int64 `protobuf:"varint,4,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// Time when the user last submitted a score.
UpdateTimeSec int64 `protobuf:"varint,5,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Rank within the event leaderboard.
Rank int64 `protobuf:"varint,6,opt,name=rank,proto3" json:"rank,omitempty"`
// Score.
Score int64 `protobuf:"varint,7,opt,name=score,proto3" json:"score,omitempty"`
// Subscore.
Subscore int64 `protobuf:"varint,8,opt,name=subscore,proto3" json:"subscore,omitempty"`
// Number of score submissions.
NumScores int64 `protobuf:"varint,9,opt,name=num_scores,json=numScores,proto3" json:"num_scores,omitempty"`
// Metadata.
Metadata string `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
A single participant entry to a team event leaderboard.
func (*TeamEventLeaderboardScore) Descriptor
deprecated
added in
v1.26.0
func (*TeamEventLeaderboardScore) Descriptor() ([]byte, []int)
Deprecated: Use TeamEventLeaderboardScore.ProtoReflect.Descriptor instead.
func (*TeamEventLeaderboardScore) GetAvatarUrl ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) GetAvatarUrl() string
func (*TeamEventLeaderboardScore) GetCreateTimeSec ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) GetCreateTimeSec() int64
func (*TeamEventLeaderboardScore) GetId ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) GetId() string
func (*TeamEventLeaderboardScore) GetMetadata ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) GetMetadata() string
func (*TeamEventLeaderboardScore) GetName ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) GetName() string
func (*TeamEventLeaderboardScore) GetNumScores ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) GetNumScores() int64
func (*TeamEventLeaderboardScore) GetRank ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) GetRank() int64
func (*TeamEventLeaderboardScore) GetScore ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) GetScore() int64
func (*TeamEventLeaderboardScore) GetSubscore ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) GetSubscore() int64
func (*TeamEventLeaderboardScore) GetUpdateTimeSec ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) GetUpdateTimeSec() int64
func (*TeamEventLeaderboardScore) ProtoMessage ¶ added in v1.26.0
func (*TeamEventLeaderboardScore) ProtoMessage()
func (*TeamEventLeaderboardScore) ProtoReflect ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) ProtoReflect() protoreflect.Message
func (*TeamEventLeaderboardScore) Reset ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) Reset()
func (*TeamEventLeaderboardScore) String ¶ added in v1.26.0
func (x *TeamEventLeaderboardScore) String() string
type TeamEventLeaderboardUpdate ¶ added in v1.26.0
type TeamEventLeaderboardUpdate struct {
// Team identifier for which to submit the update.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Event leaderboard ID.
EventLeaderboardId string `protobuf:"bytes,2,opt,name=event_leaderboard_id,json=eventLeaderboardId,proto3" json:"event_leaderboard_id,omitempty"`
// Score.
Score int64 `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"`
// Subscore.
Subscore int64 `protobuf:"varint,4,opt,name=subscore,proto3" json:"subscore,omitempty"`
// Metadata.
Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
// Update metadata only if score or subscore change.
ConditionalMetadataUpdate bool `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
Submit a score to a team event leaderboard.
func (*TeamEventLeaderboardUpdate) Descriptor
deprecated
added in
v1.26.0
func (*TeamEventLeaderboardUpdate) Descriptor() ([]byte, []int)
Deprecated: Use TeamEventLeaderboardUpdate.ProtoReflect.Descriptor instead.
func (*TeamEventLeaderboardUpdate) GetConditionalMetadataUpdate ¶ added in v1.26.0
func (x *TeamEventLeaderboardUpdate) GetConditionalMetadataUpdate() bool
func (*TeamEventLeaderboardUpdate) GetEventLeaderboardId ¶ added in v1.26.0
func (x *TeamEventLeaderboardUpdate) GetEventLeaderboardId() string
func (*TeamEventLeaderboardUpdate) GetId ¶ added in v1.26.0
func (x *TeamEventLeaderboardUpdate) GetId() string
func (*TeamEventLeaderboardUpdate) GetMetadata ¶ added in v1.26.0
func (x *TeamEventLeaderboardUpdate) GetMetadata() string
func (*TeamEventLeaderboardUpdate) GetScore ¶ added in v1.26.0
func (x *TeamEventLeaderboardUpdate) GetScore() int64
func (*TeamEventLeaderboardUpdate) GetSubscore ¶ added in v1.26.0
func (x *TeamEventLeaderboardUpdate) GetSubscore() int64
func (*TeamEventLeaderboardUpdate) ProtoMessage ¶ added in v1.26.0
func (*TeamEventLeaderboardUpdate) ProtoMessage()
func (*TeamEventLeaderboardUpdate) ProtoReflect ¶ added in v1.26.0
func (x *TeamEventLeaderboardUpdate) ProtoReflect() protoreflect.Message
func (*TeamEventLeaderboardUpdate) Reset ¶ added in v1.26.0
func (x *TeamEventLeaderboardUpdate) Reset()
func (*TeamEventLeaderboardUpdate) String ¶ added in v1.26.0
func (x *TeamEventLeaderboardUpdate) String() string
type TeamEventLeaderboards ¶ added in v1.26.0
type TeamEventLeaderboards struct {
// Zero or more event leaderboards.
EventLeaderboards []*TeamEventLeaderboard `protobuf:"bytes,1,rep,name=event_leaderboards,json=eventLeaderboards,proto3" json:"event_leaderboards,omitempty"`
// contains filtered or unexported fields
}
Several team event leaderboards the team has access to, resulting from a listing operation.
func (*TeamEventLeaderboards) Descriptor
deprecated
added in
v1.26.0
func (*TeamEventLeaderboards) Descriptor() ([]byte, []int)
Deprecated: Use TeamEventLeaderboards.ProtoReflect.Descriptor instead.
func (*TeamEventLeaderboards) GetEventLeaderboards ¶ added in v1.26.0
func (x *TeamEventLeaderboards) GetEventLeaderboards() []*TeamEventLeaderboard
func (*TeamEventLeaderboards) ProtoMessage ¶ added in v1.26.0
func (*TeamEventLeaderboards) ProtoMessage()
func (*TeamEventLeaderboards) ProtoReflect ¶ added in v1.26.0
func (x *TeamEventLeaderboards) ProtoReflect() protoreflect.Message
func (*TeamEventLeaderboards) Reset ¶ added in v1.26.0
func (x *TeamEventLeaderboards) Reset()
func (*TeamEventLeaderboards) String ¶ added in v1.26.0
func (x *TeamEventLeaderboards) String() string
type TeamEventLeaderboardsConfig ¶ added in v1.26.0
type TeamEventLeaderboardsConfig struct {
EventLeaderboards map[string]*EventLeaderboardsConfigLeaderboard `json:"event_leaderboards,omitempty"`
}
type TeamGetRequest ¶ added in v1.27.0
type TeamGetRequest struct {
// The ID of the team.
TeamId string `protobuf:"bytes,1,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"`
// contains filtered or unexported fields
}
A request to get a team by its TeamID.
func (*TeamGetRequest) Descriptor
deprecated
added in
v1.27.0
func (*TeamGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamGetRequest.ProtoReflect.Descriptor instead.
func (*TeamGetRequest) GetTeamId ¶ added in v1.27.0
func (x *TeamGetRequest) GetTeamId() string
func (*TeamGetRequest) ProtoMessage ¶ added in v1.27.0
func (*TeamGetRequest) ProtoMessage()
func (*TeamGetRequest) ProtoReflect ¶ added in v1.27.0
func (x *TeamGetRequest) ProtoReflect() protoreflect.Message
func (*TeamGetRequest) Reset ¶ added in v1.27.0
func (x *TeamGetRequest) Reset()
func (*TeamGetRequest) String ¶ added in v1.27.0
func (x *TeamGetRequest) String() string
type TeamGift ¶ added in v1.26.0
type TeamGift struct {
// Gift identifier.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Description.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Category.
Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the gift became available.
StartTimeSec int64 `protobuf:"varint,5,opt,name=start_time_sec,json=startTimeSec,proto3" json:"start_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the gift completed, and no further contributions are allowed.
ContributionEndTimeSec int64 `` /* 132-byte string literal not displayed */
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the gift completed, and no further contributions are allowed.
EndTimeSec int64 `protobuf:"varint,7,opt,name=end_time_sec,json=endTimeSec,proto3" json:"end_time_sec,omitempty"`
// Current count.
Count int64 `protobuf:"varint,8,opt,name=count,proto3" json:"count,omitempty"`
// Total count that can be contributed as part of this reward.
MaxCount int64 `protobuf:"varint,9,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"`
// Maximum count that may be submitted from any individual contributor.
MaxContributorCount int64 `protobuf:"varint,10,opt,name=max_contributor_count,json=maxContributorCount,proto3" json:"max_contributor_count,omitempty"`
// Cost per unit of contribution.
ContributionCost *AvailableRewards `protobuf:"bytes,11,opt,name=contribution_cost,json=contributionCost,proto3" json:"contribution_cost,omitempty"`
// Reward per unit of contribution.
ContributionReward *AvailableRewards `protobuf:"bytes,12,opt,name=contribution_reward,json=contributionReward,proto3" json:"contribution_reward,omitempty"`
// Rewards available as part of the gift once contribution thresholds are met.
Rewards []*TeamGiftReward `protobuf:"bytes,13,rep,name=rewards,proto3" json:"rewards,omitempty"`
// Additional properties.
AdditionalProperties *structpb.Struct `protobuf:"bytes,14,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
// Contribution information for team members.
Contributors []*TeamGiftContributor `protobuf:"bytes,15,rep,name=contributors,proto3" json:"contributors,omitempty"`
// Flag indicating if the caller can contribute to this gift.
CanContribute bool `protobuf:"varint,16,opt,name=can_contribute,json=canContribute,proto3" json:"can_contribute,omitempty"`
// The count still available for the caller to contribute.
ContributorRemainingCount int64 `` /* 140-byte string literal not displayed */
// Flag indicating if the caller can claim any rewards from this gift.
CanClaim bool `protobuf:"varint,18,opt,name=can_claim,json=canClaim,proto3" json:"can_claim,omitempty"`
// Rewards available for the caller to claim.
AvailableRewards []*TeamGiftReward `protobuf:"bytes,19,rep,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// contains filtered or unexported fields
}
Team gift available to contribute to or claim rewards from.
func (*TeamGift) Descriptor
deprecated
added in
v1.26.0
func (*TeamGift) GetAdditionalProperties ¶ added in v1.26.0
func (*TeamGift) GetAvailableRewards ¶ added in v1.26.0
func (x *TeamGift) GetAvailableRewards() []*TeamGiftReward
func (*TeamGift) GetCanClaim ¶ added in v1.26.0
func (*TeamGift) GetCanContribute ¶ added in v1.26.0
func (*TeamGift) GetCategory ¶ added in v1.26.0
func (*TeamGift) GetContributionCost ¶ added in v1.26.0
func (x *TeamGift) GetContributionCost() *AvailableRewards
func (*TeamGift) GetContributionEndTimeSec ¶ added in v1.26.0
func (*TeamGift) GetContributionReward ¶ added in v1.26.0
func (x *TeamGift) GetContributionReward() *AvailableRewards
func (*TeamGift) GetContributorRemainingCount ¶ added in v1.26.0
func (*TeamGift) GetContributors ¶ added in v1.26.0
func (x *TeamGift) GetContributors() []*TeamGiftContributor
func (*TeamGift) GetDescription ¶ added in v1.26.0
func (*TeamGift) GetEndTimeSec ¶ added in v1.26.0
func (*TeamGift) GetMaxContributorCount ¶ added in v1.26.0
func (*TeamGift) GetMaxCount ¶ added in v1.26.0
func (*TeamGift) GetRewards ¶ added in v1.26.0
func (x *TeamGift) GetRewards() []*TeamGiftReward
func (*TeamGift) GetStartTimeSec ¶ added in v1.26.0
func (*TeamGift) ProtoMessage ¶ added in v1.26.0
func (*TeamGift) ProtoMessage()
func (*TeamGift) ProtoReflect ¶ added in v1.26.0
func (x *TeamGift) ProtoReflect() protoreflect.Message
type TeamGiftClaimAck ¶ added in v1.26.0
type TeamGiftClaimAck struct {
// Updated gift data.
Gift *TeamGift `protobuf:"bytes,1,opt,name=gift,proto3" json:"gift,omitempty"`
// Rewards that were claimed.
Rewards []*Reward `protobuf:"bytes,2,rep,name=rewards,proto3" json:"rewards,omitempty"`
// contains filtered or unexported fields
}
Result of claiming rewards from a team gift.
func (*TeamGiftClaimAck) Descriptor
deprecated
added in
v1.26.0
func (*TeamGiftClaimAck) Descriptor() ([]byte, []int)
Deprecated: Use TeamGiftClaimAck.ProtoReflect.Descriptor instead.
func (*TeamGiftClaimAck) GetGift ¶ added in v1.26.0
func (x *TeamGiftClaimAck) GetGift() *TeamGift
func (*TeamGiftClaimAck) GetRewards ¶ added in v1.26.0
func (x *TeamGiftClaimAck) GetRewards() []*Reward
func (*TeamGiftClaimAck) ProtoMessage ¶ added in v1.26.0
func (*TeamGiftClaimAck) ProtoMessage()
func (*TeamGiftClaimAck) ProtoReflect ¶ added in v1.26.0
func (x *TeamGiftClaimAck) ProtoReflect() protoreflect.Message
func (*TeamGiftClaimAck) Reset ¶ added in v1.26.0
func (x *TeamGiftClaimAck) Reset()
func (*TeamGiftClaimAck) String ¶ added in v1.26.0
func (x *TeamGiftClaimAck) String() string
type TeamGiftClaimRequest ¶ added in v1.26.0
type TeamGiftClaimRequest struct {
// Team identifier from which to claim a gift.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Gift identifier.
GiftId string `protobuf:"bytes,2,opt,name=gift_id,json=giftId,proto3" json:"gift_id,omitempty"`
// End time for a past iteration of this gift to claim for, or 0 for current.
EndTimeSec int64 `protobuf:"varint,3,opt,name=end_time_sec,json=endTimeSec,proto3" json:"end_time_sec,omitempty"`
// contains filtered or unexported fields
}
Request to claim all rewards currently available from a team gift.
func (*TeamGiftClaimRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamGiftClaimRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamGiftClaimRequest.ProtoReflect.Descriptor instead.
func (*TeamGiftClaimRequest) GetEndTimeSec ¶ added in v1.26.0
func (x *TeamGiftClaimRequest) GetEndTimeSec() int64
func (*TeamGiftClaimRequest) GetGiftId ¶ added in v1.26.0
func (x *TeamGiftClaimRequest) GetGiftId() string
func (*TeamGiftClaimRequest) GetId ¶ added in v1.26.0
func (x *TeamGiftClaimRequest) GetId() string
func (*TeamGiftClaimRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamGiftClaimRequest) ProtoMessage()
func (*TeamGiftClaimRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamGiftClaimRequest) ProtoReflect() protoreflect.Message
func (*TeamGiftClaimRequest) Reset ¶ added in v1.26.0
func (x *TeamGiftClaimRequest) Reset()
func (*TeamGiftClaimRequest) String ¶ added in v1.26.0
func (x *TeamGiftClaimRequest) String() string
type TeamGiftContributeAck ¶ added in v1.26.0
type TeamGiftContributeAck struct {
// Updated gift data.
Gift *TeamGift `protobuf:"bytes,1,opt,name=gift,proto3" json:"gift,omitempty"`
// The count that was actually contributed.
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// Reward that was actually granted for contributing.
Reward *Reward `protobuf:"bytes,3,opt,name=reward,proto3" json:"reward,omitempty"`
// contains filtered or unexported fields
}
Result of contributing to a team gift.
func (*TeamGiftContributeAck) Descriptor
deprecated
added in
v1.26.0
func (*TeamGiftContributeAck) Descriptor() ([]byte, []int)
Deprecated: Use TeamGiftContributeAck.ProtoReflect.Descriptor instead.
func (*TeamGiftContributeAck) GetCount ¶ added in v1.26.0
func (x *TeamGiftContributeAck) GetCount() int64
func (*TeamGiftContributeAck) GetGift ¶ added in v1.26.0
func (x *TeamGiftContributeAck) GetGift() *TeamGift
func (*TeamGiftContributeAck) GetReward ¶ added in v1.26.0
func (x *TeamGiftContributeAck) GetReward() *Reward
func (*TeamGiftContributeAck) ProtoMessage ¶ added in v1.26.0
func (*TeamGiftContributeAck) ProtoMessage()
func (*TeamGiftContributeAck) ProtoReflect ¶ added in v1.26.0
func (x *TeamGiftContributeAck) ProtoReflect() protoreflect.Message
func (*TeamGiftContributeAck) Reset ¶ added in v1.26.0
func (x *TeamGiftContributeAck) Reset()
func (*TeamGiftContributeAck) String ¶ added in v1.26.0
func (x *TeamGiftContributeAck) String() string
type TeamGiftContributeRequest ¶ added in v1.26.0
type TeamGiftContributeRequest struct {
// Team identifier for which to submit a gift contribution.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Gift identifier.
GiftId string `protobuf:"bytes,2,opt,name=gift_id,json=giftId,proto3" json:"gift_id,omitempty"`
// Count to contribute.
Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
Request to contribute to a specific team gift.
func (*TeamGiftContributeRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamGiftContributeRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamGiftContributeRequest.ProtoReflect.Descriptor instead.
func (*TeamGiftContributeRequest) GetCount ¶ added in v1.26.0
func (x *TeamGiftContributeRequest) GetCount() int64
func (*TeamGiftContributeRequest) GetGiftId ¶ added in v1.26.0
func (x *TeamGiftContributeRequest) GetGiftId() string
func (*TeamGiftContributeRequest) GetId ¶ added in v1.26.0
func (x *TeamGiftContributeRequest) GetId() string
func (*TeamGiftContributeRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamGiftContributeRequest) ProtoMessage()
func (*TeamGiftContributeRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamGiftContributeRequest) ProtoReflect() protoreflect.Message
func (*TeamGiftContributeRequest) Reset ¶ added in v1.26.0
func (x *TeamGiftContributeRequest) Reset()
func (*TeamGiftContributeRequest) String ¶ added in v1.26.0
func (x *TeamGiftContributeRequest) String() string
type TeamGiftContributor ¶ added in v1.26.0
type TeamGiftContributor struct {
// User identifier.
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// Username.
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// Avatar URL.
AvatarUrl string `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
// Display name.
DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user first contributed.
CreateTimeSec int64 `protobuf:"varint,5,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user most recently updated their contribution
UpdateTimeSec int64 `protobuf:"varint,6,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// Count contributed by this user.
Count int64 `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
An individual contributor to a team gift.
func (*TeamGiftContributor) Descriptor
deprecated
added in
v1.26.0
func (*TeamGiftContributor) Descriptor() ([]byte, []int)
Deprecated: Use TeamGiftContributor.ProtoReflect.Descriptor instead.
func (*TeamGiftContributor) GetAvatarUrl ¶ added in v1.26.0
func (x *TeamGiftContributor) GetAvatarUrl() string
func (*TeamGiftContributor) GetCount ¶ added in v1.26.0
func (x *TeamGiftContributor) GetCount() int64
func (*TeamGiftContributor) GetCreateTimeSec ¶ added in v1.26.0
func (x *TeamGiftContributor) GetCreateTimeSec() int64
func (*TeamGiftContributor) GetDisplayName ¶ added in v1.26.0
func (x *TeamGiftContributor) GetDisplayName() string
func (*TeamGiftContributor) GetUpdateTimeSec ¶ added in v1.26.0
func (x *TeamGiftContributor) GetUpdateTimeSec() int64
func (*TeamGiftContributor) GetUserId ¶ added in v1.26.0
func (x *TeamGiftContributor) GetUserId() string
func (*TeamGiftContributor) GetUsername ¶ added in v1.26.0
func (x *TeamGiftContributor) GetUsername() string
func (*TeamGiftContributor) ProtoMessage ¶ added in v1.26.0
func (*TeamGiftContributor) ProtoMessage()
func (*TeamGiftContributor) ProtoReflect ¶ added in v1.26.0
func (x *TeamGiftContributor) ProtoReflect() protoreflect.Message
func (*TeamGiftContributor) Reset ¶ added in v1.26.0
func (x *TeamGiftContributor) Reset()
func (*TeamGiftContributor) String ¶ added in v1.26.0
func (x *TeamGiftContributor) String() string
type TeamGiftList ¶ added in v1.26.0
type TeamGiftList struct {
// Gifts available for a team.
Gifts []*TeamGift `protobuf:"bytes,1,rep,name=gifts,proto3" json:"gifts,omitempty"`
// contains filtered or unexported fields
}
A list of gifts available for a team.
func (*TeamGiftList) Descriptor
deprecated
added in
v1.26.0
func (*TeamGiftList) Descriptor() ([]byte, []int)
Deprecated: Use TeamGiftList.ProtoReflect.Descriptor instead.
func (*TeamGiftList) GetGifts ¶ added in v1.26.0
func (x *TeamGiftList) GetGifts() []*TeamGift
func (*TeamGiftList) ProtoMessage ¶ added in v1.26.0
func (*TeamGiftList) ProtoMessage()
func (*TeamGiftList) ProtoReflect ¶ added in v1.26.0
func (x *TeamGiftList) ProtoReflect() protoreflect.Message
func (*TeamGiftList) Reset ¶ added in v1.26.0
func (x *TeamGiftList) Reset()
func (*TeamGiftList) String ¶ added in v1.26.0
func (x *TeamGiftList) String() string
type TeamGiftListRequest ¶ added in v1.26.0
type TeamGiftListRequest struct {
// Team identifier for which to list gifts.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Request to view available gifts for a team.
func (*TeamGiftListRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamGiftListRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamGiftListRequest.ProtoReflect.Descriptor instead.
func (*TeamGiftListRequest) GetId ¶ added in v1.26.0
func (x *TeamGiftListRequest) GetId() string
func (*TeamGiftListRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamGiftListRequest) ProtoMessage()
func (*TeamGiftListRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamGiftListRequest) ProtoReflect() protoreflect.Message
func (*TeamGiftListRequest) Reset ¶ added in v1.26.0
func (x *TeamGiftListRequest) Reset()
func (*TeamGiftListRequest) String ¶ added in v1.26.0
func (x *TeamGiftListRequest) String() string
type TeamGiftReward ¶ added in v1.26.0
type TeamGiftReward struct {
// Minimum count required to unlock this reward.
MinCount int64 `protobuf:"varint,1,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty"`
// Reward for contributors to this gift.
ContributorReward *AvailableRewards `protobuf:"bytes,2,opt,name=contributor_reward,json=contributorReward,proto3" json:"contributor_reward,omitempty"`
// Reward to non-contributing team members.
NoncontributorReward *AvailableRewards `protobuf:"bytes,3,opt,name=noncontributor_reward,json=noncontributorReward,proto3" json:"noncontributor_reward,omitempty"`
// contains filtered or unexported fields
}
Reward associated with a contribution threshold in a team gift.
func (*TeamGiftReward) Descriptor
deprecated
added in
v1.26.0
func (*TeamGiftReward) Descriptor() ([]byte, []int)
Deprecated: Use TeamGiftReward.ProtoReflect.Descriptor instead.
func (*TeamGiftReward) GetContributorReward ¶ added in v1.26.0
func (x *TeamGiftReward) GetContributorReward() *AvailableRewards
func (*TeamGiftReward) GetMinCount ¶ added in v1.26.0
func (x *TeamGiftReward) GetMinCount() int64
func (*TeamGiftReward) GetNoncontributorReward ¶ added in v1.26.0
func (x *TeamGiftReward) GetNoncontributorReward() *AvailableRewards
func (*TeamGiftReward) ProtoMessage ¶ added in v1.26.0
func (*TeamGiftReward) ProtoMessage()
func (*TeamGiftReward) ProtoReflect ¶ added in v1.26.0
func (x *TeamGiftReward) ProtoReflect() protoreflect.Message
func (*TeamGiftReward) Reset ¶ added in v1.26.0
func (x *TeamGiftReward) Reset()
func (*TeamGiftReward) String ¶ added in v1.26.0
func (x *TeamGiftReward) String() string
type TeamGiftsConfig ¶ added in v1.26.0
type TeamGiftsConfig struct {
Gifts map[string]*TeamGiftsConfigGift `json:"gifts,omitempty"`
}
type TeamGiftsConfigGift ¶ added in v1.26.0
type TeamGiftsConfigGift struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Category string `json:"category,omitempty"`
ResetSchedule string `json:"reset_schedule,omitempty"`
DurationSec int64 `json:"duration_sec,omitempty"`
MaxCount int64 `json:"max_count,omitempty"`
MaxContributorCount int64 `json:"max_contributor_count,omitempty"`
ContributionCost *EconomyConfigReward `json:"contribution_cost,omitempty"`
ContributionReward *EconomyConfigReward `json:"contribution_reward,omitempty"`
Rewards []*TeamGiftsConfigGiftReward `json:"rewards,omitempty"`
AdditionalProperties map[string]interface{} `json:"additional_properties,omitempty"`
}
type TeamGiftsConfigGiftReward ¶ added in v1.26.0
type TeamGiftsConfigGiftReward struct {
MinCount int64 `json:"min_count,omitempty"`
ContributorReward *EconomyConfigReward `json:"contributor_reward,omitempty"`
NoncontributorReward *EconomyConfigReward `json:"noncontributor_reward,omitempty"`
}
type TeamInventoryConsumeRequest ¶ added in v1.26.0
type TeamInventoryConsumeRequest struct {
// Team identifier for which to consume inventory items.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Item ID amounts to consume, if any.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// Whether or not to allow overconsumption.
Overconsume bool `protobuf:"varint,3,opt,name=overconsume,proto3" json:"overconsume,omitempty"`
// Instance ID amounts to consume, if any.
Instances map[string]int64 `` /* 160-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to consume some amount of items from a team inventory.
func (*TeamInventoryConsumeRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamInventoryConsumeRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamInventoryConsumeRequest.ProtoReflect.Descriptor instead.
func (*TeamInventoryConsumeRequest) GetId ¶ added in v1.26.0
func (x *TeamInventoryConsumeRequest) GetId() string
func (*TeamInventoryConsumeRequest) GetInstances ¶ added in v1.26.0
func (x *TeamInventoryConsumeRequest) GetInstances() map[string]int64
func (*TeamInventoryConsumeRequest) GetItems ¶ added in v1.26.0
func (x *TeamInventoryConsumeRequest) GetItems() map[string]int64
func (*TeamInventoryConsumeRequest) GetOverconsume ¶ added in v1.26.0
func (x *TeamInventoryConsumeRequest) GetOverconsume() bool
func (*TeamInventoryConsumeRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamInventoryConsumeRequest) ProtoMessage()
func (*TeamInventoryConsumeRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamInventoryConsumeRequest) ProtoReflect() protoreflect.Message
func (*TeamInventoryConsumeRequest) Reset ¶ added in v1.26.0
func (x *TeamInventoryConsumeRequest) Reset()
func (*TeamInventoryConsumeRequest) String ¶ added in v1.26.0
func (x *TeamInventoryConsumeRequest) String() string
type TeamInventoryGrantRequest ¶ added in v1.26.0
type TeamInventoryGrantRequest struct {
// Team identifier for which to grant inventory items.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The items to grant.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// contains filtered or unexported fields
}
Represents a request to grant items to a team.
func (*TeamInventoryGrantRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamInventoryGrantRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamInventoryGrantRequest.ProtoReflect.Descriptor instead.
func (*TeamInventoryGrantRequest) GetId ¶ added in v1.26.0
func (x *TeamInventoryGrantRequest) GetId() string
func (*TeamInventoryGrantRequest) GetItems ¶ added in v1.26.0
func (x *TeamInventoryGrantRequest) GetItems() map[string]int64
func (*TeamInventoryGrantRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamInventoryGrantRequest) ProtoMessage()
func (*TeamInventoryGrantRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamInventoryGrantRequest) ProtoReflect() protoreflect.Message
func (*TeamInventoryGrantRequest) Reset ¶ added in v1.26.0
func (x *TeamInventoryGrantRequest) Reset()
func (*TeamInventoryGrantRequest) String ¶ added in v1.26.0
func (x *TeamInventoryGrantRequest) String() string
type TeamInventoryListRequest ¶ added in v1.26.0
type TeamInventoryListRequest struct {
// Team identifier for which to list inventory items.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The category for the items to filter for, or empty for all.
ItemCategory string `protobuf:"bytes,2,opt,name=item_category,json=itemCategory,proto3" json:"item_category,omitempty"`
// contains filtered or unexported fields
}
Request inventory items in the team inventory.
func (*TeamInventoryListRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamInventoryListRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamInventoryListRequest.ProtoReflect.Descriptor instead.
func (*TeamInventoryListRequest) GetId ¶ added in v1.26.0
func (x *TeamInventoryListRequest) GetId() string
func (*TeamInventoryListRequest) GetItemCategory ¶ added in v1.26.0
func (x *TeamInventoryListRequest) GetItemCategory() string
func (*TeamInventoryListRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamInventoryListRequest) ProtoMessage()
func (*TeamInventoryListRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamInventoryListRequest) ProtoReflect() protoreflect.Message
func (*TeamInventoryListRequest) Reset ¶ added in v1.26.0
func (x *TeamInventoryListRequest) Reset()
func (*TeamInventoryListRequest) String ¶ added in v1.26.0
func (x *TeamInventoryListRequest) String() string
type TeamInventoryUpdateItemsRequest ¶ added in v1.26.0
type TeamInventoryUpdateItemsRequest struct {
// Team identifier for which to update inventory items.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The item updates to action, keyed by item instance ID.
ItemUpdates map[string]*InventoryUpdateItemProperties `` /* 182-byte string literal not displayed */
// contains filtered or unexported fields
}
Represents a request to update properties of instanced items belonging to a team.
func (*TeamInventoryUpdateItemsRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamInventoryUpdateItemsRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamInventoryUpdateItemsRequest.ProtoReflect.Descriptor instead.
func (*TeamInventoryUpdateItemsRequest) GetId ¶ added in v1.26.0
func (x *TeamInventoryUpdateItemsRequest) GetId() string
func (*TeamInventoryUpdateItemsRequest) GetItemUpdates ¶ added in v1.26.0
func (x *TeamInventoryUpdateItemsRequest) GetItemUpdates() map[string]*InventoryUpdateItemProperties
func (*TeamInventoryUpdateItemsRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamInventoryUpdateItemsRequest) ProtoMessage()
func (*TeamInventoryUpdateItemsRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamInventoryUpdateItemsRequest) ProtoReflect() protoreflect.Message
func (*TeamInventoryUpdateItemsRequest) Reset ¶ added in v1.26.0
func (x *TeamInventoryUpdateItemsRequest) Reset()
func (*TeamInventoryUpdateItemsRequest) String ¶ added in v1.26.0
func (x *TeamInventoryUpdateItemsRequest) String() string
type TeamList ¶
type TeamList struct {
// The current page of teams returned in the list.
Teams []*Team `protobuf:"bytes,1,rep,name=teams,proto3" json:"teams,omitempty"`
// A cursor used to get the next page.
Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
// contains filtered or unexported fields
}
A list of teams.
func (*TeamList) Descriptor
deprecated
func (*TeamList) ProtoMessage ¶
func (*TeamList) ProtoMessage()
func (*TeamList) ProtoReflect ¶
func (x *TeamList) ProtoReflect() protoreflect.Message
type TeamListRequest ¶
type TeamListRequest struct {
// An optional cursor used to get the next page.
Cursor string `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
// The optional location filter.
Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
// An optional limit on how many results are returned. Defaults to 10.
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
A request to list teams which a user can join.
func (*TeamListRequest) Descriptor
deprecated
func (*TeamListRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamListRequest.ProtoReflect.Descriptor instead.
func (*TeamListRequest) GetCursor ¶
func (x *TeamListRequest) GetCursor() string
func (*TeamListRequest) GetLimit ¶
func (x *TeamListRequest) GetLimit() int32
func (*TeamListRequest) GetLocation ¶
func (x *TeamListRequest) GetLocation() string
func (*TeamListRequest) ProtoMessage ¶
func (*TeamListRequest) ProtoMessage()
func (*TeamListRequest) ProtoReflect ¶
func (x *TeamListRequest) ProtoReflect() protoreflect.Message
func (*TeamListRequest) Reset ¶
func (x *TeamListRequest) Reset()
func (*TeamListRequest) String ¶
func (x *TeamListRequest) String() string
type TeamMember ¶ added in v1.26.0
type TeamMember struct {
// User identifier.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Activity score.
Activity int64 `protobuf:"varint,2,opt,name=activity,proto3" json:"activity,omitempty"`
// contains filtered or unexported fields
}
Member of a particular team.
func (*TeamMember) Descriptor
deprecated
added in
v1.26.0
func (*TeamMember) Descriptor() ([]byte, []int)
Deprecated: Use TeamMember.ProtoReflect.Descriptor instead.
func (*TeamMember) GetActivity ¶ added in v1.26.0
func (x *TeamMember) GetActivity() int64
func (*TeamMember) GetId ¶ added in v1.26.0
func (x *TeamMember) GetId() string
func (*TeamMember) ProtoMessage ¶ added in v1.26.0
func (*TeamMember) ProtoMessage()
func (*TeamMember) ProtoReflect ¶ added in v1.26.0
func (x *TeamMember) ProtoReflect() protoreflect.Message
func (*TeamMember) Reset ¶ added in v1.26.0
func (x *TeamMember) Reset()
func (*TeamMember) String ¶ added in v1.26.0
func (x *TeamMember) String() string
type TeamMemberReward ¶ added in v1.26.0
type TeamMemberReward struct {
// The items granted. Keyed by item ID.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// The currencies granted.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// The energy granted.
Energies map[string]int32 `` /* 158-byte string literal not displayed */
// The energy modifier granted.
EnergyModifiers []*RewardEnergyModifier `protobuf:"bytes,4,rep,name=energy_modifiers,json=energyModifiers,proto3" json:"energy_modifiers,omitempty"`
// The reward modifiers granted.
RewardModifiers []*RewardModifier `protobuf:"bytes,5,rep,name=reward_modifiers,json=rewardModifiers,proto3" json:"reward_modifiers,omitempty"`
// When the reward was granted, in UNIX time.
GrantTimeSec int64 `protobuf:"varint,6,opt,name=grant_time_sec,json=grantTimeSec,proto3" json:"grant_time_sec,omitempty"`
// The item instances granted. Keyed by item instance ID.
ItemInstances map[string]*RewardInventoryItem `` /* 188-byte string literal not displayed */
// contains filtered or unexported fields
}
Rewards granted to each member of the team.
func (*TeamMemberReward) Descriptor
deprecated
added in
v1.26.0
func (*TeamMemberReward) Descriptor() ([]byte, []int)
Deprecated: Use TeamMemberReward.ProtoReflect.Descriptor instead.
func (*TeamMemberReward) GetCurrencies ¶ added in v1.26.0
func (x *TeamMemberReward) GetCurrencies() map[string]int64
func (*TeamMemberReward) GetEnergies ¶ added in v1.26.0
func (x *TeamMemberReward) GetEnergies() map[string]int32
func (*TeamMemberReward) GetEnergyModifiers ¶ added in v1.26.0
func (x *TeamMemberReward) GetEnergyModifiers() []*RewardEnergyModifier
func (*TeamMemberReward) GetGrantTimeSec ¶ added in v1.26.0
func (x *TeamMemberReward) GetGrantTimeSec() int64
func (*TeamMemberReward) GetItemInstances ¶ added in v1.26.0
func (x *TeamMemberReward) GetItemInstances() map[string]*RewardInventoryItem
func (*TeamMemberReward) GetItems ¶ added in v1.26.0
func (x *TeamMemberReward) GetItems() map[string]int64
func (*TeamMemberReward) GetRewardModifiers ¶ added in v1.26.0
func (x *TeamMemberReward) GetRewardModifiers() []*RewardModifier
func (*TeamMemberReward) ProtoMessage ¶ added in v1.26.0
func (*TeamMemberReward) ProtoMessage()
func (*TeamMemberReward) ProtoReflect ¶ added in v1.26.0
func (x *TeamMemberReward) ProtoReflect() protoreflect.Message
func (*TeamMemberReward) Reset ¶ added in v1.26.0
func (x *TeamMemberReward) Reset()
func (*TeamMemberReward) String ¶ added in v1.26.0
func (x *TeamMemberReward) String() string
type TeamReward ¶ added in v1.26.0
type TeamReward struct {
// The items granted. Keyed by item ID.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// The currencies granted.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// The reward modifiers granted.
RewardModifiers []*RewardModifier `protobuf:"bytes,3,rep,name=reward_modifiers,json=rewardModifiers,proto3" json:"reward_modifiers,omitempty"`
// The reward modifiers granted that will apply to team members.
MemberRewardModifiers []*RewardModifier `` /* 126-byte string literal not displayed */
// When the reward was granted, in UNIX time.
GrantTimeSec int64 `protobuf:"varint,5,opt,name=grant_time_sec,json=grantTimeSec,proto3" json:"grant_time_sec,omitempty"`
// The item instances granted. Keyed by item instance ID.
ItemInstances map[string]*RewardInventoryItem `` /* 188-byte string literal not displayed */
// Indicates if this reward was sent to the team reward mailbox, and what its expiry will be.
ToMailboxExpirySec int64 `protobuf:"varint,7,opt,name=to_mailbox_expiry_sec,json=toMailboxExpirySec,proto3" json:"to_mailbox_expiry_sec,omitempty"`
// Reward granted to each team member.
MemberReward *TeamMemberReward `protobuf:"bytes,8,opt,name=member_reward,json=memberReward,proto3" json:"member_reward,omitempty"`
// contains filtered or unexported fields
}
Rewards granted to the team.
func (*TeamReward) Descriptor
deprecated
added in
v1.26.0
func (*TeamReward) Descriptor() ([]byte, []int)
Deprecated: Use TeamReward.ProtoReflect.Descriptor instead.
func (*TeamReward) GetCurrencies ¶ added in v1.26.0
func (x *TeamReward) GetCurrencies() map[string]int64
func (*TeamReward) GetGrantTimeSec ¶ added in v1.26.0
func (x *TeamReward) GetGrantTimeSec() int64
func (*TeamReward) GetItemInstances ¶ added in v1.26.0
func (x *TeamReward) GetItemInstances() map[string]*RewardInventoryItem
func (*TeamReward) GetItems ¶ added in v1.26.0
func (x *TeamReward) GetItems() map[string]int64
func (*TeamReward) GetMemberReward ¶ added in v1.26.0
func (x *TeamReward) GetMemberReward() *TeamMemberReward
func (*TeamReward) GetMemberRewardModifiers ¶ added in v1.26.0
func (x *TeamReward) GetMemberRewardModifiers() []*RewardModifier
func (*TeamReward) GetRewardModifiers ¶ added in v1.26.0
func (x *TeamReward) GetRewardModifiers() []*RewardModifier
func (*TeamReward) GetToMailboxExpirySec ¶ added in v1.26.0
func (x *TeamReward) GetToMailboxExpirySec() int64
func (*TeamReward) ProtoMessage ¶ added in v1.26.0
func (*TeamReward) ProtoMessage()
func (*TeamReward) ProtoReflect ¶ added in v1.26.0
func (x *TeamReward) ProtoReflect() protoreflect.Message
func (*TeamReward) Reset ¶ added in v1.26.0
func (x *TeamReward) Reset()
func (*TeamReward) String ¶ added in v1.26.0
func (x *TeamReward) String() string
type TeamRewardMailboxClaimRequest ¶ added in v1.26.0
type TeamRewardMailboxClaimRequest struct {
// Team identifier for which to claim a mailbox entry.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Identifier for the reward mailbox entry to claim.
EntryId string `protobuf:"bytes,2,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"`
// If the entry should be deleted as part of the claim.
Delete bool `protobuf:"varint,3,opt,name=delete,proto3" json:"delete,omitempty"`
// contains filtered or unexported fields
}
Request to claim a team reward mailbox entry, and optionally remove it at the same time.
func (*TeamRewardMailboxClaimRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamRewardMailboxClaimRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamRewardMailboxClaimRequest.ProtoReflect.Descriptor instead.
func (*TeamRewardMailboxClaimRequest) GetDelete ¶ added in v1.26.0
func (x *TeamRewardMailboxClaimRequest) GetDelete() bool
func (*TeamRewardMailboxClaimRequest) GetEntryId ¶ added in v1.26.0
func (x *TeamRewardMailboxClaimRequest) GetEntryId() string
func (*TeamRewardMailboxClaimRequest) GetId ¶ added in v1.26.0
func (x *TeamRewardMailboxClaimRequest) GetId() string
func (*TeamRewardMailboxClaimRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamRewardMailboxClaimRequest) ProtoMessage()
func (*TeamRewardMailboxClaimRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamRewardMailboxClaimRequest) ProtoReflect() protoreflect.Message
func (*TeamRewardMailboxClaimRequest) Reset ¶ added in v1.26.0
func (x *TeamRewardMailboxClaimRequest) Reset()
func (*TeamRewardMailboxClaimRequest) String ¶ added in v1.26.0
func (x *TeamRewardMailboxClaimRequest) String() string
type TeamRewardMailboxConfig ¶ added in v1.26.0
type TeamRewardMailboxConfig struct {
MaxSize int `json:"max_size,omitempty"`
}
type TeamRewardMailboxDeleteRequest ¶ added in v1.26.0
type TeamRewardMailboxDeleteRequest struct {
// Team identifier for which to delete a mailbox entry.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Identifier for the reward mailbox entry to delete.
EntryIds []string `protobuf:"bytes,2,rep,name=entry_ids,json=entryIds,proto3" json:"entry_ids,omitempty"`
// contains filtered or unexported fields
}
Request to delete a team reward mailbox entry, even if it is not yet claimed.
func (*TeamRewardMailboxDeleteRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamRewardMailboxDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamRewardMailboxDeleteRequest.ProtoReflect.Descriptor instead.
func (*TeamRewardMailboxDeleteRequest) GetEntryIds ¶ added in v1.26.0
func (x *TeamRewardMailboxDeleteRequest) GetEntryIds() []string
func (*TeamRewardMailboxDeleteRequest) GetId ¶ added in v1.26.0
func (x *TeamRewardMailboxDeleteRequest) GetId() string
func (*TeamRewardMailboxDeleteRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamRewardMailboxDeleteRequest) ProtoMessage()
func (*TeamRewardMailboxDeleteRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamRewardMailboxDeleteRequest) ProtoReflect() protoreflect.Message
func (*TeamRewardMailboxDeleteRequest) Reset ¶ added in v1.26.0
func (x *TeamRewardMailboxDeleteRequest) Reset()
func (*TeamRewardMailboxDeleteRequest) String ¶ added in v1.26.0
func (x *TeamRewardMailboxDeleteRequest) String() string
type TeamRewardMailboxListRequest ¶ added in v1.26.0
type TeamRewardMailboxListRequest struct {
// Team identifier for which to list reward mailbox entries.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Maximum number of reward mailbox entries to return.
Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// Cursor to paginate from, if any.
Cursor string `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
// contains filtered or unexported fields
}
Request to list team reward mailbox entries.
func (*TeamRewardMailboxListRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamRewardMailboxListRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamRewardMailboxListRequest.ProtoReflect.Descriptor instead.
func (*TeamRewardMailboxListRequest) GetCursor ¶ added in v1.26.0
func (x *TeamRewardMailboxListRequest) GetCursor() string
func (*TeamRewardMailboxListRequest) GetId ¶ added in v1.26.0
func (x *TeamRewardMailboxListRequest) GetId() string
func (*TeamRewardMailboxListRequest) GetLimit ¶ added in v1.26.0
func (x *TeamRewardMailboxListRequest) GetLimit() int64
func (*TeamRewardMailboxListRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamRewardMailboxListRequest) ProtoMessage()
func (*TeamRewardMailboxListRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamRewardMailboxListRequest) ProtoReflect() protoreflect.Message
func (*TeamRewardMailboxListRequest) Reset ¶ added in v1.26.0
func (x *TeamRewardMailboxListRequest) Reset()
func (*TeamRewardMailboxListRequest) String ¶ added in v1.26.0
func (x *TeamRewardMailboxListRequest) String() string
type TeamSearchRequest ¶
type TeamSearchRequest struct {
// The search term(s) passed in by the user.
Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
// An optional limit on how many results are returned. Defaults to 10.
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// Additionally search by language, if specified.
LangTag string `protobuf:"bytes,3,opt,name=lang_tag,json=langTag,proto3" json:"lang_tag,omitempty"`
// Minimum team activity score, if specified.
MinActivity int64 `protobuf:"varint,4,opt,name=min_activity,json=minActivity,proto3" json:"min_activity,omitempty"`
// contains filtered or unexported fields
}
A request to search for teams which the user wants to join.
func (*TeamSearchRequest) Descriptor
deprecated
func (*TeamSearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamSearchRequest.ProtoReflect.Descriptor instead.
func (*TeamSearchRequest) GetInput ¶
func (x *TeamSearchRequest) GetInput() string
func (*TeamSearchRequest) GetLangTag ¶ added in v1.19.0
func (x *TeamSearchRequest) GetLangTag() string
func (*TeamSearchRequest) GetLimit ¶
func (x *TeamSearchRequest) GetLimit() int32
func (*TeamSearchRequest) GetMinActivity ¶ added in v1.26.0
func (x *TeamSearchRequest) GetMinActivity() int64
func (*TeamSearchRequest) ProtoMessage ¶
func (*TeamSearchRequest) ProtoMessage()
func (*TeamSearchRequest) ProtoReflect ¶
func (x *TeamSearchRequest) ProtoReflect() protoreflect.Message
func (*TeamSearchRequest) Reset ¶
func (x *TeamSearchRequest) Reset()
func (*TeamSearchRequest) String ¶
func (x *TeamSearchRequest) String() string
type TeamStatListRequest ¶ added in v1.26.0
type TeamStatListRequest struct {
// Team identifier to fetch stats for.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Request to retrieve stats for specified team.
func (*TeamStatListRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamStatListRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamStatListRequest.ProtoReflect.Descriptor instead.
func (*TeamStatListRequest) GetId ¶ added in v1.26.0
func (x *TeamStatListRequest) GetId() string
func (*TeamStatListRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamStatListRequest) ProtoMessage()
func (*TeamStatListRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamStatListRequest) ProtoReflect() protoreflect.Message
func (*TeamStatListRequest) Reset ¶ added in v1.26.0
func (x *TeamStatListRequest) Reset()
func (*TeamStatListRequest) String ¶ added in v1.26.0
func (x *TeamStatListRequest) String() string
type TeamStatUpdateRequest ¶ added in v1.26.0
type TeamStatUpdateRequest struct {
// Team identifier for which to update stats.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Public stat updates.
Public []*StatUpdate `protobuf:"bytes,2,rep,name=public,proto3" json:"public,omitempty"`
// Private stat updates.
Private []*StatUpdate `protobuf:"bytes,3,rep,name=private,proto3" json:"private,omitempty"`
// contains filtered or unexported fields
}
Request an optionally batched stats update for a specified team.
func (*TeamStatUpdateRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamStatUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamStatUpdateRequest.ProtoReflect.Descriptor instead.
func (*TeamStatUpdateRequest) GetId ¶ added in v1.26.0
func (x *TeamStatUpdateRequest) GetId() string
func (*TeamStatUpdateRequest) GetPrivate ¶ added in v1.26.0
func (x *TeamStatUpdateRequest) GetPrivate() []*StatUpdate
func (*TeamStatUpdateRequest) GetPublic ¶ added in v1.26.0
func (x *TeamStatUpdateRequest) GetPublic() []*StatUpdate
func (*TeamStatUpdateRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamStatUpdateRequest) ProtoMessage()
func (*TeamStatUpdateRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamStatUpdateRequest) ProtoReflect() protoreflect.Message
func (*TeamStatUpdateRequest) Reset ¶ added in v1.26.0
func (x *TeamStatUpdateRequest) Reset()
func (*TeamStatUpdateRequest) String ¶ added in v1.26.0
func (x *TeamStatUpdateRequest) String() string
type TeamStore ¶ added in v1.26.0
type TeamStore struct {
// The list of store items.
StoreItems []*TeamStoreItem `protobuf:"bytes,1,rep,name=store_items,json=storeItems,proto3" json:"store_items,omitempty"`
// The list of active reward modifiers.
ActiveRewardModifiers []*ActiveRewardModifier `` /* 126-byte string literal not displayed */
// Current server time.
CurrentTimeSec int64 `protobuf:"varint,5,opt,name=current_time_sec,json=currentTimeSec,proto3" json:"current_time_sec,omitempty"`
// contains filtered or unexported fields
}
A list of team store items available for purchase.
func (*TeamStore) Descriptor
deprecated
added in
v1.26.0
func (*TeamStore) GetActiveRewardModifiers ¶ added in v1.26.0
func (x *TeamStore) GetActiveRewardModifiers() []*ActiveRewardModifier
func (*TeamStore) GetCurrentTimeSec ¶ added in v1.26.0
func (*TeamStore) GetStoreItems ¶ added in v1.26.0
func (x *TeamStore) GetStoreItems() []*TeamStoreItem
func (*TeamStore) ProtoMessage ¶ added in v1.26.0
func (*TeamStore) ProtoMessage()
func (*TeamStore) ProtoReflect ¶ added in v1.26.0
func (x *TeamStore) ProtoReflect() protoreflect.Message
type TeamStoreItem ¶ added in v1.26.0
type TeamStoreItem struct {
// The category to group the item together with others.
Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
// The cost of the item.
Cost *TeamStoreItemCost `protobuf:"bytes,2,opt,name=cost,proto3" json:"cost,omitempty"`
// A description of the item. May be an i18n code.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// The ID of the item.
Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
// The name of the item. May be an i18n code.
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
// The available rewards in this store item.
AvailableRewards *AvailableRewards `protobuf:"bytes,6,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 209-byte string literal not displayed */
Unavailable bool `protobuf:"varint,8,opt,name=unavailable,proto3" json:"unavailable,omitempty"`
// contains filtered or unexported fields
}
Represents an individual available team store item.
func (*TeamStoreItem) Descriptor
deprecated
added in
v1.26.0
func (*TeamStoreItem) Descriptor() ([]byte, []int)
Deprecated: Use TeamStoreItem.ProtoReflect.Descriptor instead.
func (*TeamStoreItem) GetAdditionalProperties ¶ added in v1.26.0
func (x *TeamStoreItem) GetAdditionalProperties() map[string]string
func (*TeamStoreItem) GetAvailableRewards ¶ added in v1.26.0
func (x *TeamStoreItem) GetAvailableRewards() *AvailableRewards
func (*TeamStoreItem) GetCategory ¶ added in v1.26.0
func (x *TeamStoreItem) GetCategory() string
func (*TeamStoreItem) GetCost ¶ added in v1.26.0
func (x *TeamStoreItem) GetCost() *TeamStoreItemCost
func (*TeamStoreItem) GetDescription ¶ added in v1.26.0
func (x *TeamStoreItem) GetDescription() string
func (*TeamStoreItem) GetId ¶ added in v1.26.0
func (x *TeamStoreItem) GetId() string
func (*TeamStoreItem) GetName ¶ added in v1.26.0
func (x *TeamStoreItem) GetName() string
func (*TeamStoreItem) GetUnavailable ¶ added in v1.26.0
func (x *TeamStoreItem) GetUnavailable() bool
func (*TeamStoreItem) ProtoMessage ¶ added in v1.26.0
func (*TeamStoreItem) ProtoMessage()
func (*TeamStoreItem) ProtoReflect ¶ added in v1.26.0
func (x *TeamStoreItem) ProtoReflect() protoreflect.Message
func (*TeamStoreItem) Reset ¶ added in v1.26.0
func (x *TeamStoreItem) Reset()
func (*TeamStoreItem) String ¶ added in v1.26.0
func (x *TeamStoreItem) String() string
type TeamStoreItemCost ¶ added in v1.26.0
type TeamStoreItemCost struct {
// The virtual currencies, if any.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// contains filtered or unexported fields
}
The cost(s) associated with a team store item.
func (*TeamStoreItemCost) Descriptor
deprecated
added in
v1.26.0
func (*TeamStoreItemCost) Descriptor() ([]byte, []int)
Deprecated: Use TeamStoreItemCost.ProtoReflect.Descriptor instead.
func (*TeamStoreItemCost) GetCurrencies ¶ added in v1.26.0
func (x *TeamStoreItemCost) GetCurrencies() map[string]int64
func (*TeamStoreItemCost) ProtoMessage ¶ added in v1.26.0
func (*TeamStoreItemCost) ProtoMessage()
func (*TeamStoreItemCost) ProtoReflect ¶ added in v1.26.0
func (x *TeamStoreItemCost) ProtoReflect() protoreflect.Message
func (*TeamStoreItemCost) Reset ¶ added in v1.26.0
func (x *TeamStoreItemCost) Reset()
func (*TeamStoreItemCost) String ¶ added in v1.26.0
func (x *TeamStoreItemCost) String() string
type TeamStoreListRequest ¶ added in v1.26.0
type TeamStoreListRequest struct {
// Team identifier for which to list available team store items.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Represents a request to retrieve available team store items.
func (*TeamStoreListRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamStoreListRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamStoreListRequest.ProtoReflect.Descriptor instead.
func (*TeamStoreListRequest) GetId ¶ added in v1.26.0
func (x *TeamStoreListRequest) GetId() string
func (*TeamStoreListRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamStoreListRequest) ProtoMessage()
func (*TeamStoreListRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamStoreListRequest) ProtoReflect() protoreflect.Message
func (*TeamStoreListRequest) Reset ¶ added in v1.26.0
func (x *TeamStoreListRequest) Reset()
func (*TeamStoreListRequest) String ¶ added in v1.26.0
func (x *TeamStoreListRequest) String() string
type TeamStorePurchaseAck ¶ added in v1.26.0
type TeamStorePurchaseAck struct {
// Updated wallet data, if changed.
Wallet map[string]int64 `` /* 154-byte string literal not displayed */
// Update inventory data, if changed.
Inventory *Inventory `protobuf:"bytes,2,opt,name=inventory,proto3" json:"inventory,omitempty"`
// Reward, if any.
Reward *Reward `protobuf:"bytes,3,opt,name=reward,proto3" json:"reward,omitempty"`
// contains filtered or unexported fields
}
Response from purchasing currencies and/or items. Contains updated wallet and inventory data, if changed. Contains reward granted, if any.
func (*TeamStorePurchaseAck) Descriptor
deprecated
added in
v1.26.0
func (*TeamStorePurchaseAck) Descriptor() ([]byte, []int)
Deprecated: Use TeamStorePurchaseAck.ProtoReflect.Descriptor instead.
func (*TeamStorePurchaseAck) GetInventory ¶ added in v1.26.0
func (x *TeamStorePurchaseAck) GetInventory() *Inventory
func (*TeamStorePurchaseAck) GetReward ¶ added in v1.26.0
func (x *TeamStorePurchaseAck) GetReward() *Reward
func (*TeamStorePurchaseAck) GetWallet ¶ added in v1.26.0
func (x *TeamStorePurchaseAck) GetWallet() map[string]int64
func (*TeamStorePurchaseAck) ProtoMessage ¶ added in v1.26.0
func (*TeamStorePurchaseAck) ProtoMessage()
func (*TeamStorePurchaseAck) ProtoReflect ¶ added in v1.26.0
func (x *TeamStorePurchaseAck) ProtoReflect() protoreflect.Message
func (*TeamStorePurchaseAck) Reset ¶ added in v1.26.0
func (x *TeamStorePurchaseAck) Reset()
func (*TeamStorePurchaseAck) String ¶ added in v1.26.0
func (x *TeamStorePurchaseAck) String() string
type TeamStorePurchaseRequest ¶ added in v1.26.0
type TeamStorePurchaseRequest struct {
// Team identifier for which to purchase a team store item.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// A store item's ID.
ItemId string `protobuf:"bytes,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
// contains filtered or unexported fields
}
Request to purchase a particular team store item.
func (*TeamStorePurchaseRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamStorePurchaseRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamStorePurchaseRequest.ProtoReflect.Descriptor instead.
func (*TeamStorePurchaseRequest) GetId ¶ added in v1.26.0
func (x *TeamStorePurchaseRequest) GetId() string
func (*TeamStorePurchaseRequest) GetItemId ¶ added in v1.26.0
func (x *TeamStorePurchaseRequest) GetItemId() string
func (*TeamStorePurchaseRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamStorePurchaseRequest) ProtoMessage()
func (*TeamStorePurchaseRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamStorePurchaseRequest) ProtoReflect() protoreflect.Message
func (*TeamStorePurchaseRequest) Reset ¶ added in v1.26.0
func (x *TeamStorePurchaseRequest) Reset()
func (*TeamStorePurchaseRequest) String ¶ added in v1.26.0
func (x *TeamStorePurchaseRequest) String() string
type TeamUpdateRequest ¶ added in v1.26.0
type TeamUpdateRequest struct {
// Team identifier.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// A new name for the team, or empty to leave unchanged.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// A new description for the team, or empty to leave unchanged.
Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
// True if the team is open to join by any user.
Open bool `protobuf:"varint,4,opt,name=open,proto3" json:"open,omitempty"`
// The avatar URL or artwork reference ID for the team, or empty to leave unchanged.
AvatarUrl string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
// The language expected to be a tag which follows the BCP-47 spec, or empty to leave unchanged.
LangTag string `protobuf:"bytes,6,opt,name=lang_tag,json=langTag,proto3" json:"lang_tag,omitempty"`
// Metadata to assign to the team, or empty to leave unchanged.
Metadata *structpb.Struct `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
Request to update a team.
func (*TeamUpdateRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamUpdateRequest.ProtoReflect.Descriptor instead.
func (*TeamUpdateRequest) GetAvatarUrl ¶ added in v1.26.0
func (x *TeamUpdateRequest) GetAvatarUrl() string
func (*TeamUpdateRequest) GetDesc ¶ added in v1.26.0
func (x *TeamUpdateRequest) GetDesc() string
func (*TeamUpdateRequest) GetId ¶ added in v1.26.0
func (x *TeamUpdateRequest) GetId() string
func (*TeamUpdateRequest) GetLangTag ¶ added in v1.26.0
func (x *TeamUpdateRequest) GetLangTag() string
func (*TeamUpdateRequest) GetMetadata ¶ added in v1.26.0
func (x *TeamUpdateRequest) GetMetadata() *structpb.Struct
func (*TeamUpdateRequest) GetName ¶ added in v1.26.0
func (x *TeamUpdateRequest) GetName() string
func (*TeamUpdateRequest) GetOpen ¶ added in v1.26.0
func (x *TeamUpdateRequest) GetOpen() bool
func (*TeamUpdateRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamUpdateRequest) ProtoMessage()
func (*TeamUpdateRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamUpdateRequest) ProtoReflect() protoreflect.Message
func (*TeamUpdateRequest) Reset ¶ added in v1.26.0
func (x *TeamUpdateRequest) Reset()
func (*TeamUpdateRequest) String ¶ added in v1.26.0
func (x *TeamUpdateRequest) String() string
type TeamWallet ¶ added in v1.26.0
type TeamWallet struct {
// Team identifier this wallet belongs to.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Currencies currently in the team's wallet.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// Last time in UTC seconds when the wallet was updated.
UpdateTimeSec int64 `protobuf:"varint,3,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// contains filtered or unexported fields
}
Represents the contents of a team's wallet.
func (*TeamWallet) Descriptor
deprecated
added in
v1.26.0
func (*TeamWallet) Descriptor() ([]byte, []int)
Deprecated: Use TeamWallet.ProtoReflect.Descriptor instead.
func (*TeamWallet) GetCurrencies ¶ added in v1.26.0
func (x *TeamWallet) GetCurrencies() map[string]int64
func (*TeamWallet) GetId ¶ added in v1.26.0
func (x *TeamWallet) GetId() string
func (*TeamWallet) GetUpdateTimeSec ¶ added in v1.26.0
func (x *TeamWallet) GetUpdateTimeSec() int64
func (*TeamWallet) ProtoMessage ¶ added in v1.26.0
func (*TeamWallet) ProtoMessage()
func (*TeamWallet) ProtoReflect ¶ added in v1.26.0
func (x *TeamWallet) ProtoReflect() protoreflect.Message
func (*TeamWallet) Reset ¶ added in v1.26.0
func (x *TeamWallet) Reset()
func (*TeamWallet) String ¶ added in v1.26.0
func (x *TeamWallet) String() string
type TeamWalletGetRequest ¶ added in v1.26.0
type TeamWalletGetRequest struct {
// The team identifier to fetch a wallet for.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Request to fetch a team's wallet.
func (*TeamWalletGetRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamWalletGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamWalletGetRequest.ProtoReflect.Descriptor instead.
func (*TeamWalletGetRequest) GetId ¶ added in v1.26.0
func (x *TeamWalletGetRequest) GetId() string
func (*TeamWalletGetRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamWalletGetRequest) ProtoMessage()
func (*TeamWalletGetRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamWalletGetRequest) ProtoReflect() protoreflect.Message
func (*TeamWalletGetRequest) Reset ¶ added in v1.26.0
func (x *TeamWalletGetRequest) Reset()
func (*TeamWalletGetRequest) String ¶ added in v1.26.0
func (x *TeamWalletGetRequest) String() string
type TeamWalletGrantRequest ¶ added in v1.26.0
type TeamWalletGrantRequest struct {
// The team identifier to update the wallet for.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Currencies to grant.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// contains filtered or unexported fields
}
Request to update a team's wallet.
func (*TeamWalletGrantRequest) Descriptor
deprecated
added in
v1.26.0
func (*TeamWalletGrantRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamWalletGrantRequest.ProtoReflect.Descriptor instead.
func (*TeamWalletGrantRequest) GetCurrencies ¶ added in v1.26.0
func (x *TeamWalletGrantRequest) GetCurrencies() map[string]int64
func (*TeamWalletGrantRequest) GetId ¶ added in v1.26.0
func (x *TeamWalletGrantRequest) GetId() string
func (*TeamWalletGrantRequest) ProtoMessage ¶ added in v1.26.0
func (*TeamWalletGrantRequest) ProtoMessage()
func (*TeamWalletGrantRequest) ProtoReflect ¶ added in v1.26.0
func (x *TeamWalletGrantRequest) ProtoReflect() protoreflect.Message
func (*TeamWalletGrantRequest) Reset ¶ added in v1.26.0
func (x *TeamWalletGrantRequest) Reset()
func (*TeamWalletGrantRequest) String ¶ added in v1.26.0
func (x *TeamWalletGrantRequest) String() string
type TeamWriteChatMessageRequest ¶
type TeamWriteChatMessageRequest struct {
// The ID of the team.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The content of the chat message. Usually an escaped JSON object.
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
A request to write a chat message to the channel for a team the user is part of.
func (*TeamWriteChatMessageRequest) Descriptor
deprecated
func (*TeamWriteChatMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use TeamWriteChatMessageRequest.ProtoReflect.Descriptor instead.
func (*TeamWriteChatMessageRequest) GetContent ¶
func (x *TeamWriteChatMessageRequest) GetContent() string
func (*TeamWriteChatMessageRequest) GetId ¶
func (x *TeamWriteChatMessageRequest) GetId() string
func (*TeamWriteChatMessageRequest) ProtoMessage ¶
func (*TeamWriteChatMessageRequest) ProtoMessage()
func (*TeamWriteChatMessageRequest) ProtoReflect ¶
func (x *TeamWriteChatMessageRequest) ProtoReflect() protoreflect.Message
func (*TeamWriteChatMessageRequest) Reset ¶
func (x *TeamWriteChatMessageRequest) Reset()
func (*TeamWriteChatMessageRequest) String ¶
func (x *TeamWriteChatMessageRequest) String() string
type TeamsAchievementsConfig ¶ added in v1.26.0
type TeamsAchievementsConfig struct {
Achievements map[string]*AchievementsConfigAchievement `json:"achievements,omitempty"`
}
type TeamsConfig ¶
type TeamsConfig struct {
InitialMaxTeamSize int `json:"initial_max_team_size,omitempty"`
MaxTeamSize int `json:"max_team_size,omitempty"`
AllowMultipleTeams bool `json:"allow_multiple_teams,omitempty"`
Wallet *TeamsWalletConfig `json:"wallet,omitempty"`
StoreItems map[string]*TeamEconomyConfigStoreItem `json:"store_items,omitempty"`
Stats *TeamsStatsConfig `json:"stats,omitempty"`
Inventory *TeamsInventoryConfig `json:"inventory,omitempty"`
Achievements *TeamsAchievementsConfig `json:"achievements,omitempty"`
EventLeaderboards *TeamEventLeaderboardsConfig `json:"event_leaderboards,omitempty"`
RewardMailbox *TeamRewardMailboxConfig `json:"reward_mailbox,omitempty"`
Gifts *TeamGiftsConfig `json:"gifts,omitempty"`
}
TeamsConfig is the data definition for a TeamsSystem type.
type TeamsInventoryConfig ¶ added in v1.26.0
type TeamsInventoryConfig struct {
Items map[string]*InventoryConfigItem `json:"items,omitempty"`
Limits *InventoryConfigLimits `json:"limits,omitempty"`
ItemSets map[string]map[string]bool `json:"-"` // Auto-computed when the config is read or personalized.
ConfigSource ConfigSource[*InventoryConfigItem] `json:"-"` // Not included in serialization, set dynamically.
}
type TeamsStatsConfig ¶ added in v1.26.0
type TeamsStatsConfig struct {
StatsPublic map[string]*StatsConfigStat `json:"stats_public,omitempty"`
StatsPrivate map[string]*StatsConfigStat `json:"stats_private,omitempty"`
}
type TeamsSystem ¶
type TeamsSystem interface {
System
// SetActivityCalculator specifies a function to use when calculating team activity score.
SetActivityCalculator(fn TeamActivityCalculator)
// Create makes a new team (i.e. Nakama group) with additional metadata which configures the team.
Create(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, req *TeamCreateRequest) (team *Team, err error)
// List will return a list of teams which the user can join.
List(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, req *TeamListRequest) (teams *TeamList, err error)
// Search for teams based on given criteria.
Search(ctx context.Context, db *sql.DB, logger runtime.Logger, nk runtime.NakamaModule, req *TeamSearchRequest) (teams *TeamList, err error)
// Update changes one or more properties of the team.
Update(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, req *TeamUpdateRequest) (team *Team, err error)
// Get a team by its identifier.
Get(ctx context.Context, db *sql.DB, logger runtime.Logger, nk runtime.NakamaModule, req *TeamGetRequest) (*Team, error)
// UserTeamsList fetches user accounts and their associated teams.
UserTeamsList(ctx context.Context, db *sql.DB, logger runtime.Logger, nk runtime.NakamaModule, req *UserTeamsListRequest) (*UserTeamsList, error)
// WriteChatMessage sends a message to the user's team even when they're not connected on a realtime socket.
WriteChatMessage(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, req *TeamWriteChatMessageRequest) (resp *ChannelMessageAck, err error)
// UpdateMaxSize sets a new maximum team size for the selected team.
UpdateMaxSize(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, userID, teamID string, count int, delta bool) error
// StoreList will get the defined store items available to the team.
StoreList(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string) (storeItems map[string]*TeamEconomyConfigStoreItem, rewardModifiers []*ActiveRewardModifier, timestamp int64, err error)
// StorePurchase will validate a purchase and give the user ID the appropriate rewards.
StorePurchase(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, userID, teamID, itemID string) (updatedWallet map[string]int64, updatedInventory *Inventory, reward *Reward, err error)
// SetOnPurchaseReward sets a custom reward function which will run after a team store item's reward is rolled.
SetOnPurchaseReward(fn OnTeamReward[*TeamEconomyConfigStoreItem])
// WalletGet fetches the wallet for a specified team.
WalletGet(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string) (*TeamWallet, error)
// WalletGrant grants currencies to the specified team's wallet.
WalletGrant(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, currencies map[string]int64) (*TeamWallet, error)
// InventoryList will return the items defined as well as the computed item sets for the team by ID.
InventoryList(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID, category string) (items map[string]*InventoryConfigItem, itemSets map[string][]string, err error)
// InventoryListInventoryItems will return the items which are part of a team's inventory by ID.
InventoryListInventoryItems(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID, category string) (inventory *Inventory, err error)
// InventoryConsumeItems will deduct the item(s) from the team's inventory and run the consume reward for each one, if defined.
InventoryConsumeItems(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, itemIDs, instanceIDs map[string]int64, overConsume bool) (updatedInventory *Inventory, rewards map[string][]*Reward, instanceRewards map[string][]*Reward, err error)
// InventoryGrantItems will add the item(s) to a team's inventory by ID.
InventoryGrantItems(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, itemIDs map[string]int64, ignoreLimits bool) (updatedInventory *Inventory, newItems map[string]*InventoryItem, updatedItems map[string]*InventoryItem, notGrantedItemIDs map[string]int64, err error)
// InventoryUpdateItems will update the properties which are stored on each item by instance ID for a team.
InventoryUpdateItems(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, instanceIDs map[string]*InventoryUpdateItemProperties) (updatedInventory *Inventory, err error)
// SetOnInventoryConsumeReward sets a custom reward function which will run after a team inventory item consume reward is rolled.
SetOnInventoryConsumeReward(fn OnTeamReward[*InventoryConfigItem])
// SetInventoryConfigSource sets a custom additional config lookup function.
SetInventoryConfigSource(fn ConfigSource[*InventoryConfigItem])
// ClaimAchievements when one or more achievements whose progress has completed by their IDs.
ClaimAchievements(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, achievementIDs []string, claimTotal bool) (achievements map[string]*Achievement, repeatAchievements map[string]*Achievement, err error)
// GetAchievements returns all achievements available to the user and progress on them.
GetAchievements(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string) (achievements map[string]*Achievement, repeatAchievements map[string]*Achievement, err error)
// UpdateAchievements updates progress on one or more achievements by the same amount.
UpdateAchievements(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, achievementUpdates map[string]int64) (achievements map[string]*Achievement, repeatAchievements map[string]*Achievement, err error)
// SetOnAchievementReward sets a custom reward function which will run after an achievement's reward is rolled.
SetOnAchievementReward(fn OnTeamReward[*AchievementsConfigAchievement])
// SetOnSubAchievementReward sets a custom reward function which will run after a sub-achievement's reward is rolled.
SetOnSubAchievementReward(fn OnTeamReward[*AchievementsConfigSubAchievement])
// SetOnAchievementTotalReward sets a custom reward function which will run after an achievement's total reward is rolled.
SetOnAchievementTotalReward(fn OnTeamReward[*AchievementsConfigAchievement])
// ListEventLeaderboard returns available event leaderboards for the team.
ListEventLeaderboard(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, withScores bool, categories []string) (eventLeaderboards []*TeamEventLeaderboard, err error)
// GetEventLeaderboard returns a specified event leaderboard's cohort for the team.
GetEventLeaderboard(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID, eventLeaderboardID string) (eventLeaderboard *TeamEventLeaderboard, err error)
// RollEventLeaderboard places the team into a new cohort for the specified event leaderboard if possible.
RollEventLeaderboard(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID, eventLeaderboardID string, tier *int, matchmakerProperties map[string]interface{}, metadata map[string]interface{}) (eventLeaderboard *TeamEventLeaderboard, err error)
// UpdateEventLeaderboard updates the team's score in the specified event leaderboard, and returns the team's updated cohort information.
UpdateEventLeaderboard(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, userID, teamID, eventLeaderboardID string, score, subscore int64, metadata map[string]interface{}, conditionalMetadataUpdate bool) (eventLeaderboard *TeamEventLeaderboard, err error)
// ClaimEventLeaderboard claims the team's reward for the given event leaderboard.
ClaimEventLeaderboard(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID, eventLeaderboardID string) (eventLeaderboard *TeamEventLeaderboard, err error)
// SetOnEventLeaderboardsReward sets a custom reward function which will run after a team event leaderboard's reward is rolled.
SetOnEventLeaderboardsReward(fn OnTeamReward[*EventLeaderboardsConfigLeaderboard])
// SetOnEventLeaderboardCohortSelection sets a custom function that can replace the cohort or opponent selection feature of team event leaderboards.
SetOnEventLeaderboardCohortSelection(fn OnTeamEventLeaderboardCohortSelection)
// DebugFill fills the user's current cohort with dummy teams for all remaining available slots.
DebugFill(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID, eventLeaderboardID string, targetCount int) (eventLeaderboard *TeamEventLeaderboard, err error)
// DebugRandomScores assigns random scores to the participants of the team's current cohort, except to the team itself.
DebugRandomScores(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID, eventLeaderboardID string, scoreMin, scoreMax, subscoreMin, subscoreMax int64, operator *int) (eventLeaderboard *TeamEventLeaderboard, err error)
// RewardMailboxList lists the team reward mailbox, from most recent to oldest.
RewardMailboxList(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, limit int, cursor string) (mailboxList *RewardMailboxList, err error)
// RewardMailboxClaim claims a reward and optionally removes it from the team mailbox.
RewardMailboxClaim(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, id string, delete bool) (mailboxEntry *RewardMailboxEntry, err error)
// RewardMailboxDelete deletes a reward from the team mailbox, even if it is not yet claimed.
RewardMailboxDelete(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, ids []string) error
// RewardMailboxGrant grants a reward to the team's mailbox.
RewardMailboxGrant(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, reward *Reward) (mailboxEntry *RewardMailboxEntry, err error)
// SetOnRewardMailboxClaimReward sets a custom reward function which will run after a team mailbox reward is rolled during claiming.
SetOnRewardMailboxClaimReward(fn OnTeamReward[*RewardMailboxEntry])
// StatsList retrieves the full list of stats for the specified teams.
StatsList(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, teamIDs []string) (stats map[string]*StatList, err error)
// StatsUpdate updates public and private stats for the specified team.
StatsUpdate(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string, publicStats []*StatUpdate, privateStats []*StatUpdate) (statList *StatList, err error)
// GiftList lists available team gifts, including past gifts that still have valid rewards to claim.
GiftList(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID string) (giftList *TeamGiftList, err error)
// GiftContribute updates the specified gift with a given contribution amount.
GiftContribute(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID, giftID string, count int64) (ack *TeamGiftContributeAck, err error)
// GiftClaim claims all pending rewards for a particular gift.
GiftClaim(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, teamID, giftID string, endTimeSec int64) (ack *TeamGiftClaimAck, err error)
// SetOnGiftContributeReward sets a custom reward function which will run after a team gift contribution reward is rolled.
SetOnGiftContributeReward(fn OnTeamReward[*TeamGift])
// SetOnGiftContributeCost sets a custom reward function which will run after a team gift contribution cost is rolled.
SetOnGiftContributeCost(fn OnTeamReward[*TeamGift])
// SetOnGiftClaimReward sets a custom reward function which will run after a team gift reward is rolled during claiming.
SetOnGiftClaimReward(fn OnTeamReward[*TeamGift])
}
A TeamsSystem is a gameplay system which wraps the groups system in Nakama server.
type TeamsWalletConfig ¶ added in v1.26.0
type Tutorial ¶
type Tutorial struct {
// The unique tutorial identifier.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The current step in the tutorial.
Current int32 `protobuf:"varint,2,opt,name=current,proto3" json:"current,omitempty"`
// The maximum step in the tutorial based on configuration.
Max int32 `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"`
// The accepted state of the tutorial.
State TutorialState `protobuf:"varint,4,opt,name=state,proto3,enum=hiro.TutorialState" json:"state,omitempty"`
// The UNIX timestamp when the tutorial was last updated.
UpdateTimeSec int64 `protobuf:"varint,5,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
// The UNIX timestamp when the tutorial was completed, if it is completed.
CompleteTimeSec int64 `protobuf:"varint,6,opt,name=complete_time_sec,json=completeTimeSec,proto3" json:"complete_time_sec,omitempty"`
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 209-byte string literal not displayed */
// contains filtered or unexported fields
}
An individual set of tutorial steps.
func (*Tutorial) Descriptor
deprecated
func (*Tutorial) GetAdditionalProperties ¶
func (*Tutorial) GetCompleteTimeSec ¶
func (*Tutorial) GetCurrent ¶
func (*Tutorial) GetState ¶
func (x *Tutorial) GetState() TutorialState
func (*Tutorial) GetUpdateTimeSec ¶
func (*Tutorial) ProtoMessage ¶
func (*Tutorial) ProtoMessage()
func (*Tutorial) ProtoReflect ¶
func (x *Tutorial) ProtoReflect() protoreflect.Message
type TutorialAbandonRequest ¶
type TutorialAbandonRequest struct {
// The tutorial to abandon.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
A request to abandon a tutorial.
func (*TutorialAbandonRequest) Descriptor
deprecated
func (*TutorialAbandonRequest) Descriptor() ([]byte, []int)
Deprecated: Use TutorialAbandonRequest.ProtoReflect.Descriptor instead.
func (*TutorialAbandonRequest) GetId ¶
func (x *TutorialAbandonRequest) GetId() string
func (*TutorialAbandonRequest) ProtoMessage ¶
func (*TutorialAbandonRequest) ProtoMessage()
func (*TutorialAbandonRequest) ProtoReflect ¶
func (x *TutorialAbandonRequest) ProtoReflect() protoreflect.Message
func (*TutorialAbandonRequest) Reset ¶
func (x *TutorialAbandonRequest) Reset()
func (*TutorialAbandonRequest) String ¶
func (x *TutorialAbandonRequest) String() string
type TutorialAcceptRequest ¶
type TutorialAcceptRequest struct {
// The tutorial to accept.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
A request to accept a tutorial.
func (*TutorialAcceptRequest) Descriptor
deprecated
func (*TutorialAcceptRequest) Descriptor() ([]byte, []int)
Deprecated: Use TutorialAcceptRequest.ProtoReflect.Descriptor instead.
func (*TutorialAcceptRequest) GetId ¶
func (x *TutorialAcceptRequest) GetId() string
func (*TutorialAcceptRequest) ProtoMessage ¶
func (*TutorialAcceptRequest) ProtoMessage()
func (*TutorialAcceptRequest) ProtoReflect ¶
func (x *TutorialAcceptRequest) ProtoReflect() protoreflect.Message
func (*TutorialAcceptRequest) Reset ¶
func (x *TutorialAcceptRequest) Reset()
func (*TutorialAcceptRequest) String ¶
func (x *TutorialAcceptRequest) String() string
type TutorialDeclineRequest ¶
type TutorialDeclineRequest struct {
// The tutorial to decline.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
A request to decline a tutorial.
func (*TutorialDeclineRequest) Descriptor
deprecated
func (*TutorialDeclineRequest) Descriptor() ([]byte, []int)
Deprecated: Use TutorialDeclineRequest.ProtoReflect.Descriptor instead.
func (*TutorialDeclineRequest) GetId ¶
func (x *TutorialDeclineRequest) GetId() string
func (*TutorialDeclineRequest) ProtoMessage ¶
func (*TutorialDeclineRequest) ProtoMessage()
func (*TutorialDeclineRequest) ProtoReflect ¶
func (x *TutorialDeclineRequest) ProtoReflect() protoreflect.Message
func (*TutorialDeclineRequest) Reset ¶
func (x *TutorialDeclineRequest) Reset()
func (*TutorialDeclineRequest) String ¶
func (x *TutorialDeclineRequest) String() string
type TutorialList ¶
type TutorialList struct {
// All available tutorials.
Tutorials map[string]*Tutorial `` /* 159-byte string literal not displayed */
// contains filtered or unexported fields
}
The full tutorial statuses for a given user.
func (*TutorialList) Descriptor
deprecated
func (*TutorialList) Descriptor() ([]byte, []int)
Deprecated: Use TutorialList.ProtoReflect.Descriptor instead.
func (*TutorialList) GetTutorials ¶
func (x *TutorialList) GetTutorials() map[string]*Tutorial
func (*TutorialList) ProtoMessage ¶
func (*TutorialList) ProtoMessage()
func (*TutorialList) ProtoReflect ¶
func (x *TutorialList) ProtoReflect() protoreflect.Message
func (*TutorialList) Reset ¶
func (x *TutorialList) Reset()
func (*TutorialList) String ¶
func (x *TutorialList) String() string
type TutorialResetRequest ¶ added in v1.19.0
type TutorialResetRequest struct {
// The tutorials to reset.
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
A request to reset the state of one or more tutorials.
func (*TutorialResetRequest) Descriptor
deprecated
added in
v1.19.0
func (*TutorialResetRequest) Descriptor() ([]byte, []int)
Deprecated: Use TutorialResetRequest.ProtoReflect.Descriptor instead.
func (*TutorialResetRequest) GetIds ¶ added in v1.19.0
func (x *TutorialResetRequest) GetIds() []string
func (*TutorialResetRequest) ProtoMessage ¶ added in v1.19.0
func (*TutorialResetRequest) ProtoMessage()
func (*TutorialResetRequest) ProtoReflect ¶ added in v1.19.0
func (x *TutorialResetRequest) ProtoReflect() protoreflect.Message
func (*TutorialResetRequest) Reset ¶ added in v1.19.0
func (x *TutorialResetRequest) Reset()
func (*TutorialResetRequest) String ¶ added in v1.19.0
func (x *TutorialResetRequest) String() string
type TutorialState ¶
type TutorialState int32
The states of a Tutorial.
const ( // The Tutorial has not been accepted/declined by the user yet. TutorialState_TUTORIAL_STATE_NONE TutorialState = 0 // The Tutorial was accepted. TutorialState_TUTORIAL_STATE_ACCEPTED TutorialState = 1 // The Tutorial was declined. TutorialState_TUTORIAL_STATE_DECLINED TutorialState = 2 // The Tutorial is in progress. TutorialState_TUTORIAL_STATE_IN_PROGRESS TutorialState = 3 // The Tutorial has been completed. TutorialState_TUTORIAL_STATE_COMPLETED TutorialState = 4 // The Tutorial has been abandoned. TutorialState_TUTORIAL_STATE_ABANDONED TutorialState = 5 )
func (TutorialState) Descriptor ¶
func (TutorialState) Descriptor() protoreflect.EnumDescriptor
func (TutorialState) Enum ¶
func (x TutorialState) Enum() *TutorialState
func (TutorialState) EnumDescriptor
deprecated
func (TutorialState) EnumDescriptor() ([]byte, []int)
Deprecated: Use TutorialState.Descriptor instead.
func (TutorialState) Number ¶
func (x TutorialState) Number() protoreflect.EnumNumber
func (TutorialState) String ¶
func (x TutorialState) String() string
func (TutorialState) Type ¶
func (TutorialState) Type() protoreflect.EnumType
type TutorialUpdateRequest ¶
type TutorialUpdateRequest struct {
// The tutorial to update.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The latest step that should be marked completed. All previous steps will also be marked as completed.
Step int32 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"`
// contains filtered or unexported fields
}
A request to update a tutorial.
func (*TutorialUpdateRequest) Descriptor
deprecated
func (*TutorialUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use TutorialUpdateRequest.ProtoReflect.Descriptor instead.
func (*TutorialUpdateRequest) GetId ¶
func (x *TutorialUpdateRequest) GetId() string
func (*TutorialUpdateRequest) GetStep ¶
func (x *TutorialUpdateRequest) GetStep() int32
func (*TutorialUpdateRequest) ProtoMessage ¶
func (*TutorialUpdateRequest) ProtoMessage()
func (*TutorialUpdateRequest) ProtoReflect ¶
func (x *TutorialUpdateRequest) ProtoReflect() protoreflect.Message
func (*TutorialUpdateRequest) Reset ¶
func (x *TutorialUpdateRequest) Reset()
func (*TutorialUpdateRequest) String ¶
func (x *TutorialUpdateRequest) String() string
type TutorialsConfig ¶
type TutorialsConfig struct {
Tutorials map[string]*TutorialsConfigTutorial `json:"tutorials,omitempty"`
}
TutorialsConfig is the data definition for the TutorialsSystem type.
type TutorialsConfigTutorial ¶
type TutorialsSystem ¶
type TutorialsSystem interface {
System
// Get returns all tutorials defined and progress made by the user towards them.
Get(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string) (tutorials map[string]*Tutorial, err error)
// Accept marks a tutorial as accepted by the user.
Accept(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, tutorialID string, userID string) (tutorial *Tutorial, err error)
// Decline marks a tutorial as declined by the user.
Decline(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, tutorialID string, userID string) (tutorial *Tutorial, err error)
// Abandon marks the tutorial as abandoned by the user.
Abandon(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, tutorialID string, userID string) (tutorial *Tutorial, err error)
// Update modifies a tutorial by its ID to step through it for the user by ID.
Update(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, tutorialID string, step int) (tutorial map[string]*Tutorial, err error)
// Reset wipes all known state for the given tutorial identifier(s).
Reset(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, tutorialIDs []string) (tutorials map[string]*Tutorial, err error)
// SetOnStepCompleted registers a hook that fires on tutorial step completions.
SetOnStepCompleted(func(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, tutorialID string, config *TutorialsConfigTutorial, resetCount, step int, prevStep *int))
}
The TutorialsSystem is a gameplay system which records progress made through tutorials.
type Unlockable ¶
type Unlockable struct {
// The unlockable definition ID, eg. "bronze-chest".
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The instance ID.
InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// The category the unlockable is part of.
Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`
// The cost to begin unlocking this particular unlockable.
StartCost *UnlockableCost `protobuf:"bytes,4,opt,name=start_cost,json=startCost,proto3" json:"start_cost,omitempty"`
// The cost to fully unlock this unlockable, accounting for any time already spent.
Cost *UnlockableCost `protobuf:"bytes,5,opt,name=cost,proto3" json:"cost,omitempty"`
// The description, if any. May be an i18n code.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// The name. May be an i18n code.
Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
// The reward already granted when the unlockable has been claimed.
Reward *Reward `protobuf:"bytes,8,opt,name=reward,proto3" json:"reward,omitempty"`
// The available rewards for when the unlockable is claimed.
AvailableRewards *AvailableRewards `protobuf:"bytes,9,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// Total time this unlockable will take to unlock once activated.
WaitTimeSec int32 `protobuf:"varint,10,opt,name=wait_time_sec,json=waitTimeSec,proto3" json:"wait_time_sec,omitempty"`
// The UNIX timestamp when this unlockable was granted to the user.
CreateTimeSec int64 `protobuf:"varint,11,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// The UNIX timestamp when this unlockable began unlocking, or 0 if it is not active.
UnlockStartTimeSec int64 `protobuf:"varint,12,opt,name=unlock_start_time_sec,json=unlockStartTimeSec,proto3" json:"unlock_start_time_sec,omitempty"`
// The UNIX timestamp when this unlockable will complete unlocking and become claimable, or 0 if it is not active.
UnlockCompleteTimeSec int64 `` /* 130-byte string literal not displayed */
// If the unlock process has completed (either by time elapsed or purchase) and the unlockable reward can be claimed.
CanClaim bool `protobuf:"varint,14,opt,name=can_claim,json=canClaim,proto3" json:"can_claim,omitempty"`
// Additional metadata properties.
AdditionalProperties map[string]string `` /* 210-byte string literal not displayed */
// Additional time that has been added to speed up the unlockable's progress, if any.
AdvanceTimeSec int64 `protobuf:"varint,16,opt,name=advance_time_sec,json=advanceTimeSec,proto3" json:"advance_time_sec,omitempty"`
// contains filtered or unexported fields
}
A single unlockable object.
func (*Unlockable) Descriptor
deprecated
func (*Unlockable) Descriptor() ([]byte, []int)
Deprecated: Use Unlockable.ProtoReflect.Descriptor instead.
func (*Unlockable) GetAdditionalProperties ¶
func (x *Unlockable) GetAdditionalProperties() map[string]string
func (*Unlockable) GetAdvanceTimeSec ¶ added in v1.17.0
func (x *Unlockable) GetAdvanceTimeSec() int64
func (*Unlockable) GetAvailableRewards ¶
func (x *Unlockable) GetAvailableRewards() *AvailableRewards
func (*Unlockable) GetCanClaim ¶
func (x *Unlockable) GetCanClaim() bool
func (*Unlockable) GetCategory ¶
func (x *Unlockable) GetCategory() string
func (*Unlockable) GetCost ¶
func (x *Unlockable) GetCost() *UnlockableCost
func (*Unlockable) GetCreateTimeSec ¶
func (x *Unlockable) GetCreateTimeSec() int64
func (*Unlockable) GetDescription ¶
func (x *Unlockable) GetDescription() string
func (*Unlockable) GetId ¶
func (x *Unlockable) GetId() string
func (*Unlockable) GetInstanceId ¶
func (x *Unlockable) GetInstanceId() string
func (*Unlockable) GetName ¶
func (x *Unlockable) GetName() string
func (*Unlockable) GetReward ¶
func (x *Unlockable) GetReward() *Reward
func (*Unlockable) GetStartCost ¶
func (x *Unlockable) GetStartCost() *UnlockableCost
func (*Unlockable) GetUnlockCompleteTimeSec ¶
func (x *Unlockable) GetUnlockCompleteTimeSec() int64
func (*Unlockable) GetUnlockStartTimeSec ¶
func (x *Unlockable) GetUnlockStartTimeSec() int64
func (*Unlockable) GetWaitTimeSec ¶
func (x *Unlockable) GetWaitTimeSec() int32
func (*Unlockable) ProtoMessage ¶
func (*Unlockable) ProtoMessage()
func (*Unlockable) ProtoReflect ¶
func (x *Unlockable) ProtoReflect() protoreflect.Message
func (*Unlockable) Reset ¶
func (x *Unlockable) Reset()
func (*Unlockable) String ¶
func (x *Unlockable) String() string
type UnlockableCost ¶
type UnlockableCost struct {
// The items which will be deducted.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// The currencies which will be deducted.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// contains filtered or unexported fields
}
The unlockable cost, may relate to starting an unlock, or fully completing it.
func (*UnlockableCost) Descriptor
deprecated
func (*UnlockableCost) Descriptor() ([]byte, []int)
Deprecated: Use UnlockableCost.ProtoReflect.Descriptor instead.
func (*UnlockableCost) GetCurrencies ¶
func (x *UnlockableCost) GetCurrencies() map[string]int64
func (*UnlockableCost) GetItems ¶
func (x *UnlockableCost) GetItems() map[string]int64
func (*UnlockableCost) ProtoMessage ¶
func (*UnlockableCost) ProtoMessage()
func (*UnlockableCost) ProtoReflect ¶
func (x *UnlockableCost) ProtoReflect() protoreflect.Message
func (*UnlockableCost) Reset ¶
func (x *UnlockableCost) Reset()
func (*UnlockableCost) String ¶
func (x *UnlockableCost) String() string
type UnlockableSlotCost ¶
type UnlockableSlotCost struct {
// The items which will be deducted.
Items map[string]int64 `` /* 152-byte string literal not displayed */
// The currencies which will be deducted.
Currencies map[string]int64 `` /* 162-byte string literal not displayed */
// contains filtered or unexported fields
}
The cost to purchase an additional unlockable active slot.
func (*UnlockableSlotCost) Descriptor
deprecated
func (*UnlockableSlotCost) Descriptor() ([]byte, []int)
Deprecated: Use UnlockableSlotCost.ProtoReflect.Descriptor instead.
func (*UnlockableSlotCost) GetCurrencies ¶
func (x *UnlockableSlotCost) GetCurrencies() map[string]int64
func (*UnlockableSlotCost) GetItems ¶
func (x *UnlockableSlotCost) GetItems() map[string]int64
func (*UnlockableSlotCost) ProtoMessage ¶
func (*UnlockableSlotCost) ProtoMessage()
func (*UnlockableSlotCost) ProtoReflect ¶
func (x *UnlockableSlotCost) ProtoReflect() protoreflect.Message
func (*UnlockableSlotCost) Reset ¶
func (x *UnlockableSlotCost) Reset()
func (*UnlockableSlotCost) String ¶
func (x *UnlockableSlotCost) String() string
type UnlockablesConfig ¶
type UnlockablesConfig struct {
ActiveSlots int `json:"active_slots,omitempty"`
MaxActiveSlots int `json:"max_active_slots,omitempty"`
Slots int `json:"slots,omitempty"`
SlotCost *UnlockablesConfigSlotCost `json:"slot_cost,omitempty"`
Unlockables map[string]*UnlockablesConfigUnlockable `json:"unlockables,omitempty"`
MaxQueuedUnlocks int `json:"max_queued_unlocks,omitempty"`
UnlockableProbabilities []string `json:"-"`
}
UnlockablesConfig is the data definition for a UnlockablesSystem type.
type UnlockablesConfigUnlockable ¶
type UnlockablesConfigUnlockable struct {
Probability int `json:"probability,omitempty"`
Category string `json:"category,omitempty"`
Cost *UnlockablesConfigUnlockableCost `json:"cost,omitempty"`
CostUnitTimeSec int `json:"cost_unit_time_sec,omitempty"`
Description string `json:"description,omitempty"`
Name string `json:"name,omitempty"`
StartCost *UnlockablesConfigUnlockableStartCost `json:"start_cost,omitempty"`
Reward *EconomyConfigReward `json:"reward,omitempty"`
WaitTimeSec int `json:"wait_time_sec,omitempty"`
AdditionalProperties map[string]string `json:"additional_properties,omitempty"`
}
type UnlockablesList ¶
type UnlockablesList struct {
// The list of unlockables owned by a user.
Unlockables []*Unlockable `protobuf:"bytes,1,rep,name=unlockables,proto3" json:"unlockables,omitempty"`
// The unlockable overflow slot.
Overflow *Unlockable `protobuf:"bytes,2,opt,name=overflow,proto3" json:"overflow,omitempty"`
// The total number of non-overflow slots.
Slots int32 `protobuf:"varint,3,opt,name=slots,proto3" json:"slots,omitempty"`
// The current number of active slots.
ActiveSlots int32 `protobuf:"varint,4,opt,name=active_slots,json=activeSlots,proto3" json:"active_slots,omitempty"`
// The max number of active slots the user can ever obtain.
MaxActiveSlots int32 `protobuf:"varint,5,opt,name=max_active_slots,json=maxActiveSlots,proto3" json:"max_active_slots,omitempty"`
// The cost to purchase the next active slot, if another is available for purchase.
SlotCost *UnlockableSlotCost `protobuf:"bytes,6,opt,name=slot_cost,json=slotCost,proto3" json:"slot_cost,omitempty"`
// The newly granted unlockable, if any.
InstanceId string `protobuf:"bytes,7,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// Unlockable instance IDs queued to start unlocking as soon as possible.
QueuedUnlocks []string `protobuf:"bytes,8,rep,name=queued_unlocks,json=queuedUnlocks,proto3" json:"queued_unlocks,omitempty"`
// Maximum unlock queue size.
MaxQueuedUnlocks int32 `protobuf:"varint,9,opt,name=max_queued_unlocks,json=maxQueuedUnlocks,proto3" json:"max_queued_unlocks,omitempty"`
// contains filtered or unexported fields
}
A list of unlockables currently owned by a user.
func (*UnlockablesList) Descriptor
deprecated
func (*UnlockablesList) Descriptor() ([]byte, []int)
Deprecated: Use UnlockablesList.ProtoReflect.Descriptor instead.
func (*UnlockablesList) GetActiveSlots ¶
func (x *UnlockablesList) GetActiveSlots() int32
func (*UnlockablesList) GetInstanceId ¶
func (x *UnlockablesList) GetInstanceId() string
func (*UnlockablesList) GetMaxActiveSlots ¶
func (x *UnlockablesList) GetMaxActiveSlots() int32
func (*UnlockablesList) GetMaxQueuedUnlocks ¶ added in v1.15.0
func (x *UnlockablesList) GetMaxQueuedUnlocks() int32
func (*UnlockablesList) GetOverflow ¶
func (x *UnlockablesList) GetOverflow() *Unlockable
func (*UnlockablesList) GetQueuedUnlocks ¶ added in v1.15.0
func (x *UnlockablesList) GetQueuedUnlocks() []string
func (*UnlockablesList) GetSlotCost ¶
func (x *UnlockablesList) GetSlotCost() *UnlockableSlotCost
func (*UnlockablesList) GetSlots ¶
func (x *UnlockablesList) GetSlots() int32
func (*UnlockablesList) GetUnlockables ¶
func (x *UnlockablesList) GetUnlockables() []*Unlockable
func (*UnlockablesList) ProtoMessage ¶
func (*UnlockablesList) ProtoMessage()
func (*UnlockablesList) ProtoReflect ¶
func (x *UnlockablesList) ProtoReflect() protoreflect.Message
func (*UnlockablesList) Reset ¶
func (x *UnlockablesList) Reset()
func (*UnlockablesList) String ¶
func (x *UnlockablesList) String() string
type UnlockablesQueueAddRequest ¶ added in v1.15.0
type UnlockablesQueueAddRequest struct {
// Unlockable instance IDs to add.
InstanceIds []string `protobuf:"bytes,1,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"`
// contains filtered or unexported fields
}
Request to add a set of unlockables to the unlock queue.
func (*UnlockablesQueueAddRequest) Descriptor
deprecated
added in
v1.15.0
func (*UnlockablesQueueAddRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlockablesQueueAddRequest.ProtoReflect.Descriptor instead.
func (*UnlockablesQueueAddRequest) GetInstanceIds ¶ added in v1.15.0
func (x *UnlockablesQueueAddRequest) GetInstanceIds() []string
func (*UnlockablesQueueAddRequest) ProtoMessage ¶ added in v1.15.0
func (*UnlockablesQueueAddRequest) ProtoMessage()
func (*UnlockablesQueueAddRequest) ProtoReflect ¶ added in v1.15.0
func (x *UnlockablesQueueAddRequest) ProtoReflect() protoreflect.Message
func (*UnlockablesQueueAddRequest) Reset ¶ added in v1.15.0
func (x *UnlockablesQueueAddRequest) Reset()
func (*UnlockablesQueueAddRequest) String ¶ added in v1.15.0
func (x *UnlockablesQueueAddRequest) String() string
type UnlockablesQueueRemoveRequest ¶ added in v1.15.0
type UnlockablesQueueRemoveRequest struct {
// Unlockable instance IDs to remove.
InstanceIds []string `protobuf:"bytes,1,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"`
// contains filtered or unexported fields
}
Request to remove a set of unlockables from the unlock queue.
func (*UnlockablesQueueRemoveRequest) Descriptor
deprecated
added in
v1.15.0
func (*UnlockablesQueueRemoveRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlockablesQueueRemoveRequest.ProtoReflect.Descriptor instead.
func (*UnlockablesQueueRemoveRequest) GetInstanceIds ¶ added in v1.15.0
func (x *UnlockablesQueueRemoveRequest) GetInstanceIds() []string
func (*UnlockablesQueueRemoveRequest) ProtoMessage ¶ added in v1.15.0
func (*UnlockablesQueueRemoveRequest) ProtoMessage()
func (*UnlockablesQueueRemoveRequest) ProtoReflect ¶ added in v1.15.0
func (x *UnlockablesQueueRemoveRequest) ProtoReflect() protoreflect.Message
func (*UnlockablesQueueRemoveRequest) Reset ¶ added in v1.15.0
func (x *UnlockablesQueueRemoveRequest) Reset()
func (*UnlockablesQueueRemoveRequest) String ¶ added in v1.15.0
func (x *UnlockablesQueueRemoveRequest) String() string
type UnlockablesQueueSetRequest ¶ added in v1.15.0
type UnlockablesQueueSetRequest struct {
// Unlockable instance IDs to set.
InstanceIds []string `protobuf:"bytes,1,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"`
// contains filtered or unexported fields
}
Request to replace the unlock queue with the given set of unlockables.
func (*UnlockablesQueueSetRequest) Descriptor
deprecated
added in
v1.15.0
func (*UnlockablesQueueSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlockablesQueueSetRequest.ProtoReflect.Descriptor instead.
func (*UnlockablesQueueSetRequest) GetInstanceIds ¶ added in v1.15.0
func (x *UnlockablesQueueSetRequest) GetInstanceIds() []string
func (*UnlockablesQueueSetRequest) ProtoMessage ¶ added in v1.15.0
func (*UnlockablesQueueSetRequest) ProtoMessage()
func (*UnlockablesQueueSetRequest) ProtoReflect ¶ added in v1.15.0
func (x *UnlockablesQueueSetRequest) ProtoReflect() protoreflect.Message
func (*UnlockablesQueueSetRequest) Reset ¶ added in v1.15.0
func (x *UnlockablesQueueSetRequest) Reset()
func (*UnlockablesQueueSetRequest) String ¶ added in v1.15.0
func (x *UnlockablesQueueSetRequest) String() string
type UnlockablesRequest ¶
type UnlockablesRequest struct {
// The unlockable instance ID.
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// contains filtered or unexported fields
}
Request body for interacting with a specific unlockable.
func (*UnlockablesRequest) Descriptor
deprecated
func (*UnlockablesRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlockablesRequest.ProtoReflect.Descriptor instead.
func (*UnlockablesRequest) GetInstanceId ¶
func (x *UnlockablesRequest) GetInstanceId() string
func (*UnlockablesRequest) ProtoMessage ¶
func (*UnlockablesRequest) ProtoMessage()
func (*UnlockablesRequest) ProtoReflect ¶
func (x *UnlockablesRequest) ProtoReflect() protoreflect.Message
func (*UnlockablesRequest) Reset ¶
func (x *UnlockablesRequest) Reset()
func (*UnlockablesRequest) String ¶
func (x *UnlockablesRequest) String() string
type UnlockablesReward ¶
type UnlockablesReward struct {
// The updated state of remaining unlockables.
Unlockables *UnlockablesList `protobuf:"bytes,1,opt,name=unlockables,proto3" json:"unlockables,omitempty"`
// The reward granted from the unlockable.
Reward *Reward `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward,omitempty"`
// The available rewards active for the unlockable.
AvailableRewards *AvailableRewards `protobuf:"bytes,3,opt,name=available_rewards,json=availableRewards,proto3" json:"available_rewards,omitempty"`
// contains filtered or unexported fields
}
A reward that was granted upon unlock, and a new state of all unlockables.
func (*UnlockablesReward) Descriptor
deprecated
func (*UnlockablesReward) Descriptor() ([]byte, []int)
Deprecated: Use UnlockablesReward.ProtoReflect.Descriptor instead.
func (*UnlockablesReward) GetAvailableRewards ¶
func (x *UnlockablesReward) GetAvailableRewards() *AvailableRewards
func (*UnlockablesReward) GetReward ¶
func (x *UnlockablesReward) GetReward() *Reward
func (*UnlockablesReward) GetUnlockables ¶
func (x *UnlockablesReward) GetUnlockables() *UnlockablesList
func (*UnlockablesReward) ProtoMessage ¶
func (*UnlockablesReward) ProtoMessage()
func (*UnlockablesReward) ProtoReflect ¶
func (x *UnlockablesReward) ProtoReflect() protoreflect.Message
func (*UnlockablesReward) Reset ¶
func (x *UnlockablesReward) Reset()
func (*UnlockablesReward) String ¶
func (x *UnlockablesReward) String() string
type UnlockablesSystem ¶
type UnlockablesSystem interface {
System
// Create will place a new unlockable into a slot either randomly, by ID, or optionally using a custom configuration.
Create(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, unlockableID string, unlockableConfig *UnlockablesConfigUnlockable) (unlockables *UnlockablesList, err error)
// Get returns all unlockables active for a user by ID.
Get(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string) (unlockables *UnlockablesList, err error)
// UnlockAdvance will add the given amount of time towards the completion of an unlockable that has been started.
UnlockAdvance(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, instanceID string, seconds int64) (unlockables *UnlockablesList, err error)
// UnlockStart will begin an unlock of an unlockable by instance ID for a user.
UnlockStart(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, instanceID string) (unlockables *UnlockablesList, err error)
// PurchaseUnlock will immediately unlock an unlockable with the specified instance ID for a user.
PurchaseUnlock(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, instanceID string) (unlockables *UnlockablesList, err error)
// PurchaseSlot will create a new slot for a user by ID.
PurchaseSlot(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string) (unlockables *UnlockablesList, err error)
// Claim an unlockable which has been unlocked by instance ID for the user.
Claim(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID, instanceID string) (reward *UnlockablesReward, err error)
// QueueAdd adds one or more unlockable instance IDs to the queue to be unlocked as soon as an active slot is available.
QueueAdd(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, instanceIDs []string) (unlockables *UnlockablesList, err error)
// QueueRemove removes one or more unlockable instance IDs from the unlock queue, unless they have started unlocking already.
QueueRemove(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, instanceIDs []string) (unlockables *UnlockablesList, err error)
// QueueSet replaces the entirety of the queue with the specified instance IDs, or wipes the queue if no instance IDs are given.
QueueSet(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, instanceIDs []string) (unlockables *UnlockablesList, err error)
// SetOnClaimReward sets a custom reward function which will run after an unlockable's reward is rolled.
SetOnClaimReward(fn OnReward[*UnlockablesConfigUnlockable])
}
The UnlockablesSystem is a gameplay system which provides slots to store rewards which can be unlocked over time.
type User ¶ added in v1.28.0
type User struct {
// The id of the user's account.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The username of the user's account.
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// The display name of the user.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// A URL for an avatar image.
AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
// The language expected to be a tag which follows the BCP-47 spec.
LangTag string `protobuf:"bytes,5,opt,name=lang_tag,json=langTag,proto3" json:"lang_tag,omitempty"`
// The location set by the user.
Location string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
// The timezone set by the user.
Timezone string `protobuf:"bytes,7,opt,name=timezone,proto3" json:"timezone,omitempty"`
// Additional information stored as a JSON object.
Metadata string `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"`
// The Facebook id in the user's account.
FacebookId string `protobuf:"bytes,9,opt,name=facebook_id,json=facebookId,proto3" json:"facebook_id,omitempty"`
// The Google id in the user's account.
GoogleId string `protobuf:"bytes,10,opt,name=google_id,json=googleId,proto3" json:"google_id,omitempty"`
// The Apple Game Center in of the user's account.
GamecenterId string `protobuf:"bytes,11,opt,name=gamecenter_id,json=gamecenterId,proto3" json:"gamecenter_id,omitempty"`
// The Steam id in the user's account.
SteamId string `protobuf:"bytes,12,opt,name=steam_id,json=steamId,proto3" json:"steam_id,omitempty"`
// Indicates whether the user is currently online.
Online bool `protobuf:"varint,13,opt,name=online,proto3" json:"online,omitempty"`
// Number of related edges to this user.
EdgeCount int32 `protobuf:"varint,14,opt,name=edge_count,json=edgeCount,proto3" json:"edge_count,omitempty"`
// The UNIX time in seconds when the user was created.
CreateTimeSec int64 `protobuf:"varint,15,opt,name=create_time_sec,json=createTimeSec,proto3" json:"create_time_sec,omitempty"`
// The UNIX time in seconds when the user was last updated.
UpdateTime int64 `protobuf:"varint,16,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The Facebook Instant Game ID in the user's account.
FacebookInstantGameId string `` /* 129-byte string literal not displayed */
// The Apple Sign In ID in the user's account.
AppleId string `protobuf:"bytes,18,opt,name=apple_id,json=appleId,proto3" json:"apple_id,omitempty"`
// contains filtered or unexported fields
}
A user in the server.
func (*User) Descriptor
deprecated
added in
v1.28.0
func (*User) GetAppleId ¶ added in v1.28.0
func (*User) GetAvatarUrl ¶ added in v1.28.0
func (*User) GetCreateTimeSec ¶ added in v1.28.0
func (*User) GetDisplayName ¶ added in v1.28.0
func (*User) GetEdgeCount ¶ added in v1.28.0
func (*User) GetFacebookId ¶ added in v1.28.0
func (*User) GetFacebookInstantGameId ¶ added in v1.28.0
func (*User) GetGamecenterId ¶ added in v1.28.0
func (*User) GetGoogleId ¶ added in v1.28.0
func (*User) GetLangTag ¶ added in v1.28.0
func (*User) GetLocation ¶ added in v1.28.0
func (*User) GetMetadata ¶ added in v1.28.0
func (*User) GetSteamId ¶ added in v1.28.0
func (*User) GetTimezone ¶ added in v1.28.0
func (*User) GetUpdateTime ¶ added in v1.28.0
func (*User) GetUsername ¶ added in v1.28.0
func (*User) ProtoMessage ¶ added in v1.28.0
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶ added in v1.28.0
func (x *User) ProtoReflect() protoreflect.Message
type UserTeams ¶ added in v1.28.0
type UserTeams struct {
// The user these teams are associated with.
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// All teams this user is part of.
Teams []*Team `protobuf:"bytes,2,rep,name=teams,proto3" json:"teams,omitempty"`
// contains filtered or unexported fields
}
A user and their associated teams.
func (*UserTeams) Descriptor
deprecated
added in
v1.28.0
func (*UserTeams) ProtoMessage ¶ added in v1.28.0
func (*UserTeams) ProtoMessage()
func (*UserTeams) ProtoReflect ¶ added in v1.28.0
func (x *UserTeams) ProtoReflect() protoreflect.Message
type UserTeamsList ¶ added in v1.28.0
type UserTeamsList struct {
// Results from a user teams lookup.
UserTeams map[string]*UserTeams `` /* 176-byte string literal not displayed */
// contains filtered or unexported fields
}
A list of users and their associated teams.
func (*UserTeamsList) Descriptor
deprecated
added in
v1.28.0
func (*UserTeamsList) Descriptor() ([]byte, []int)
Deprecated: Use UserTeamsList.ProtoReflect.Descriptor instead.
func (*UserTeamsList) GetUserTeams ¶ added in v1.28.0
func (x *UserTeamsList) GetUserTeams() map[string]*UserTeams
func (*UserTeamsList) ProtoMessage ¶ added in v1.28.0
func (*UserTeamsList) ProtoMessage()
func (*UserTeamsList) ProtoReflect ¶ added in v1.28.0
func (x *UserTeamsList) ProtoReflect() protoreflect.Message
func (*UserTeamsList) Reset ¶ added in v1.28.0
func (x *UserTeamsList) Reset()
func (*UserTeamsList) String ¶ added in v1.28.0
func (x *UserTeamsList) String() string
type UserTeamsListRequest ¶ added in v1.28.0
type UserTeamsListRequest struct {
// Users to fetch teams for.
UserIds []string `protobuf:"bytes,1,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
// contains filtered or unexported fields
}
Request to fetch teams for a given set of users.
func (*UserTeamsListRequest) Descriptor
deprecated
added in
v1.28.0
func (*UserTeamsListRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserTeamsListRequest.ProtoReflect.Descriptor instead.
func (*UserTeamsListRequest) GetUserIds ¶ added in v1.28.0
func (x *UserTeamsListRequest) GetUserIds() []string
func (*UserTeamsListRequest) ProtoMessage ¶ added in v1.28.0
func (*UserTeamsListRequest) ProtoMessage()
func (*UserTeamsListRequest) ProtoReflect ¶ added in v1.28.0
func (x *UserTeamsListRequest) ProtoReflect() protoreflect.Message
func (*UserTeamsListRequest) Reset ¶ added in v1.28.0
func (x *UserTeamsListRequest) Reset()
func (*UserTeamsListRequest) String ¶ added in v1.28.0
func (x *UserTeamsListRequest) String() string
type UsernameOverrideFn ¶
UsernameOverrideFn can be used to provide a different username generation strategy from the default in Nakama server. Requested username indicates what the username would otherwise be set to, if the incoming request specified a value. The function is always expected to return a value, and returning "" defers to Nakama's built-in behaviour.
type ValidateWriteScoreFn ¶
type ValidateWriteScoreFn func(context.Context, runtime.Logger, *sql.DB, runtime.NakamaModule, *api.WriteLeaderboardRecordRequest) *runtime.Error
ValidateWriteScoreFn is a function used to validate the leaderboard score input.