common

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: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_messages_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PlayerChatMessageMessage

type PlayerChatMessageMessage struct {
	Message        *messagehandler.ChatMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	SenderId       string                      `protobuf:"bytes,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
	SenderUsername string                      `protobuf:"bytes,3,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"`
	MessageContent string                      `protobuf:"bytes,4,opt,name=message_content,json=messageContent,proto3" json:"message_content,omitempty"`
	// contains filtered or unexported fields
}

PlayerChatMessageMessage is sent when a player sends a chat message sent in the 'mc-messages' topic (Kafka)

func (*PlayerChatMessageMessage) Descriptor deprecated

func (*PlayerChatMessageMessage) Descriptor() ([]byte, []int)

Deprecated: Use PlayerChatMessageMessage.ProtoReflect.Descriptor instead.

func (*PlayerChatMessageMessage) GetMessage

func (*PlayerChatMessageMessage) GetMessageContent

func (x *PlayerChatMessageMessage) GetMessageContent() string

func (*PlayerChatMessageMessage) GetSenderId

func (x *PlayerChatMessageMessage) GetSenderId() string

func (*PlayerChatMessageMessage) GetSenderUsername

func (x *PlayerChatMessageMessage) GetSenderUsername() string

func (*PlayerChatMessageMessage) ProtoMessage

func (*PlayerChatMessageMessage) ProtoMessage()

func (*PlayerChatMessageMessage) ProtoReflect

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

func (*PlayerChatMessageMessage) Reset

func (x *PlayerChatMessageMessage) Reset()

func (*PlayerChatMessageMessage) String

func (x *PlayerChatMessageMessage) String() string

type PlayerConnectMessage

type PlayerConnectMessage struct {
	PlayerId       string             `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	PlayerUsername string             `protobuf:"bytes,2,opt,name=player_username,json=playerUsername,proto3" json:"player_username,omitempty"`
	PlayerSkin     *common.PlayerSkin `protobuf:"bytes,4,opt,name=player_skin,json=playerSkin,proto3" json:"player_skin,omitempty"`
	ServerId       string             `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerConnectMessage) Descriptor deprecated

func (*PlayerConnectMessage) Descriptor() ([]byte, []int)

Deprecated: Use PlayerConnectMessage.ProtoReflect.Descriptor instead.

func (*PlayerConnectMessage) GetPlayerId

func (x *PlayerConnectMessage) GetPlayerId() string

func (*PlayerConnectMessage) GetPlayerSkin

func (x *PlayerConnectMessage) GetPlayerSkin() *common.PlayerSkin

func (*PlayerConnectMessage) GetPlayerUsername

func (x *PlayerConnectMessage) GetPlayerUsername() string

func (*PlayerConnectMessage) GetServerId

func (x *PlayerConnectMessage) GetServerId() string

func (*PlayerConnectMessage) ProtoMessage

func (*PlayerConnectMessage) ProtoMessage()

func (*PlayerConnectMessage) ProtoReflect

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

func (*PlayerConnectMessage) Reset

func (x *PlayerConnectMessage) Reset()

func (*PlayerConnectMessage) String

func (x *PlayerConnectMessage) String() string

type PlayerDisconnectMessage

type PlayerDisconnectMessage struct {
	PlayerId       string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	PlayerUsername string `protobuf:"bytes,2,opt,name=player_username,json=playerUsername,proto3" json:"player_username,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerDisconnectMessage) Descriptor deprecated

func (*PlayerDisconnectMessage) Descriptor() ([]byte, []int)

Deprecated: Use PlayerDisconnectMessage.ProtoReflect.Descriptor instead.

func (*PlayerDisconnectMessage) GetPlayerId

func (x *PlayerDisconnectMessage) GetPlayerId() string

func (*PlayerDisconnectMessage) GetPlayerUsername

func (x *PlayerDisconnectMessage) GetPlayerUsername() string

func (*PlayerDisconnectMessage) ProtoMessage

func (*PlayerDisconnectMessage) ProtoMessage()

func (*PlayerDisconnectMessage) ProtoReflect

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

func (*PlayerDisconnectMessage) Reset

func (x *PlayerDisconnectMessage) Reset()

func (*PlayerDisconnectMessage) String

func (x *PlayerDisconnectMessage) String() string

type PlayerSwitchServerMessage

type PlayerSwitchServerMessage struct {
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	ServerId string `protobuf:"bytes,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	// contains filtered or unexported fields
}

PlayerSwitchServerMessage is sent when a player is confirmed to have switched servers. it is therefore only sent by the proxy the player is connected to.

func (*PlayerSwitchServerMessage) Descriptor deprecated

func (*PlayerSwitchServerMessage) Descriptor() ([]byte, []int)

Deprecated: Use PlayerSwitchServerMessage.ProtoReflect.Descriptor instead.

func (*PlayerSwitchServerMessage) GetPlayerId

func (x *PlayerSwitchServerMessage) GetPlayerId() string

func (*PlayerSwitchServerMessage) GetServerId

func (x *PlayerSwitchServerMessage) GetServerId() string

func (*PlayerSwitchServerMessage) ProtoMessage

func (*PlayerSwitchServerMessage) ProtoMessage()

func (*PlayerSwitchServerMessage) ProtoReflect

func (*PlayerSwitchServerMessage) Reset

func (x *PlayerSwitchServerMessage) Reset()

func (*PlayerSwitchServerMessage) String

func (x *PlayerSwitchServerMessage) String() string

Jump to

Keyboard shortcuts

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