Documentation
¶
Index ¶
- Variables
- type EventData
- func (*EventData) Descriptor() ([]byte, []int)deprecated
- func (x *EventData) GetDisplayTime() *timestamppb.Timestamp
- func (x *EventData) GetId() string
- func (x *EventData) GetOwnerId() string
- func (x *EventData) GetOwnerSkin() *common.PlayerSkin
- func (x *EventData) GetOwnerUsername() string
- func (x *EventData) GetPartyId() string
- func (x *EventData) GetStartTime() *timestamppb.Timestamp
- func (*EventData) ProtoMessage()
- func (x *EventData) ProtoReflect() protoreflect.Message
- func (x *EventData) Reset()
- func (x *EventData) String() string
- type Party
- func (*Party) Descriptor() ([]byte, []int)deprecated
- func (x *Party) GetId() string
- func (x *Party) GetLeaderId() string
- func (x *Party) GetMembers() []*PartyMember
- func (x *Party) GetOpen() bool
- func (*Party) ProtoMessage()
- func (x *Party) ProtoReflect() protoreflect.Message
- func (x *Party) Reset()
- func (x *Party) String() string
- type PartyInvite
- func (*PartyInvite) Descriptor() ([]byte, []int)deprecated
- func (x *PartyInvite) GetExpiresAt() *timestamppb.Timestamp
- func (x *PartyInvite) GetPartyId() string
- func (x *PartyInvite) GetSenderId() string
- func (x *PartyInvite) GetSenderUsername() string
- func (x *PartyInvite) GetTargetId() string
- func (x *PartyInvite) GetTargetUsername() string
- func (*PartyInvite) ProtoMessage()
- func (x *PartyInvite) ProtoReflect() protoreflect.Message
- func (x *PartyInvite) Reset()
- func (x *PartyInvite) String() string
- type PartyMember
- type PartySettings
- func (*PartySettings) Descriptor() ([]byte, []int)deprecated
- func (x *PartySettings) GetAllowMemberDequeue() bool
- func (x *PartySettings) GetAllowMemberInvite() bool
- func (x *PartySettings) GetDequeueOnDisconnect() bool
- func (*PartySettings) ProtoMessage()
- func (x *PartySettings) ProtoReflect() protoreflect.Message
- func (x *PartySettings) Reset()
- func (x *PartySettings) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_party_models_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EventData ¶
type EventData struct { // id of type ObjectId Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // owner_id of type UUID OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` OwnerUsername string `protobuf:"bytes,3,opt,name=owner_username,json=ownerUsername,proto3" json:"owner_username,omitempty"` OwnerSkin *common.PlayerSkin `protobuf:"bytes,4,opt,name=owner_skin,json=ownerSkin,proto3" json:"owner_skin,omitempty"` // display_time the time the event will appear in UIs/in game. DisplayTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=display_time,json=displayTime,proto3,oneof" json:"display_time,omitempty"` StartTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3,oneof" json:"start_time,omitempty"` // party_id of type ObjectId, only present if the party is live PartyId *string `protobuf:"bytes,7,opt,name=party_id,json=partyId,proto3,oneof" json:"party_id,omitempty"` // contains filtered or unexported fields }
func (*EventData) Descriptor
deprecated
func (*EventData) GetDisplayTime ¶
func (x *EventData) GetDisplayTime() *timestamppb.Timestamp
func (*EventData) GetOwnerId ¶
func (*EventData) GetOwnerSkin ¶
func (x *EventData) GetOwnerSkin() *common.PlayerSkin
func (*EventData) GetOwnerUsername ¶
func (*EventData) GetPartyId ¶
func (*EventData) GetStartTime ¶
func (x *EventData) GetStartTime() *timestamppb.Timestamp
func (*EventData) ProtoMessage ¶
func (*EventData) ProtoMessage()
func (*EventData) ProtoReflect ¶
func (x *EventData) ProtoReflect() protoreflect.Message
type Party ¶
type Party struct { // id of type ObjectId Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // leader_id of type UUID LeaderId string `protobuf:"bytes,2,opt,name=leader_id,json=leaderId,proto3" json:"leader_id,omitempty"` Members []*PartyMember `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"` // open if true, the party is open to anyone to join. Open bool `protobuf:"varint,4,opt,name=open,proto3" json:"open,omitempty"` // contains filtered or unexported fields }
func (*Party) Descriptor
deprecated
func (*Party) GetLeaderId ¶
func (*Party) GetMembers ¶
func (x *Party) GetMembers() []*PartyMember
func (*Party) ProtoMessage ¶
func (*Party) ProtoMessage()
func (*Party) ProtoReflect ¶
func (x *Party) ProtoReflect() protoreflect.Message
type PartyInvite ¶
type PartyInvite struct { // party_id of type ObjectId PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"` // target_id of type UUID TargetId string `protobuf:"bytes,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` TargetUsername string `protobuf:"bytes,3,opt,name=target_username,json=targetUsername,proto3" json:"target_username,omitempty"` // sender_id of type UUID SenderId string `protobuf:"bytes,4,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` SenderUsername string `protobuf:"bytes,5,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // contains filtered or unexported fields }
PartyInvite is an invite to a party.
func (*PartyInvite) Descriptor
deprecated
func (*PartyInvite) Descriptor() ([]byte, []int)
Deprecated: Use PartyInvite.ProtoReflect.Descriptor instead.
func (*PartyInvite) GetExpiresAt ¶
func (x *PartyInvite) GetExpiresAt() *timestamppb.Timestamp
func (*PartyInvite) GetPartyId ¶
func (x *PartyInvite) GetPartyId() string
func (*PartyInvite) GetSenderId ¶
func (x *PartyInvite) GetSenderId() string
func (*PartyInvite) GetSenderUsername ¶
func (x *PartyInvite) GetSenderUsername() string
func (*PartyInvite) GetTargetId ¶
func (x *PartyInvite) GetTargetId() string
func (*PartyInvite) GetTargetUsername ¶
func (x *PartyInvite) GetTargetUsername() string
func (*PartyInvite) ProtoMessage ¶
func (*PartyInvite) ProtoMessage()
func (*PartyInvite) ProtoReflect ¶
func (x *PartyInvite) ProtoReflect() protoreflect.Message
func (*PartyInvite) Reset ¶
func (x *PartyInvite) Reset()
func (*PartyInvite) String ¶
func (x *PartyInvite) String() string
type PartyMember ¶
type PartyMember struct { // id of type UUID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*PartyMember) Descriptor
deprecated
func (*PartyMember) Descriptor() ([]byte, []int)
Deprecated: Use PartyMember.ProtoReflect.Descriptor instead.
func (*PartyMember) GetId ¶
func (x *PartyMember) GetId() string
func (*PartyMember) GetUsername ¶
func (x *PartyMember) GetUsername() string
func (*PartyMember) ProtoMessage ¶
func (*PartyMember) ProtoMessage()
func (*PartyMember) ProtoReflect ¶
func (x *PartyMember) ProtoReflect() protoreflect.Message
func (*PartyMember) Reset ¶
func (x *PartyMember) Reset()
func (*PartyMember) String ¶
func (x *PartyMember) String() string
type PartySettings ¶
type PartySettings struct { // dequeue_on_disconnect if true, when a player disconnects, the party will be removed from the queue. DequeueOnDisconnect bool `protobuf:"varint,1,opt,name=dequeue_on_disconnect,json=dequeueOnDisconnect,proto3" json:"dequeue_on_disconnect,omitempty"` // allow_member_dequeue if true, members of the party can dequeue the party. AllowMemberDequeue bool `protobuf:"varint,2,opt,name=allow_member_dequeue,json=allowMemberDequeue,proto3" json:"allow_member_dequeue,omitempty"` // allow_member_invite if true, members of the party can invite other players to the party. AllowMemberInvite bool `protobuf:"varint,3,opt,name=allow_member_invite,json=allowMemberInvite,proto3" json:"allow_member_invite,omitempty"` // contains filtered or unexported fields }
PartySettings is the settings for a party. Note these are bound to a player, not the current instance of a party.
func (*PartySettings) Descriptor
deprecated
func (*PartySettings) Descriptor() ([]byte, []int)
Deprecated: Use PartySettings.ProtoReflect.Descriptor instead.
func (*PartySettings) GetAllowMemberDequeue ¶
func (x *PartySettings) GetAllowMemberDequeue() bool
func (*PartySettings) GetAllowMemberInvite ¶
func (x *PartySettings) GetAllowMemberInvite() bool
func (*PartySettings) GetDequeueOnDisconnect ¶
func (x *PartySettings) GetDequeueOnDisconnect() bool
func (*PartySettings) ProtoMessage ¶
func (*PartySettings) ProtoMessage()
func (*PartySettings) ProtoReflect ¶
func (x *PartySettings) ProtoReflect() protoreflect.Message
func (*PartySettings) Reset ¶
func (x *PartySettings) Reset()
func (*PartySettings) String ¶
func (x *PartySettings) String() string
Click to show internal directories.
Click to hide internal directories.