mcplayer

package
v0.0.0-...-cd9d53d Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_mc_player_messages_proto protoreflect.FileDescriptor
View Source
var File_mc_player_models_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CurrentServer

type CurrentServer struct {
	ServerId  string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	ProxyId   string `protobuf:"bytes,2,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
	FleetName string `protobuf:"bytes,3,opt,name=fleet_name,json=fleetName,proto3" json:"fleet_name,omitempty"`
	// contains filtered or unexported fields
}

PlayerLocation represents the proxy and game server a player is on

func (*CurrentServer) Descriptor deprecated

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

Deprecated: Use CurrentServer.ProtoReflect.Descriptor instead.

func (*CurrentServer) GetFleetName

func (x *CurrentServer) GetFleetName() string

func (*CurrentServer) GetProxyId

func (x *CurrentServer) GetProxyId() string

func (*CurrentServer) GetServerId

func (x *CurrentServer) GetServerId() string

func (*CurrentServer) ProtoMessage

func (*CurrentServer) ProtoMessage()

func (*CurrentServer) ProtoReflect

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

func (*CurrentServer) Reset

func (x *CurrentServer) Reset()

func (*CurrentServer) String

func (x *CurrentServer) String() string

type LoginSession

type LoginSession struct {
	SessionId string                 `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	LoginTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=login_time,json=loginTime,proto3" json:"login_time,omitempty"`
	// Only set if this session is not currently active (i.e. the player is not online for this session)
	LogoutTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=logout_time,json=logoutTime,proto3,oneof" json:"logout_time,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginSession) Descriptor deprecated

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

Deprecated: Use LoginSession.ProtoReflect.Descriptor instead.

func (*LoginSession) GetLoginTime

func (x *LoginSession) GetLoginTime() *timestamppb.Timestamp

func (*LoginSession) GetLogoutTime

func (x *LoginSession) GetLogoutTime() *timestamppb.Timestamp

func (*LoginSession) GetSessionId

func (x *LoginSession) GetSessionId() string

func (*LoginSession) ProtoMessage

func (*LoginSession) ProtoMessage()

func (*LoginSession) ProtoReflect

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

func (*LoginSession) Reset

func (x *LoginSession) Reset()

func (*LoginSession) String

func (x *LoginSession) String() string

type McPlayer

type McPlayer struct {
	Id              string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CurrentUsername string                 `protobuf:"bytes,2,opt,name=current_username,json=currentUsername,proto3" json:"current_username,omitempty"`
	FirstLogin      *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=first_login,json=firstLogin,proto3" json:"first_login,omitempty"`
	// If they are currently online this will not be up to date
	LastOnline *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_online,json=lastOnline,proto3" json:"last_online,omitempty"`
	// currently_online use current_server and presence check instead.
	//
	// Deprecated: Do not use.
	CurrentlyOnline bool          `protobuf:"varint,5,opt,name=currently_online,json=currentlyOnline,proto3" json:"currently_online,omitempty"`
	CurrentSession  *LoginSession `protobuf:"bytes,6,opt,name=current_session,json=currentSession,proto3,oneof" json:"current_session,omitempty"`
	// The total play time of this player.
	// WARNING: Does not include the current session
	HistoricPlayTime *durationpb.Duration `protobuf:"bytes,7,opt,name=historic_play_time,json=historicPlayTime,proto3" json:"historic_play_time,omitempty"`
	// current_server is only present if the player is online
	CurrentServer *CurrentServer     `protobuf:"bytes,8,opt,name=current_server,json=currentServer,proto3,oneof" json:"current_server,omitempty"`
	CurrentSkin   *common.PlayerSkin `protobuf:"bytes,9,opt,name=current_skin,json=currentSkin,proto3,oneof" json:"current_skin,omitempty"`
	Experience    uint64             `protobuf:"varint,10,opt,name=experience,proto3" json:"experience,omitempty"`
	// contains filtered or unexported fields
}

func (*McPlayer) Descriptor deprecated

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

Deprecated: Use McPlayer.ProtoReflect.Descriptor instead.

func (*McPlayer) GetCurrentServer

func (x *McPlayer) GetCurrentServer() *CurrentServer

func (*McPlayer) GetCurrentSession

func (x *McPlayer) GetCurrentSession() *LoginSession

func (*McPlayer) GetCurrentSkin

func (x *McPlayer) GetCurrentSkin() *common.PlayerSkin

func (*McPlayer) GetCurrentUsername

func (x *McPlayer) GetCurrentUsername() string

func (*McPlayer) GetCurrentlyOnline deprecated

func (x *McPlayer) GetCurrentlyOnline() bool

Deprecated: Do not use.

func (*McPlayer) GetExperience

func (x *McPlayer) GetExperience() uint64

func (*McPlayer) GetFirstLogin

func (x *McPlayer) GetFirstLogin() *timestamppb.Timestamp

func (*McPlayer) GetHistoricPlayTime

func (x *McPlayer) GetHistoricPlayTime() *durationpb.Duration

func (*McPlayer) GetId

func (x *McPlayer) GetId() string

func (*McPlayer) GetLastOnline

func (x *McPlayer) GetLastOnline() *timestamppb.Timestamp

func (*McPlayer) ProtoMessage

func (*McPlayer) ProtoMessage()

func (*McPlayer) ProtoReflect

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

func (*McPlayer) Reset

func (x *McPlayer) Reset()

func (*McPlayer) String

func (x *McPlayer) String() string

type OnlinePlayer

type OnlinePlayer struct {
	PlayerId string         `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	Username string         `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Server   *CurrentServer `protobuf:"bytes,3,opt,name=server,proto3" json:"server,omitempty"`
	// contains filtered or unexported fields
}

func (*OnlinePlayer) Descriptor deprecated

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

Deprecated: Use OnlinePlayer.ProtoReflect.Descriptor instead.

func (*OnlinePlayer) GetPlayerId

func (x *OnlinePlayer) GetPlayerId() string

func (*OnlinePlayer) GetServer

func (x *OnlinePlayer) GetServer() *CurrentServer

func (*OnlinePlayer) GetUsername

func (x *OnlinePlayer) GetUsername() string

func (*OnlinePlayer) ProtoMessage

func (*OnlinePlayer) ProtoMessage()

func (*OnlinePlayer) ProtoReflect

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

func (*OnlinePlayer) Reset

func (x *OnlinePlayer) Reset()

func (*OnlinePlayer) String

func (x *OnlinePlayer) String() string

type PlayerExperienceChangeMessage

type PlayerExperienceChangeMessage struct {

	// player_id of type UUID
	PlayerId           string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	Reason             string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	PreviousExperience int64  `protobuf:"varint,3,opt,name=previous_experience,json=previousExperience,proto3" json:"previous_experience,omitempty"`
	NewExperience      int64  `protobuf:"varint,4,opt,name=new_experience,json=newExperience,proto3" json:"new_experience,omitempty"`
	PreviousLevel      int32  `protobuf:"varint,5,opt,name=previous_level,json=previousLevel,proto3" json:"previous_level,omitempty"`
	NewLevel           int32  `protobuf:"varint,6,opt,name=new_level,json=newLevel,proto3" json:"new_level,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerExperienceChangeMessage) Descriptor deprecated

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

Deprecated: Use PlayerExperienceChangeMessage.ProtoReflect.Descriptor instead.

func (*PlayerExperienceChangeMessage) GetNewExperience

func (x *PlayerExperienceChangeMessage) GetNewExperience() int64

func (*PlayerExperienceChangeMessage) GetNewLevel

func (x *PlayerExperienceChangeMessage) GetNewLevel() int32

func (*PlayerExperienceChangeMessage) GetPlayerId

func (x *PlayerExperienceChangeMessage) GetPlayerId() string

func (*PlayerExperienceChangeMessage) GetPreviousExperience

func (x *PlayerExperienceChangeMessage) GetPreviousExperience() int64

func (*PlayerExperienceChangeMessage) GetPreviousLevel

func (x *PlayerExperienceChangeMessage) GetPreviousLevel() int32

func (*PlayerExperienceChangeMessage) GetReason

func (x *PlayerExperienceChangeMessage) GetReason() string

func (*PlayerExperienceChangeMessage) ProtoMessage

func (*PlayerExperienceChangeMessage) ProtoMessage()

func (*PlayerExperienceChangeMessage) ProtoReflect

func (*PlayerExperienceChangeMessage) Reset

func (x *PlayerExperienceChangeMessage) Reset()

func (*PlayerExperienceChangeMessage) String

Jump to

Keyboard shortcuts

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