party

package
v0.0.0-...-66adcdc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use EventData.ProtoReflect.Descriptor instead.

func (*EventData) GetDisplayTime

func (x *EventData) GetDisplayTime() *timestamppb.Timestamp

func (*EventData) GetId

func (x *EventData) GetId() string

func (*EventData) GetOwnerId

func (x *EventData) GetOwnerId() string

func (*EventData) GetOwnerSkin

func (x *EventData) GetOwnerSkin() *common.PlayerSkin

func (*EventData) GetOwnerUsername

func (x *EventData) GetOwnerUsername() string

func (*EventData) GetPartyId

func (x *EventData) GetPartyId() string

func (*EventData) GetStartTime

func (x *EventData) GetStartTime() *timestamppb.Timestamp

func (*EventData) ProtoMessage

func (*EventData) ProtoMessage()

func (*EventData) ProtoReflect

func (x *EventData) ProtoReflect() protoreflect.Message

func (*EventData) Reset

func (x *EventData) Reset()

func (*EventData) String

func (x *EventData) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Party.ProtoReflect.Descriptor instead.

func (*Party) GetId

func (x *Party) GetId() string

func (*Party) GetLeaderId

func (x *Party) GetLeaderId() string

func (*Party) GetMembers

func (x *Party) GetMembers() []*PartyMember

func (*Party) GetOpen

func (x *Party) GetOpen() bool

func (*Party) ProtoMessage

func (*Party) ProtoMessage()

func (*Party) ProtoReflect

func (x *Party) ProtoReflect() protoreflect.Message

func (*Party) Reset

func (x *Party) Reset()

func (*Party) String

func (x *Party) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL