grpc

package
v0.0.0-...-e212e65 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCode_name = map[int32]string{
		0: "NONE",
		1: "INTERNAL_SERVER_ERROR",
		2: "UNAUTHORIZED",
		3: "ROOM_IS_FULL",
		4: "NO_PERMISSION",
	}
	ErrorCode_value = map[string]int32{
		"NONE":                  0,
		"INTERNAL_SERVER_ERROR": 1,
		"UNAUTHORIZED":          2,
		"ROOM_IS_FULL":          3,
		"NO_PERMISSION":         4,
	}
)

Enum value maps for ErrorCode.

View Source
var (
	RoomType_name = map[int32]string{
		0: "GLOBAL_PUBLIC",
		1: "LOCAL_PUBLIC",
		2: "FRIENDS_PLUS",
		3: "FRIENDS_ONLY",
		4: "INVITE_PLUS",
		5: "INVITE_ONLY",
	}
	RoomType_value = map[string]int32{
		"GLOBAL_PUBLIC": 0,
		"LOCAL_PUBLIC":  1,
		"FRIENDS_PLUS":  2,
		"FRIENDS_ONLY":  3,
		"INVITE_PLUS":   4,
		"INVITE_ONLY":   5,
	}
)

Enum value maps for RoomType.

View Source
var App_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "app.App",
	HandlerType: (*AppServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Start",
			Handler:       _App_Start_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "sync.proto",
}

App_ServiceDesc is the grpc.ServiceDesc for App service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAppServer

func RegisterAppServer(s grpc.ServiceRegistrar, srv AppServer)

Types

type AppClient

type AppClient interface {
	Start(ctx context.Context, opts ...grpc.CallOption) (App_StartClient, error)
}

AppClient is the client API for App service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAppClient

func NewAppClient(cc grpc.ClientConnInterface) AppClient

type AppServer

type AppServer interface {
	Start(App_StartServer) error
	// contains filtered or unexported methods
}

AppServer is the server API for App service. All implementations must embed UnimplementedAppServer for forward compatibility

type App_StartClient

type App_StartClient interface {
	Send(*ClientMessage) error
	Recv() (*ServerMessage, error)
	grpc.ClientStream
}

type App_StartServer

type App_StartServer interface {
	Send(*ServerMessage) error
	Recv() (*ClientMessage, error)
	grpc.ServerStream
}

type ClientMessage

type ClientMessage struct {

	// Types that are assignable to Data:
	//	*ClientMessage_LoginRequest
	//	*ClientMessage_CreateRoomRequest
	//	*ClientMessage_JoinRoomRequest
	//	*ClientMessage_LeaveRoomRequest
	//	*ClientMessage_PlayerDataPush
	//	*ClientMessage_ServerDataPushResponse
	Data isClientMessage_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*ClientMessage) Descriptor deprecated

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

Deprecated: Use ClientMessage.ProtoReflect.Descriptor instead.

func (*ClientMessage) GetCreateRoomRequest

func (x *ClientMessage) GetCreateRoomRequest() *CreateRoomRequest

func (*ClientMessage) GetData

func (m *ClientMessage) GetData() isClientMessage_Data

func (*ClientMessage) GetJoinRoomRequest

func (x *ClientMessage) GetJoinRoomRequest() *JoinRoomRequest

func (*ClientMessage) GetLeaveRoomRequest

func (x *ClientMessage) GetLeaveRoomRequest() *LeaveRoomRequest

func (*ClientMessage) GetLoginRequest

func (x *ClientMessage) GetLoginRequest() *LoginRequest

func (*ClientMessage) GetPlayerDataPush

func (x *ClientMessage) GetPlayerDataPush() *PlayerDataPush

func (*ClientMessage) GetServerDataPushResponse

func (x *ClientMessage) GetServerDataPushResponse() *ServerDataPushResponse

func (*ClientMessage) ProtoMessage

func (*ClientMessage) ProtoMessage()

func (*ClientMessage) ProtoReflect

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

func (*ClientMessage) Reset

func (x *ClientMessage) Reset()

func (*ClientMessage) String

func (x *ClientMessage) String() string

type ClientMessage_CreateRoomRequest

type ClientMessage_CreateRoomRequest struct {
	CreateRoomRequest *CreateRoomRequest `protobuf:"bytes,2,opt,name=create_room_request,json=createRoomRequest,proto3,oneof"`
}

type ClientMessage_JoinRoomRequest

type ClientMessage_JoinRoomRequest struct {
	JoinRoomRequest *JoinRoomRequest `protobuf:"bytes,3,opt,name=join_room_request,json=joinRoomRequest,proto3,oneof"`
}

type ClientMessage_LeaveRoomRequest

type ClientMessage_LeaveRoomRequest struct {
	LeaveRoomRequest *LeaveRoomRequest `protobuf:"bytes,4,opt,name=leave_room_request,json=leaveRoomRequest,proto3,oneof"`
}

type ClientMessage_LoginRequest

type ClientMessage_LoginRequest struct {
	LoginRequest *LoginRequest `protobuf:"bytes,1,opt,name=login_request,json=loginRequest,proto3,oneof"`
}

type ClientMessage_PlayerDataPush

type ClientMessage_PlayerDataPush struct {
	PlayerDataPush *PlayerDataPush `protobuf:"bytes,5,opt,name=player_data_push,json=playerDataPush,proto3,oneof"`
}

type ClientMessage_ServerDataPushResponse

type ClientMessage_ServerDataPushResponse struct {
	ServerDataPushResponse *ServerDataPushResponse `protobuf:"bytes,6,opt,name=server_data_push_response,json=serverDataPushResponse,proto3,oneof"`
}

type CreateRoomRequest

type CreateRoomRequest struct {
	RoomConfig *RoomConfig `protobuf:"bytes,1,opt,name=room_config,json=roomConfig,proto3" json:"room_config,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoomRequest) Descriptor deprecated

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

Deprecated: Use CreateRoomRequest.ProtoReflect.Descriptor instead.

func (*CreateRoomRequest) GetRoomConfig

func (x *CreateRoomRequest) GetRoomConfig() *RoomConfig

func (*CreateRoomRequest) ProtoMessage

func (*CreateRoomRequest) ProtoMessage()

func (*CreateRoomRequest) ProtoReflect

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

func (*CreateRoomRequest) Reset

func (x *CreateRoomRequest) Reset()

func (*CreateRoomRequest) String

func (x *CreateRoomRequest) String() string

type CreateRoomResponse

type CreateRoomResponse struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	Error  *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoomResponse) Descriptor deprecated

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

Deprecated: Use CreateRoomResponse.ProtoReflect.Descriptor instead.

func (*CreateRoomResponse) GetError

func (x *CreateRoomResponse) GetError() *Error

func (*CreateRoomResponse) GetRoomId

func (x *CreateRoomResponse) GetRoomId() string

func (*CreateRoomResponse) ProtoMessage

func (*CreateRoomResponse) ProtoMessage()

func (*CreateRoomResponse) ProtoReflect

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

func (*CreateRoomResponse) Reset

func (x *CreateRoomResponse) Reset()

func (*CreateRoomResponse) String

func (x *CreateRoomResponse) String() string

type Error

type Error struct {
	Code    ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=app.ErrorCode" json:"code,omitempty"`
	Message string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() ErrorCode

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type ErrorCode

type ErrorCode int32
const (
	ErrorCode_NONE                  ErrorCode = 0
	ErrorCode_INTERNAL_SERVER_ERROR ErrorCode = 1
	ErrorCode_UNAUTHORIZED          ErrorCode = 2
	ErrorCode_ROOM_IS_FULL          ErrorCode = 3
	ErrorCode_NO_PERMISSION         ErrorCode = 4
)

func (ErrorCode) Descriptor

func (ErrorCode) Descriptor() protoreflect.EnumDescriptor

func (ErrorCode) Enum

func (x ErrorCode) Enum() *ErrorCode

func (ErrorCode) EnumDescriptor deprecated

func (ErrorCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorCode.Descriptor instead.

func (ErrorCode) Number

func (x ErrorCode) Number() protoreflect.EnumNumber

func (ErrorCode) String

func (x ErrorCode) String() string

func (ErrorCode) Type

type JoinRoomNotification

type JoinRoomNotification struct {
	RoomId     string      `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	PlayerId   string      `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	PlayerData *PlayerData `protobuf:"bytes,3,opt,name=player_data,json=playerData,proto3" json:"player_data,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinRoomNotification) Descriptor deprecated

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

Deprecated: Use JoinRoomNotification.ProtoReflect.Descriptor instead.

func (*JoinRoomNotification) GetPlayerData

func (x *JoinRoomNotification) GetPlayerData() *PlayerData

func (*JoinRoomNotification) GetPlayerId

func (x *JoinRoomNotification) GetPlayerId() string

func (*JoinRoomNotification) GetRoomId

func (x *JoinRoomNotification) GetRoomId() string

func (*JoinRoomNotification) ProtoMessage

func (*JoinRoomNotification) ProtoMessage()

func (*JoinRoomNotification) ProtoReflect

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

func (*JoinRoomNotification) Reset

func (x *JoinRoomNotification) Reset()

func (*JoinRoomNotification) String

func (x *JoinRoomNotification) String() string

type JoinRoomRequest

type JoinRoomRequest struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinRoomRequest) Descriptor deprecated

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

Deprecated: Use JoinRoomRequest.ProtoReflect.Descriptor instead.

func (*JoinRoomRequest) GetRoomId

func (x *JoinRoomRequest) GetRoomId() string

func (*JoinRoomRequest) ProtoMessage

func (*JoinRoomRequest) ProtoMessage()

func (*JoinRoomRequest) ProtoReflect

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

func (*JoinRoomRequest) Reset

func (x *JoinRoomRequest) Reset()

func (*JoinRoomRequest) String

func (x *JoinRoomRequest) String() string

type JoinRoomResponse

type JoinRoomResponse struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	Error  *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinRoomResponse) Descriptor deprecated

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

Deprecated: Use JoinRoomResponse.ProtoReflect.Descriptor instead.

func (*JoinRoomResponse) GetError

func (x *JoinRoomResponse) GetError() *Error

func (*JoinRoomResponse) GetRoomId

func (x *JoinRoomResponse) GetRoomId() string

func (*JoinRoomResponse) ProtoMessage

func (*JoinRoomResponse) ProtoMessage()

func (*JoinRoomResponse) ProtoReflect

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

func (*JoinRoomResponse) Reset

func (x *JoinRoomResponse) Reset()

func (*JoinRoomResponse) String

func (x *JoinRoomResponse) String() string

type LeaveRoomNotification

type LeaveRoomNotification struct {
	RoomId   string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	PlayerId string `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LeaveRoomNotification) Descriptor deprecated

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

Deprecated: Use LeaveRoomNotification.ProtoReflect.Descriptor instead.

func (*LeaveRoomNotification) GetPlayerId

func (x *LeaveRoomNotification) GetPlayerId() string

func (*LeaveRoomNotification) GetRoomId

func (x *LeaveRoomNotification) GetRoomId() string

func (*LeaveRoomNotification) ProtoMessage

func (*LeaveRoomNotification) ProtoMessage()

func (*LeaveRoomNotification) ProtoReflect

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

func (*LeaveRoomNotification) Reset

func (x *LeaveRoomNotification) Reset()

func (*LeaveRoomNotification) String

func (x *LeaveRoomNotification) String() string

type LeaveRoomRequest

type LeaveRoomRequest struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LeaveRoomRequest) Descriptor deprecated

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

Deprecated: Use LeaveRoomRequest.ProtoReflect.Descriptor instead.

func (*LeaveRoomRequest) GetRoomId

func (x *LeaveRoomRequest) GetRoomId() string

func (*LeaveRoomRequest) ProtoMessage

func (*LeaveRoomRequest) ProtoMessage()

func (*LeaveRoomRequest) ProtoReflect

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

func (*LeaveRoomRequest) Reset

func (x *LeaveRoomRequest) Reset()

func (*LeaveRoomRequest) String

func (x *LeaveRoomRequest) String() string

type LeaveRoomResponse

type LeaveRoomResponse struct {
	RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	Error  *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*LeaveRoomResponse) Descriptor deprecated

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

Deprecated: Use LeaveRoomResponse.ProtoReflect.Descriptor instead.

func (*LeaveRoomResponse) GetError

func (x *LeaveRoomResponse) GetError() *Error

func (*LeaveRoomResponse) GetRoomId

func (x *LeaveRoomResponse) GetRoomId() string

func (*LeaveRoomResponse) ProtoMessage

func (*LeaveRoomResponse) ProtoMessage()

func (*LeaveRoomResponse) ProtoReflect

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

func (*LeaveRoomResponse) Reset

func (x *LeaveRoomResponse) Reset()

func (*LeaveRoomResponse) String

func (x *LeaveRoomResponse) String() string

type LoginRequest

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

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPlayerId

func (x *LoginRequest) GetPlayerId() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {
	Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetError

func (x *LoginResponse) GetError() *Error

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type PlayerData

type PlayerData struct {
	RoomId    string     `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	PlayerId  string     `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	Transform *Transform `protobuf:"bytes,3,opt,name=transform,proto3" json:"transform,omitempty"`
	AvaterUrl string     `protobuf:"bytes,4,opt,name=avater_url,json=avaterUrl,proto3" json:"avater_url,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerData) Descriptor deprecated

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

Deprecated: Use PlayerData.ProtoReflect.Descriptor instead.

func (*PlayerData) GetAvaterUrl

func (x *PlayerData) GetAvaterUrl() string

func (*PlayerData) GetPlayerId

func (x *PlayerData) GetPlayerId() string

func (*PlayerData) GetRoomId

func (x *PlayerData) GetRoomId() string

func (*PlayerData) GetTransform

func (x *PlayerData) GetTransform() *Transform

func (*PlayerData) ProtoMessage

func (*PlayerData) ProtoMessage()

func (*PlayerData) ProtoReflect

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

func (*PlayerData) Reset

func (x *PlayerData) Reset()

func (*PlayerData) String

func (x *PlayerData) String() string

type PlayerDataPush

type PlayerDataPush struct {
	RoomId string      `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	Data   *PlayerData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerDataPush) Descriptor deprecated

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

Deprecated: Use PlayerDataPush.ProtoReflect.Descriptor instead.

func (*PlayerDataPush) GetData

func (x *PlayerDataPush) GetData() *PlayerData

func (*PlayerDataPush) GetRoomId

func (x *PlayerDataPush) GetRoomId() string

func (*PlayerDataPush) ProtoMessage

func (*PlayerDataPush) ProtoMessage()

func (*PlayerDataPush) ProtoReflect

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

func (*PlayerDataPush) Reset

func (x *PlayerDataPush) Reset()

func (*PlayerDataPush) String

func (x *PlayerDataPush) String() string

type PlayerDataPushResponse

type PlayerDataPushResponse struct {
	Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerDataPushResponse) Descriptor deprecated

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

Deprecated: Use PlayerDataPushResponse.ProtoReflect.Descriptor instead.

func (*PlayerDataPushResponse) GetError

func (x *PlayerDataPushResponse) GetError() *Error

func (*PlayerDataPushResponse) ProtoMessage

func (*PlayerDataPushResponse) ProtoMessage()

func (*PlayerDataPushResponse) ProtoReflect

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

func (*PlayerDataPushResponse) Reset

func (x *PlayerDataPushResponse) Reset()

func (*PlayerDataPushResponse) String

func (x *PlayerDataPushResponse) String() string

type Room

type Room struct {
	RoomId     string      `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	RoomOwner  string      `protobuf:"bytes,2,opt,name=room_owner,json=roomOwner,proto3" json:"room_owner,omitempty"`
	RoomConfig *RoomConfig `protobuf:"bytes,3,opt,name=room_config,json=roomConfig,proto3" json:"room_config,omitempty"`
	PlayerId   []string    `protobuf:"bytes,4,rep,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Room) Descriptor deprecated

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

Deprecated: Use Room.ProtoReflect.Descriptor instead.

func (*Room) GetPlayerId

func (x *Room) GetPlayerId() []string

func (*Room) GetRoomConfig

func (x *Room) GetRoomConfig() *RoomConfig

func (*Room) GetRoomId

func (x *Room) GetRoomId() string

func (*Room) GetRoomOwner

func (x *Room) GetRoomOwner() string

func (*Room) ProtoMessage

func (*Room) ProtoMessage()

func (*Room) ProtoReflect

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

func (*Room) Reset

func (x *Room) Reset()

func (*Room) String

func (x *Room) String() string

type RoomConfig

type RoomConfig struct {
	RoomType   RoomType `protobuf:"varint,1,opt,name=room_type,json=roomType,proto3,enum=app.RoomType" json:"room_type,omitempty"`
	MaxPlayers uint32   `protobuf:"varint,2,opt,name=max_players,json=maxPlayers,proto3" json:"max_players,omitempty"`
	// contains filtered or unexported fields
}

func (*RoomConfig) Descriptor deprecated

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

Deprecated: Use RoomConfig.ProtoReflect.Descriptor instead.

func (*RoomConfig) GetMaxPlayers

func (x *RoomConfig) GetMaxPlayers() uint32

func (*RoomConfig) GetRoomType

func (x *RoomConfig) GetRoomType() RoomType

func (*RoomConfig) ProtoMessage

func (*RoomConfig) ProtoMessage()

func (*RoomConfig) ProtoReflect

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

func (*RoomConfig) Reset

func (x *RoomConfig) Reset()

func (*RoomConfig) String

func (x *RoomConfig) String() string

type RoomType

type RoomType int32
const (
	RoomType_GLOBAL_PUBLIC RoomType = 0
	RoomType_LOCAL_PUBLIC  RoomType = 1
	RoomType_FRIENDS_PLUS  RoomType = 2
	RoomType_FRIENDS_ONLY  RoomType = 3
	RoomType_INVITE_PLUS   RoomType = 4
	RoomType_INVITE_ONLY   RoomType = 5
)

func (RoomType) Descriptor

func (RoomType) Descriptor() protoreflect.EnumDescriptor

func (RoomType) Enum

func (x RoomType) Enum() *RoomType

func (RoomType) EnumDescriptor deprecated

func (RoomType) EnumDescriptor() ([]byte, []int)

Deprecated: Use RoomType.Descriptor instead.

func (RoomType) Number

func (x RoomType) Number() protoreflect.EnumNumber

func (RoomType) String

func (x RoomType) String() string

func (RoomType) Type

type ServerDataPush

type ServerDataPush struct {
	Data map[string]*PlayerData `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ServerDataPush) Descriptor deprecated

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

Deprecated: Use ServerDataPush.ProtoReflect.Descriptor instead.

func (*ServerDataPush) GetData

func (x *ServerDataPush) GetData() map[string]*PlayerData

func (*ServerDataPush) ProtoMessage

func (*ServerDataPush) ProtoMessage()

func (*ServerDataPush) ProtoReflect

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

func (*ServerDataPush) Reset

func (x *ServerDataPush) Reset()

func (*ServerDataPush) String

func (x *ServerDataPush) String() string

type ServerDataPushResponse

type ServerDataPushResponse struct {
	// contains filtered or unexported fields
}

func (*ServerDataPushResponse) Descriptor deprecated

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

Deprecated: Use ServerDataPushResponse.ProtoReflect.Descriptor instead.

func (*ServerDataPushResponse) ProtoMessage

func (*ServerDataPushResponse) ProtoMessage()

func (*ServerDataPushResponse) ProtoReflect

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

func (*ServerDataPushResponse) Reset

func (x *ServerDataPushResponse) Reset()

func (*ServerDataPushResponse) String

func (x *ServerDataPushResponse) String() string

type ServerMessage

type ServerMessage struct {

	// Types that are assignable to Data:
	//	*ServerMessage_LoginResponse
	//	*ServerMessage_CreateRoomResponse
	//	*ServerMessage_JoinRoomResponse
	//	*ServerMessage_JoinRoomNotification
	//	*ServerMessage_LeaveRoomResponse
	//	*ServerMessage_LeaveRoomNotification
	//	*ServerMessage_PlayerDataPushResponse
	//	*ServerMessage_ServerDataPush
	Data isServerMessage_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*ServerMessage) Descriptor deprecated

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

Deprecated: Use ServerMessage.ProtoReflect.Descriptor instead.

func (*ServerMessage) GetCreateRoomResponse

func (x *ServerMessage) GetCreateRoomResponse() *CreateRoomResponse

func (*ServerMessage) GetData

func (m *ServerMessage) GetData() isServerMessage_Data

func (*ServerMessage) GetJoinRoomNotification

func (x *ServerMessage) GetJoinRoomNotification() *JoinRoomNotification

func (*ServerMessage) GetJoinRoomResponse

func (x *ServerMessage) GetJoinRoomResponse() *JoinRoomResponse

func (*ServerMessage) GetLeaveRoomNotification

func (x *ServerMessage) GetLeaveRoomNotification() *LeaveRoomNotification

func (*ServerMessage) GetLeaveRoomResponse

func (x *ServerMessage) GetLeaveRoomResponse() *LeaveRoomResponse

func (*ServerMessage) GetLoginResponse

func (x *ServerMessage) GetLoginResponse() *LoginResponse

func (*ServerMessage) GetPlayerDataPushResponse

func (x *ServerMessage) GetPlayerDataPushResponse() *PlayerDataPushResponse

func (*ServerMessage) GetServerDataPush

func (x *ServerMessage) GetServerDataPush() *ServerDataPush

func (*ServerMessage) ProtoMessage

func (*ServerMessage) ProtoMessage()

func (*ServerMessage) ProtoReflect

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

func (*ServerMessage) Reset

func (x *ServerMessage) Reset()

func (*ServerMessage) String

func (x *ServerMessage) String() string

type ServerMessage_CreateRoomResponse

type ServerMessage_CreateRoomResponse struct {
	CreateRoomResponse *CreateRoomResponse `protobuf:"bytes,2,opt,name=create_room_response,json=createRoomResponse,proto3,oneof"`
}

type ServerMessage_JoinRoomNotification

type ServerMessage_JoinRoomNotification struct {
	JoinRoomNotification *JoinRoomNotification `protobuf:"bytes,4,opt,name=join_room_notification,json=joinRoomNotification,proto3,oneof"`
}

type ServerMessage_JoinRoomResponse

type ServerMessage_JoinRoomResponse struct {
	JoinRoomResponse *JoinRoomResponse `protobuf:"bytes,3,opt,name=join_room_response,json=joinRoomResponse,proto3,oneof"`
}

type ServerMessage_LeaveRoomNotification

type ServerMessage_LeaveRoomNotification struct {
	LeaveRoomNotification *LeaveRoomNotification `protobuf:"bytes,6,opt,name=leave_room_notification,json=leaveRoomNotification,proto3,oneof"`
}

type ServerMessage_LeaveRoomResponse

type ServerMessage_LeaveRoomResponse struct {
	LeaveRoomResponse *LeaveRoomResponse `protobuf:"bytes,5,opt,name=leave_room_response,json=leaveRoomResponse,proto3,oneof"`
}

type ServerMessage_LoginResponse

type ServerMessage_LoginResponse struct {
	LoginResponse *LoginResponse `protobuf:"bytes,1,opt,name=login_response,json=loginResponse,proto3,oneof"`
}

type ServerMessage_PlayerDataPushResponse

type ServerMessage_PlayerDataPushResponse struct {
	PlayerDataPushResponse *PlayerDataPushResponse `protobuf:"bytes,7,opt,name=player_data_push_response,json=playerDataPushResponse,proto3,oneof"`
}

type ServerMessage_ServerDataPush

type ServerMessage_ServerDataPush struct {
	ServerDataPush *ServerDataPush `protobuf:"bytes,8,opt,name=server_data_push,json=serverDataPush,proto3,oneof"`
}

type ServerNotifycation

type ServerNotifycation struct {
	// contains filtered or unexported fields
}

func (*ServerNotifycation) Descriptor deprecated

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

Deprecated: Use ServerNotifycation.ProtoReflect.Descriptor instead.

func (*ServerNotifycation) ProtoMessage

func (*ServerNotifycation) ProtoMessage()

func (*ServerNotifycation) ProtoReflect

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

func (*ServerNotifycation) Reset

func (x *ServerNotifycation) Reset()

func (*ServerNotifycation) String

func (x *ServerNotifycation) String() string

type Transform

type Transform struct {
	Positon  *Vec3 `protobuf:"bytes,1,opt,name=positon,proto3" json:"positon,omitempty"`
	Rotation *Vec4 `protobuf:"bytes,2,opt,name=rotation,proto3" json:"rotation,omitempty"`
	Size     *Vec3 `protobuf:"bytes,3,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*Transform) Descriptor deprecated

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

Deprecated: Use Transform.ProtoReflect.Descriptor instead.

func (*Transform) GetPositon

func (x *Transform) GetPositon() *Vec3

func (*Transform) GetRotation

func (x *Transform) GetRotation() *Vec4

func (*Transform) GetSize

func (x *Transform) GetSize() *Vec3

func (*Transform) ProtoMessage

func (*Transform) ProtoMessage()

func (*Transform) ProtoReflect

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

func (*Transform) Reset

func (x *Transform) Reset()

func (*Transform) String

func (x *Transform) String() string

type UnimplementedAppServer

type UnimplementedAppServer struct {
}

UnimplementedAppServer must be embedded to have forward compatible implementations.

func (UnimplementedAppServer) Start

type UnsafeAppServer

type UnsafeAppServer interface {
	// contains filtered or unexported methods
}

UnsafeAppServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AppServer will result in compilation errors.

type Vec3

type Vec3 struct {
	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
	Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
	// contains filtered or unexported fields
}

func (*Vec3) Descriptor deprecated

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

Deprecated: Use Vec3.ProtoReflect.Descriptor instead.

func (*Vec3) GetX

func (x *Vec3) GetX() float32

func (*Vec3) GetY

func (x *Vec3) GetY() float32

func (*Vec3) GetZ

func (x *Vec3) GetZ() float32

func (*Vec3) ProtoMessage

func (*Vec3) ProtoMessage()

func (*Vec3) ProtoReflect

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

func (*Vec3) Reset

func (x *Vec3) Reset()

func (*Vec3) String

func (x *Vec3) String() string

type Vec4

type Vec4 struct {
	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
	Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
	W float32 `protobuf:"fixed32,4,opt,name=w,proto3" json:"w,omitempty"`
	// contains filtered or unexported fields
}

func (*Vec4) Descriptor deprecated

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

Deprecated: Use Vec4.ProtoReflect.Descriptor instead.

func (*Vec4) GetW

func (x *Vec4) GetW() float32

func (*Vec4) GetX

func (x *Vec4) GetX() float32

func (*Vec4) GetY

func (x *Vec4) GetY() float32

func (*Vec4) GetZ

func (x *Vec4) GetZ() float32

func (*Vec4) ProtoMessage

func (*Vec4) ProtoMessage()

func (*Vec4) ProtoReflect

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

func (*Vec4) Reset

func (x *Vec4) Reset()

func (*Vec4) String

func (x *Vec4) String() string

Jump to

Keyboard shortcuts

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