pb

package
v0.0.0-...-ebe70a3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCommon = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommon   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthGame = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGame   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthInternal = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowInternal   = fmt.Errorf("proto: integer overflow")
)
View Source
var AccountStatus_name = map[int32]string{
	0:  "ACCOUNT_STATUS_NORMAL",
	1:  "ACCOUNT_STATUS_RESTRICTED",
	2:  "ACCOUNT_STATUS_BANNED",
	4:  "ACCOUNT_STATUS_DELETED",
	8:  "ACCOUNT_STATUS_BOT",
	16: "ACCOUNT_STATUS_OFFICIAL",
}
View Source
var AccountStatus_value = map[string]int32{
	"ACCOUNT_STATUS_NORMAL":     0,
	"ACCOUNT_STATUS_RESTRICTED": 1,
	"ACCOUNT_STATUS_BANNED":     2,
	"ACCOUNT_STATUS_DELETED":    4,
	"ACCOUNT_STATUS_BOT":        8,
	"ACCOUNT_STATUS_OFFICIAL":   16,
}
View Source
var ActionResult_name = map[int32]string{
	0: "ACTION_RESULT_OK",
	1: "ACTION_RESULT_GAME_NOT_START",
	2: "ACTION_RESULT_NOT_TURN",
	3: "ACTION_RESULT_CARD_NOT_EXIST",
	4: "ACTION_RESULT_NOT_DRAW_CARD",
	5: "ACTION_RESULT_NEED_COLOR",
	6: "ACTION_RESULT_INVALID",
}
View Source
var ActionResult_value = map[string]int32{
	"ACTION_RESULT_OK":             0,
	"ACTION_RESULT_GAME_NOT_START": 1,
	"ACTION_RESULT_NOT_TURN":       2,
	"ACTION_RESULT_CARD_NOT_EXIST": 3,
	"ACTION_RESULT_NOT_DRAW_CARD":  4,
	"ACTION_RESULT_NEED_COLOR":     5,
	"ACTION_RESULT_INVALID":        6,
}
View Source
var Action_name = map[int32]string{
	0: "ACTION_RESERVED",
	1: "ACTION_PLAY",
	2: "ACTION_UNO_PLAY",
	3: "ACTION_DRAW",
	4: "ACTION_KEEP",
	5: "ACTION_CHALLENGE",
	6: "ACTION_ACCEPT",
}
View Source
var Action_value = map[string]int32{
	"ACTION_RESERVED":  0,
	"ACTION_PLAY":      1,
	"ACTION_UNO_PLAY":  2,
	"ACTION_DRAW":      3,
	"ACTION_KEEP":      4,
	"ACTION_CHALLENGE": 5,
	"ACTION_ACCEPT":    6,
}
View Source
var CardColor_name = map[int32]string{
	0:  "COLOR_WILD",
	16: "COLOR_RED",
	32: "COLOR_YELLOW",
	48: "COLOR_BLUE",
	64: "COLOR_GREEN",
}
View Source
var CardColor_value = map[string]int32{
	"COLOR_WILD":   0,
	"COLOR_RED":    16,
	"COLOR_YELLOW": 32,
	"COLOR_BLUE":   48,
	"COLOR_GREEN":  64,
}
View Source
var Cmd_name = map[int32]string{
	0:    "RESERVED",
	4097: "HEART_BEAT_REQ",
	4098: "HEART_BEAT_RESP",
	4100: "KICK_NOTIFY",
	4113: "HANDSHAKE_REQ",
	4114: "HANDSHAKE_RESP",
	4131: "LOGOUT_REQ",
	4132: "LOGOUT_RESP",
	4231: "OFFLINE_REQ",
	4241: "PING_REQ",
	4242: "PING_RESP",
	8192: "CMD_COMMON_END",
}
View Source
var Cmd_value = map[string]int32{
	"RESERVED":        0,
	"HEART_BEAT_REQ":  4097,
	"HEART_BEAT_RESP": 4098,
	"KICK_NOTIFY":     4100,
	"HANDSHAKE_REQ":   4113,
	"HANDSHAKE_RESP":  4114,
	"LOGOUT_REQ":      4131,
	"LOGOUT_RESP":     4132,
	"OFFLINE_REQ":     4231,
	"PING_REQ":        4241,
	"PING_RESP":       4242,
	"CMD_COMMON_END":  8192,
}
View Source
var DeviceType_name = map[int32]string{
	0: "DEVICE_TYPE_UNKNOWN",
	1: "DEVICE_TYPE_BROWSER",
	2: "DEVICE_TYPE_IOS",
	3: "DEVICE_TYPE_ANDROID",
}
View Source
var DeviceType_value = map[string]int32{
	"DEVICE_TYPE_UNKNOWN": 0,
	"DEVICE_TYPE_BROWSER": 1,
	"DEVICE_TYPE_IOS":     2,
	"DEVICE_TYPE_ANDROID": 3,
}
View Source
var Event_name = map[int32]string{
	0:  "EVENT_RESERVED",
	1:  "EVENT_TURN",
	2:  "EVENT_PLAY",
	3:  "EVENT_UNO_PLAY",
	4:  "EVENT_DRAW",
	5:  "EVENT_KEEP",
	6:  "EVENT_SKIP",
	7:  "EVENT_CHALLENGE",
	8:  "EVENT_CHALLENGE_PENALTY",
	9:  "EVENT_TIMEOUT",
	10: "EVENT_DECK_SHUFFLE",
	11: "EVENT_REVERSE",
}
View Source
var Event_value = map[string]int32{
	"EVENT_RESERVED":          0,
	"EVENT_TURN":              1,
	"EVENT_PLAY":              2,
	"EVENT_UNO_PLAY":          3,
	"EVENT_DRAW":              4,
	"EVENT_KEEP":              5,
	"EVENT_SKIP":              6,
	"EVENT_CHALLENGE":         7,
	"EVENT_CHALLENGE_PENALTY": 8,
	"EVENT_TIMEOUT":           9,
	"EVENT_DECK_SHUFFLE":      10,
	"EVENT_REVERSE":           11,
}
View Source
var FrameType_name = map[int32]string{
	0: "Message",
	1: "Kick",
	2: "Ping",
}
View Source
var FrameType_value = map[string]int32{
	"Message": 0,
	"Kick":    1,
	"Ping":    2,
}
View Source
var GameCmd_name = map[int32]string{
	0:    "GAME_RESERVED",
	8193: "ENTER_GAME_REQ",
	8194: "ENTER_GAME_RESP",
	8195: "ACTION_REQ",
	8196: "ACTION_RESP",
	8198: "EVENT_NTY",
	8200: "PLAYER_JOIN_NTY",
	8202: "PLAYER_LEFT_NTY",
	8204: "GAME_START_NTY",
	8206: "GAME_OVER_NTY",
}
View Source
var GameCmd_value = map[string]int32{
	"GAME_RESERVED":   0,
	"ENTER_GAME_REQ":  8193,
	"ENTER_GAME_RESP": 8194,
	"ACTION_REQ":      8195,
	"ACTION_RESP":     8196,
	"EVENT_NTY":       8198,
	"PLAYER_JOIN_NTY": 8200,
	"PLAYER_LEFT_NTY": 8202,
	"GAME_START_NTY":  8204,
	"GAME_OVER_NTY":   8206,
}
View Source
var Gender_name = map[int32]string{
	0: "GENDER_UNKNOWN",
	1: "GENDER_FEMALE",
	2: "GENDER_MALE",
}
View Source
var Gender_value = map[string]int32{
	"GENDER_UNKNOWN": 0,
	"GENDER_FEMALE":  1,
	"GENDER_MALE":    2,
}
View Source
var KickReason_name = map[int32]string{
	0: "KICK_NO_REASON",
	1: "KICK_LOGIN_ELSEWHERE",
	2: "KICK_SESSION_EXPIRED",
	3: "KICK_ILLEGAL_OPERATION",
	4: "KICK_BANNED",
}
View Source
var KickReason_value = map[string]int32{
	"KICK_NO_REASON":         0,
	"KICK_LOGIN_ELSEWHERE":   1,
	"KICK_SESSION_EXPIRED":   2,
	"KICK_ILLEGAL_OPERATION": 3,
	"KICK_BANNED":            4,
}
View Source
var PlayerStatus_name = map[int32]string{
	0: "STATUS_DEFAULT",
	1: "STATUS_UNO",
	2: "STATUS_DRAW",
	4: "STATUS_CHALLENGE",
}
View Source
var PlayerStatus_value = map[string]int32{
	"STATUS_DEFAULT":   0,
	"STATUS_UNO":       1,
	"STATUS_DRAW":      2,
	"STATUS_CHALLENGE": 4,
}
View Source
var StatusCode_name = map[int32]string{
	0:    "STATUS_OK",
	4000: "STATUS_INVALID",
	4001: "STATUS_UNAUTH",
	4004: "STATUS_UNKNOWN_CMD",
	4008: "STATUS_TIMEOUT",
	4029: "STATUS_TOO_MANY_REQ",
	5000: "STATUS_INTERNAL_ERROR",
	5003: "STATUS_UNAVAILABLE",
}
View Source
var StatusCode_value = map[string]int32{
	"STATUS_OK":             0,
	"STATUS_INVALID":        4000,
	"STATUS_UNAUTH":         4001,
	"STATUS_UNKNOWN_CMD":    4004,
	"STATUS_TIMEOUT":        4008,
	"STATUS_TOO_MANY_REQ":   4029,
	"STATUS_INTERNAL_ERROR": 5000,
	"STATUS_UNAVAILABLE":    5003,
}
View Source
var TableStatus_name = map[int32]string{
	0: "STATUS_IDLE",
	1: "STATUS_WAIT",
	2: "STATUS_PLAYING",
	3: "STATUS_GAME_OVER",
}
View Source
var TableStatus_value = map[string]int32{
	"STATUS_IDLE":      0,
	"STATUS_WAIT":      1,
	"STATUS_PLAYING":   2,
	"STATUS_GAME_OVER": 3,
}

Functions

This section is empty.

Types

type AccountStatus

type AccountStatus int32
const (
	AccountStatus_ACCOUNT_STATUS_NORMAL     AccountStatus = 0
	AccountStatus_ACCOUNT_STATUS_RESTRICTED AccountStatus = 1
	AccountStatus_ACCOUNT_STATUS_BANNED     AccountStatus = 2
	AccountStatus_ACCOUNT_STATUS_DELETED    AccountStatus = 4
	AccountStatus_ACCOUNT_STATUS_BOT        AccountStatus = 8
	AccountStatus_ACCOUNT_STATUS_OFFICIAL   AccountStatus = 16
)

func (AccountStatus) EnumDescriptor

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

func (AccountStatus) String

func (x AccountStatus) String() string

type Action

type Action int32
const (
	Action_ACTION_RESERVED  Action = 0
	Action_ACTION_PLAY      Action = 1
	Action_ACTION_UNO_PLAY  Action = 2
	Action_ACTION_DRAW      Action = 3
	Action_ACTION_KEEP      Action = 4
	Action_ACTION_CHALLENGE Action = 5
	Action_ACTION_ACCEPT    Action = 6
)

func (Action) EnumDescriptor

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

func (Action) String

func (x Action) String() string

type ActionResult

type ActionResult int32
const (
	ActionResult_ACTION_RESULT_OK             ActionResult = 0
	ActionResult_ACTION_RESULT_GAME_NOT_START ActionResult = 1
	ActionResult_ACTION_RESULT_NOT_TURN       ActionResult = 2
	ActionResult_ACTION_RESULT_CARD_NOT_EXIST ActionResult = 3
	ActionResult_ACTION_RESULT_NOT_DRAW_CARD  ActionResult = 4
	ActionResult_ACTION_RESULT_NEED_COLOR     ActionResult = 5
	ActionResult_ACTION_RESULT_INVALID        ActionResult = 6
)

func (ActionResult) EnumDescriptor

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

func (ActionResult) String

func (x ActionResult) String() string

type C2SActionReq

type C2SActionReq struct {
	Action               int32    `protobuf:"varint,1,opt,name=action,proto3" json:"action,omitempty"`
	Card                 []byte   `protobuf:"bytes,2,opt,name=card,proto3" json:"card,omitempty"`
	Color                int32    `protobuf:"varint,3,opt,name=color,proto3" json:"color,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*C2SActionReq) Descriptor

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

func (*C2SActionReq) GetAction

func (m *C2SActionReq) GetAction() int32

func (*C2SActionReq) GetCard

func (m *C2SActionReq) GetCard() []byte

func (*C2SActionReq) GetColor

func (m *C2SActionReq) GetColor() int32

func (*C2SActionReq) Marshal

func (m *C2SActionReq) Marshal() (dAtA []byte, err error)

func (*C2SActionReq) MarshalTo

func (m *C2SActionReq) MarshalTo(dAtA []byte) (int, error)

func (*C2SActionReq) ProtoMessage

func (*C2SActionReq) ProtoMessage()

func (*C2SActionReq) Reset

func (m *C2SActionReq) Reset()

func (*C2SActionReq) Size

func (m *C2SActionReq) Size() (n int)

func (*C2SActionReq) String

func (m *C2SActionReq) String() string

func (*C2SActionReq) Unmarshal

func (m *C2SActionReq) Unmarshal(dAtA []byte) error

func (*C2SActionReq) XXX_DiscardUnknown

func (m *C2SActionReq) XXX_DiscardUnknown()

func (*C2SActionReq) XXX_Marshal

func (m *C2SActionReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*C2SActionReq) XXX_Merge

func (dst *C2SActionReq) XXX_Merge(src proto.Message)

func (*C2SActionReq) XXX_Size

func (m *C2SActionReq) XXX_Size() int

func (*C2SActionReq) XXX_Unmarshal

func (m *C2SActionReq) XXX_Unmarshal(b []byte) error

type C2SHandshakeReq

type C2SHandshakeReq struct {
	Udid                 string   `protobuf:"bytes,1,opt,name=udid,proto3" json:"udid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Handshake request C->S

func (*C2SHandshakeReq) Descriptor

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

func (*C2SHandshakeReq) GetUdid

func (m *C2SHandshakeReq) GetUdid() string

func (*C2SHandshakeReq) Marshal

func (m *C2SHandshakeReq) Marshal() (dAtA []byte, err error)

func (*C2SHandshakeReq) MarshalTo

func (m *C2SHandshakeReq) MarshalTo(dAtA []byte) (int, error)

func (*C2SHandshakeReq) ProtoMessage

func (*C2SHandshakeReq) ProtoMessage()

func (*C2SHandshakeReq) Reset

func (m *C2SHandshakeReq) Reset()

func (*C2SHandshakeReq) Size

func (m *C2SHandshakeReq) Size() (n int)

func (*C2SHandshakeReq) String

func (m *C2SHandshakeReq) String() string

func (*C2SHandshakeReq) Unmarshal

func (m *C2SHandshakeReq) Unmarshal(dAtA []byte) error

func (*C2SHandshakeReq) XXX_DiscardUnknown

func (m *C2SHandshakeReq) XXX_DiscardUnknown()

func (*C2SHandshakeReq) XXX_Marshal

func (m *C2SHandshakeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*C2SHandshakeReq) XXX_Merge

func (dst *C2SHandshakeReq) XXX_Merge(src proto.Message)

func (*C2SHandshakeReq) XXX_Size

func (m *C2SHandshakeReq) XXX_Size() int

func (*C2SHandshakeReq) XXX_Unmarshal

func (m *C2SHandshakeReq) XXX_Unmarshal(b []byte) error

type C2SHeader

type C2SHeader struct {
	Version              int32       `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Cmd                  int32       `protobuf:"varint,2,opt,name=cmd,proto3" json:"cmd,omitempty"`
	Seq                  uint64      `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"`
	Uid                  uint64      `protobuf:"fixed64,4,opt,name=uid,proto3" json:"uid,omitempty"`
	ClientInfo           *ClientInfo `protobuf:"bytes,5,opt,name=client_info,json=clientInfo" json:"client_info,omitempty"`
	Body                 []byte      `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Client request header

func (*C2SHeader) Descriptor

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

func (*C2SHeader) GetBody

func (m *C2SHeader) GetBody() []byte

func (*C2SHeader) GetClientInfo

func (m *C2SHeader) GetClientInfo() *ClientInfo

func (*C2SHeader) GetCmd

func (m *C2SHeader) GetCmd() int32

func (*C2SHeader) GetSeq

func (m *C2SHeader) GetSeq() uint64

func (*C2SHeader) GetUid

func (m *C2SHeader) GetUid() uint64

func (*C2SHeader) GetVersion

func (m *C2SHeader) GetVersion() int32

func (*C2SHeader) Marshal

func (m *C2SHeader) Marshal() (dAtA []byte, err error)

func (*C2SHeader) MarshalTo

func (m *C2SHeader) MarshalTo(dAtA []byte) (int, error)

func (*C2SHeader) ProtoMessage

func (*C2SHeader) ProtoMessage()

func (*C2SHeader) Reset

func (m *C2SHeader) Reset()

func (*C2SHeader) Size

func (m *C2SHeader) Size() (n int)

func (*C2SHeader) String

func (m *C2SHeader) String() string

func (*C2SHeader) Unmarshal

func (m *C2SHeader) Unmarshal(dAtA []byte) error

func (*C2SHeader) XXX_DiscardUnknown

func (m *C2SHeader) XXX_DiscardUnknown()

func (*C2SHeader) XXX_Marshal

func (m *C2SHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*C2SHeader) XXX_Merge

func (dst *C2SHeader) XXX_Merge(src proto.Message)

func (*C2SHeader) XXX_Size

func (m *C2SHeader) XXX_Size() int

func (*C2SHeader) XXX_Unmarshal

func (m *C2SHeader) XXX_Unmarshal(b []byte) error

type CardColor

type CardColor int32
const (
	CardColor_COLOR_WILD   CardColor = 0
	CardColor_COLOR_RED    CardColor = 16
	CardColor_COLOR_YELLOW CardColor = 32
	CardColor_COLOR_BLUE   CardColor = 48
	CardColor_COLOR_GREEN  CardColor = 64
)

func (CardColor) EnumDescriptor

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

func (CardColor) String

func (x CardColor) String() string

type ClientInfo

type ClientInfo struct {
	DeviceType           int32    `protobuf:"varint,1,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	Timestamp            uint64   `protobuf:"fixed64,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Os                   string   `protobuf:"bytes,3,opt,name=os,proto3" json:"os,omitempty"`
	OsLocale             string   `protobuf:"bytes,4,opt,name=os_locale,json=osLocale,proto3" json:"os_locale,omitempty"`
	AppVersion           string   `protobuf:"bytes,5,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
	AppLocale            string   `protobuf:"bytes,6,opt,name=app_locale,json=appLocale,proto3" json:"app_locale,omitempty"`
	Timezone             string   `protobuf:"bytes,7,opt,name=timezone,proto3" json:"timezone,omitempty"`
	Mcc                  int32    `protobuf:"varint,8,opt,name=mcc,proto3" json:"mcc,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Client info

func (*ClientInfo) Descriptor

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

func (*ClientInfo) GetAppLocale

func (m *ClientInfo) GetAppLocale() string

func (*ClientInfo) GetAppVersion

func (m *ClientInfo) GetAppVersion() string

func (*ClientInfo) GetDeviceType

func (m *ClientInfo) GetDeviceType() int32

func (*ClientInfo) GetMcc

func (m *ClientInfo) GetMcc() int32

func (*ClientInfo) GetOs

func (m *ClientInfo) GetOs() string

func (*ClientInfo) GetOsLocale

func (m *ClientInfo) GetOsLocale() string

func (*ClientInfo) GetTimestamp

func (m *ClientInfo) GetTimestamp() uint64

func (*ClientInfo) GetTimezone

func (m *ClientInfo) GetTimezone() string

func (*ClientInfo) Marshal

func (m *ClientInfo) Marshal() (dAtA []byte, err error)

func (*ClientInfo) MarshalTo

func (m *ClientInfo) MarshalTo(dAtA []byte) (int, error)

func (*ClientInfo) ProtoMessage

func (*ClientInfo) ProtoMessage()

func (*ClientInfo) Reset

func (m *ClientInfo) Reset()

func (*ClientInfo) Size

func (m *ClientInfo) Size() (n int)

func (*ClientInfo) String

func (m *ClientInfo) String() string

func (*ClientInfo) Unmarshal

func (m *ClientInfo) Unmarshal(dAtA []byte) error

func (*ClientInfo) XXX_DiscardUnknown

func (m *ClientInfo) XXX_DiscardUnknown()

func (*ClientInfo) XXX_Marshal

func (m *ClientInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClientInfo) XXX_Merge

func (dst *ClientInfo) XXX_Merge(src proto.Message)

func (*ClientInfo) XXX_Size

func (m *ClientInfo) XXX_Size() int

func (*ClientInfo) XXX_Unmarshal

func (m *ClientInfo) XXX_Unmarshal(b []byte) error

type Cmd

type Cmd int32

Command Codes S -> C : even C -> S : odd

const (
	Cmd_RESERVED Cmd = 0
	// Common Commands, handle by agent
	Cmd_HEART_BEAT_REQ  Cmd = 4097
	Cmd_HEART_BEAT_RESP Cmd = 4098
	Cmd_KICK_NOTIFY     Cmd = 4100
	Cmd_HANDSHAKE_REQ   Cmd = 4113
	Cmd_HANDSHAKE_RESP  Cmd = 4114
	Cmd_LOGOUT_REQ      Cmd = 4131
	Cmd_LOGOUT_RESP     Cmd = 4132
	Cmd_OFFLINE_REQ     Cmd = 4231
	Cmd_PING_REQ        Cmd = 4241
	Cmd_PING_RESP       Cmd = 4242
	Cmd_CMD_COMMON_END  Cmd = 8192
)

func (Cmd) EnumDescriptor

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

func (Cmd) String

func (x Cmd) String() string

type DeviceType

type DeviceType int32
const (
	DeviceType_DEVICE_TYPE_UNKNOWN DeviceType = 0
	DeviceType_DEVICE_TYPE_BROWSER DeviceType = 1
	DeviceType_DEVICE_TYPE_IOS     DeviceType = 2
	DeviceType_DEVICE_TYPE_ANDROID DeviceType = 3
)

func (DeviceType) EnumDescriptor

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

func (DeviceType) String

func (x DeviceType) String() string

type Event

type Event int32
const (
	Event_EVENT_RESERVED          Event = 0
	Event_EVENT_TURN              Event = 1
	Event_EVENT_PLAY              Event = 2
	Event_EVENT_UNO_PLAY          Event = 3
	Event_EVENT_DRAW              Event = 4
	Event_EVENT_KEEP              Event = 5
	Event_EVENT_SKIP              Event = 6
	Event_EVENT_CHALLENGE         Event = 7
	Event_EVENT_CHALLENGE_PENALTY Event = 8
	Event_EVENT_TIMEOUT           Event = 9
	Event_EVENT_DECK_SHUFFLE      Event = 10
	Event_EVENT_REVERSE           Event = 11
)

func (Event) EnumDescriptor

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

func (Event) String

func (x Event) String() string

type Frame

type Frame struct {
	Type                 FrameType `protobuf:"varint,1,opt,name=type,proto3,enum=proto.internal.FrameType" json:"type,omitempty"`
	Cmd                  int32     `protobuf:"varint,2,opt,name=cmd,proto3" json:"cmd,omitempty"`
	Status               int32     `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	Message              string    `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	Body                 []byte    `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Frame) Descriptor

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

func (*Frame) GetBody

func (m *Frame) GetBody() []byte

func (*Frame) GetCmd

func (m *Frame) GetCmd() int32

func (*Frame) GetMessage

func (m *Frame) GetMessage() string

func (*Frame) GetStatus

func (m *Frame) GetStatus() int32

func (*Frame) GetType

func (m *Frame) GetType() FrameType

func (*Frame) Marshal

func (m *Frame) Marshal() (dAtA []byte, err error)

func (*Frame) MarshalTo

func (m *Frame) MarshalTo(dAtA []byte) (int, error)

func (*Frame) ProtoMessage

func (*Frame) ProtoMessage()

func (*Frame) Reset

func (m *Frame) Reset()

func (*Frame) Size

func (m *Frame) Size() (n int)

func (*Frame) String

func (m *Frame) String() string

func (*Frame) Unmarshal

func (m *Frame) Unmarshal(dAtA []byte) error

func (*Frame) XXX_DiscardUnknown

func (m *Frame) XXX_DiscardUnknown()

func (*Frame) XXX_Marshal

func (m *Frame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Frame) XXX_Merge

func (dst *Frame) XXX_Merge(src proto.Message)

func (*Frame) XXX_Size

func (m *Frame) XXX_Size() int

func (*Frame) XXX_Unmarshal

func (m *Frame) XXX_Unmarshal(b []byte) error

type FrameType

type FrameType int32
const (
	FrameType_Message FrameType = 0
	FrameType_Kick    FrameType = 1
	FrameType_Ping    FrameType = 2
)

func (FrameType) EnumDescriptor

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

func (FrameType) String

func (x FrameType) String() string

type GameCmd

type GameCmd int32

Command Codes S -> C : even C -> S : odd

const (
	GameCmd_GAME_RESERVED   GameCmd = 0
	GameCmd_ENTER_GAME_REQ  GameCmd = 8193
	GameCmd_ENTER_GAME_RESP GameCmd = 8194
	GameCmd_ACTION_REQ      GameCmd = 8195
	GameCmd_ACTION_RESP     GameCmd = 8196
	GameCmd_EVENT_NTY       GameCmd = 8198
	GameCmd_PLAYER_JOIN_NTY GameCmd = 8200
	GameCmd_PLAYER_LEFT_NTY GameCmd = 8202
	GameCmd_GAME_START_NTY  GameCmd = 8204
	GameCmd_GAME_OVER_NTY   GameCmd = 8206
)

func (GameCmd) EnumDescriptor

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

func (GameCmd) String

func (x GameCmd) String() string

type Gender

type Gender int32
const (
	Gender_GENDER_UNKNOWN Gender = 0
	Gender_GENDER_FEMALE  Gender = 1
	Gender_GENDER_MALE    Gender = 2
)

func (Gender) EnumDescriptor

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

func (Gender) String

func (x Gender) String() string

type KickReason

type KickReason int32
const (
	KickReason_KICK_NO_REASON         KickReason = 0
	KickReason_KICK_LOGIN_ELSEWHERE   KickReason = 1
	KickReason_KICK_SESSION_EXPIRED   KickReason = 2
	KickReason_KICK_ILLEGAL_OPERATION KickReason = 3
	KickReason_KICK_BANNED            KickReason = 4
)

func (KickReason) EnumDescriptor

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

func (KickReason) String

func (x KickReason) String() string

type PlayerStatus

type PlayerStatus int32
const (
	PlayerStatus_STATUS_DEFAULT   PlayerStatus = 0
	PlayerStatus_STATUS_UNO       PlayerStatus = 1
	PlayerStatus_STATUS_DRAW      PlayerStatus = 2
	PlayerStatus_STATUS_CHALLENGE PlayerStatus = 4
)

func (PlayerStatus) EnumDescriptor

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

func (PlayerStatus) String

func (x PlayerStatus) String() string

type S2CActionResp

type S2CActionResp struct {
	Result               int32    `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	Card                 []byte   `protobuf:"bytes,2,opt,name=card,proto3" json:"card,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*S2CActionResp) Descriptor

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

func (*S2CActionResp) GetCard

func (m *S2CActionResp) GetCard() []byte

func (*S2CActionResp) GetResult

func (m *S2CActionResp) GetResult() int32

func (*S2CActionResp) Marshal

func (m *S2CActionResp) Marshal() (dAtA []byte, err error)

func (*S2CActionResp) MarshalTo

func (m *S2CActionResp) MarshalTo(dAtA []byte) (int, error)

func (*S2CActionResp) ProtoMessage

func (*S2CActionResp) ProtoMessage()

func (*S2CActionResp) Reset

func (m *S2CActionResp) Reset()

func (*S2CActionResp) Size

func (m *S2CActionResp) Size() (n int)

func (*S2CActionResp) String

func (m *S2CActionResp) String() string

func (*S2CActionResp) Unmarshal

func (m *S2CActionResp) Unmarshal(dAtA []byte) error

func (*S2CActionResp) XXX_DiscardUnknown

func (m *S2CActionResp) XXX_DiscardUnknown()

func (*S2CActionResp) XXX_Marshal

func (m *S2CActionResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*S2CActionResp) XXX_Merge

func (dst *S2CActionResp) XXX_Merge(src proto.Message)

func (*S2CActionResp) XXX_Size

func (m *S2CActionResp) XXX_Size() int

func (*S2CActionResp) XXX_Unmarshal

func (m *S2CActionResp) XXX_Unmarshal(b []byte) error

type S2CEventNty

type S2CEventNty struct {
	Events               []*SingleEvent `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*S2CEventNty) Descriptor

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

func (*S2CEventNty) GetEvents

func (m *S2CEventNty) GetEvents() []*SingleEvent

func (*S2CEventNty) Marshal

func (m *S2CEventNty) Marshal() (dAtA []byte, err error)

func (*S2CEventNty) MarshalTo

func (m *S2CEventNty) MarshalTo(dAtA []byte) (int, error)

func (*S2CEventNty) ProtoMessage

func (*S2CEventNty) ProtoMessage()

func (*S2CEventNty) Reset

func (m *S2CEventNty) Reset()

func (*S2CEventNty) Size

func (m *S2CEventNty) Size() (n int)

func (*S2CEventNty) String

func (m *S2CEventNty) String() string

func (*S2CEventNty) Unmarshal

func (m *S2CEventNty) Unmarshal(dAtA []byte) error

func (*S2CEventNty) XXX_DiscardUnknown

func (m *S2CEventNty) XXX_DiscardUnknown()

func (*S2CEventNty) XXX_Marshal

func (m *S2CEventNty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*S2CEventNty) XXX_Merge

func (dst *S2CEventNty) XXX_Merge(src proto.Message)

func (*S2CEventNty) XXX_Size

func (m *S2CEventNty) XXX_Size() int

func (*S2CEventNty) XXX_Unmarshal

func (m *S2CEventNty) XXX_Unmarshal(b []byte) error

type S2CGameOverNty

type S2CGameOverNty struct {
	Ranks                []uint64 `protobuf:"fixed64,1,rep,packed,name=ranks" json:"ranks,omitempty"`
	Scores               []int32  `protobuf:"varint,2,rep,packed,name=scores" json:"scores,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*S2CGameOverNty) Descriptor

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

func (*S2CGameOverNty) GetRanks

func (m *S2CGameOverNty) GetRanks() []uint64

func (*S2CGameOverNty) GetScores

func (m *S2CGameOverNty) GetScores() []int32

func (*S2CGameOverNty) Marshal

func (m *S2CGameOverNty) Marshal() (dAtA []byte, err error)

func (*S2CGameOverNty) MarshalTo

func (m *S2CGameOverNty) MarshalTo(dAtA []byte) (int, error)

func (*S2CGameOverNty) ProtoMessage

func (*S2CGameOverNty) ProtoMessage()

func (*S2CGameOverNty) Reset

func (m *S2CGameOverNty) Reset()

func (*S2CGameOverNty) Size

func (m *S2CGameOverNty) Size() (n int)

func (*S2CGameOverNty) String

func (m *S2CGameOverNty) String() string

func (*S2CGameOverNty) Unmarshal

func (m *S2CGameOverNty) Unmarshal(dAtA []byte) error

func (*S2CGameOverNty) XXX_DiscardUnknown

func (m *S2CGameOverNty) XXX_DiscardUnknown()

func (*S2CGameOverNty) XXX_Marshal

func (m *S2CGameOverNty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*S2CGameOverNty) XXX_Merge

func (dst *S2CGameOverNty) XXX_Merge(src proto.Message)

func (*S2CGameOverNty) XXX_Size

func (m *S2CGameOverNty) XXX_Size() int

func (*S2CGameOverNty) XXX_Unmarshal

func (m *S2CGameOverNty) XXX_Unmarshal(b []byte) error

type S2CHandshakeResp

type S2CHandshakeResp struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Handshake response S->C

func (*S2CHandshakeResp) Descriptor

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

func (*S2CHandshakeResp) GetToken

func (m *S2CHandshakeResp) GetToken() string

func (*S2CHandshakeResp) Marshal

func (m *S2CHandshakeResp) Marshal() (dAtA []byte, err error)

func (*S2CHandshakeResp) MarshalTo

func (m *S2CHandshakeResp) MarshalTo(dAtA []byte) (int, error)

func (*S2CHandshakeResp) ProtoMessage

func (*S2CHandshakeResp) ProtoMessage()

func (*S2CHandshakeResp) Reset

func (m *S2CHandshakeResp) Reset()

func (*S2CHandshakeResp) Size

func (m *S2CHandshakeResp) Size() (n int)

func (*S2CHandshakeResp) String

func (m *S2CHandshakeResp) String() string

func (*S2CHandshakeResp) Unmarshal

func (m *S2CHandshakeResp) Unmarshal(dAtA []byte) error

func (*S2CHandshakeResp) XXX_DiscardUnknown

func (m *S2CHandshakeResp) XXX_DiscardUnknown()

func (*S2CHandshakeResp) XXX_Marshal

func (m *S2CHandshakeResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*S2CHandshakeResp) XXX_Merge

func (dst *S2CHandshakeResp) XXX_Merge(src proto.Message)

func (*S2CHandshakeResp) XXX_Size

func (m *S2CHandshakeResp) XXX_Size() int

func (*S2CHandshakeResp) XXX_Unmarshal

func (m *S2CHandshakeResp) XXX_Unmarshal(b []byte) error

type S2CHeader

type S2CHeader struct {
	Cmd                  int32    `protobuf:"varint,1,opt,name=cmd,proto3" json:"cmd,omitempty"`
	Seq                  uint64   `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
	Status               int32    `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	Timestamp            uint64   `protobuf:"fixed64,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Msg                  string   `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"`
	Body                 []byte   `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Server response header

func (*S2CHeader) Descriptor

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

func (*S2CHeader) GetBody

func (m *S2CHeader) GetBody() []byte

func (*S2CHeader) GetCmd

func (m *S2CHeader) GetCmd() int32

func (*S2CHeader) GetMsg

func (m *S2CHeader) GetMsg() string

func (*S2CHeader) GetSeq

func (m *S2CHeader) GetSeq() uint64

func (*S2CHeader) GetStatus

func (m *S2CHeader) GetStatus() int32

func (*S2CHeader) GetTimestamp

func (m *S2CHeader) GetTimestamp() uint64

func (*S2CHeader) Marshal

func (m *S2CHeader) Marshal() (dAtA []byte, err error)

func (*S2CHeader) MarshalTo

func (m *S2CHeader) MarshalTo(dAtA []byte) (int, error)

func (*S2CHeader) ProtoMessage

func (*S2CHeader) ProtoMessage()

func (*S2CHeader) Reset

func (m *S2CHeader) Reset()

func (*S2CHeader) Size

func (m *S2CHeader) Size() (n int)

func (*S2CHeader) String

func (m *S2CHeader) String() string

func (*S2CHeader) Unmarshal

func (m *S2CHeader) Unmarshal(dAtA []byte) error

func (*S2CHeader) XXX_DiscardUnknown

func (m *S2CHeader) XXX_DiscardUnknown()

func (*S2CHeader) XXX_Marshal

func (m *S2CHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*S2CHeader) XXX_Merge

func (dst *S2CHeader) XXX_Merge(src proto.Message)

func (*S2CHeader) XXX_Size

func (m *S2CHeader) XXX_Size() int

func (*S2CHeader) XXX_Unmarshal

func (m *S2CHeader) XXX_Unmarshal(b []byte) error

type S2CKickNotify

type S2CKickNotify struct {
	Reason               KickReason `protobuf:"varint,2,opt,name=reason,proto3,enum=proto.common.KickReason" json:"reason,omitempty"`
	Msg                  string     `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*S2CKickNotify) Descriptor

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

func (*S2CKickNotify) GetMsg

func (m *S2CKickNotify) GetMsg() string

func (*S2CKickNotify) GetReason

func (m *S2CKickNotify) GetReason() KickReason

func (*S2CKickNotify) Marshal

func (m *S2CKickNotify) Marshal() (dAtA []byte, err error)

func (*S2CKickNotify) MarshalTo

func (m *S2CKickNotify) MarshalTo(dAtA []byte) (int, error)

func (*S2CKickNotify) ProtoMessage

func (*S2CKickNotify) ProtoMessage()

func (*S2CKickNotify) Reset

func (m *S2CKickNotify) Reset()

func (*S2CKickNotify) Size

func (m *S2CKickNotify) Size() (n int)

func (*S2CKickNotify) String

func (m *S2CKickNotify) String() string

func (*S2CKickNotify) Unmarshal

func (m *S2CKickNotify) Unmarshal(dAtA []byte) error

func (*S2CKickNotify) XXX_DiscardUnknown

func (m *S2CKickNotify) XXX_DiscardUnknown()

func (*S2CKickNotify) XXX_Marshal

func (m *S2CKickNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*S2CKickNotify) XXX_Merge

func (dst *S2CKickNotify) XXX_Merge(src proto.Message)

func (*S2CKickNotify) XXX_Size

func (m *S2CKickNotify) XXX_Size() int

func (*S2CKickNotify) XXX_Unmarshal

func (m *S2CKickNotify) XXX_Unmarshal(b []byte) error

type S2CPlayerJoinNty

type S2CPlayerJoinNty struct {
	Uid                  uint64   `protobuf:"fixed64,1,opt,name=uid,proto3" json:"uid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*S2CPlayerJoinNty) Descriptor

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

func (*S2CPlayerJoinNty) GetUid

func (m *S2CPlayerJoinNty) GetUid() uint64

func (*S2CPlayerJoinNty) Marshal

func (m *S2CPlayerJoinNty) Marshal() (dAtA []byte, err error)

func (*S2CPlayerJoinNty) MarshalTo

func (m *S2CPlayerJoinNty) MarshalTo(dAtA []byte) (int, error)

func (*S2CPlayerJoinNty) ProtoMessage

func (*S2CPlayerJoinNty) ProtoMessage()

func (*S2CPlayerJoinNty) Reset

func (m *S2CPlayerJoinNty) Reset()

func (*S2CPlayerJoinNty) Size

func (m *S2CPlayerJoinNty) Size() (n int)

func (*S2CPlayerJoinNty) String

func (m *S2CPlayerJoinNty) String() string

func (*S2CPlayerJoinNty) Unmarshal

func (m *S2CPlayerJoinNty) Unmarshal(dAtA []byte) error

func (*S2CPlayerJoinNty) XXX_DiscardUnknown

func (m *S2CPlayerJoinNty) XXX_DiscardUnknown()

func (*S2CPlayerJoinNty) XXX_Marshal

func (m *S2CPlayerJoinNty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*S2CPlayerJoinNty) XXX_Merge

func (dst *S2CPlayerJoinNty) XXX_Merge(src proto.Message)

func (*S2CPlayerJoinNty) XXX_Size

func (m *S2CPlayerJoinNty) XXX_Size() int

func (*S2CPlayerJoinNty) XXX_Unmarshal

func (m *S2CPlayerJoinNty) XXX_Unmarshal(b []byte) error

type S2CPlayerLeftNty

type S2CPlayerLeftNty struct {
	Uid                  uint64   `protobuf:"fixed64,1,opt,name=uid,proto3" json:"uid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*S2CPlayerLeftNty) Descriptor

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

func (*S2CPlayerLeftNty) GetUid

func (m *S2CPlayerLeftNty) GetUid() uint64

func (*S2CPlayerLeftNty) Marshal

func (m *S2CPlayerLeftNty) Marshal() (dAtA []byte, err error)

func (*S2CPlayerLeftNty) MarshalTo

func (m *S2CPlayerLeftNty) MarshalTo(dAtA []byte) (int, error)

func (*S2CPlayerLeftNty) ProtoMessage

func (*S2CPlayerLeftNty) ProtoMessage()

func (*S2CPlayerLeftNty) Reset

func (m *S2CPlayerLeftNty) Reset()

func (*S2CPlayerLeftNty) Size

func (m *S2CPlayerLeftNty) Size() (n int)

func (*S2CPlayerLeftNty) String

func (m *S2CPlayerLeftNty) String() string

func (*S2CPlayerLeftNty) Unmarshal

func (m *S2CPlayerLeftNty) Unmarshal(dAtA []byte) error

func (*S2CPlayerLeftNty) XXX_DiscardUnknown

func (m *S2CPlayerLeftNty) XXX_DiscardUnknown()

func (*S2CPlayerLeftNty) XXX_Marshal

func (m *S2CPlayerLeftNty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*S2CPlayerLeftNty) XXX_Merge

func (dst *S2CPlayerLeftNty) XXX_Merge(src proto.Message)

func (*S2CPlayerLeftNty) XXX_Size

func (m *S2CPlayerLeftNty) XXX_Size() int

func (*S2CPlayerLeftNty) XXX_Unmarshal

func (m *S2CPlayerLeftNty) XXX_Unmarshal(b []byte) error

type SingleEvent

type SingleEvent struct {
	Uid                  uint64   `protobuf:"fixed64,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Event                int32    `protobuf:"varint,2,opt,name=event,proto3" json:"event,omitempty"`
	Card                 []byte   `protobuf:"bytes,3,opt,name=card,proto3" json:"card,omitempty"`
	Clockwise            bool     `protobuf:"varint,4,opt,name=clockwise,proto3" json:"clockwise,omitempty"`
	Color                int32    `protobuf:"varint,5,opt,name=color,proto3" json:"color,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SingleEvent) Descriptor

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

func (*SingleEvent) GetCard

func (m *SingleEvent) GetCard() []byte

func (*SingleEvent) GetClockwise

func (m *SingleEvent) GetClockwise() bool

func (*SingleEvent) GetColor

func (m *SingleEvent) GetColor() int32

func (*SingleEvent) GetEvent

func (m *SingleEvent) GetEvent() int32

func (*SingleEvent) GetUid

func (m *SingleEvent) GetUid() uint64

func (*SingleEvent) Marshal

func (m *SingleEvent) Marshal() (dAtA []byte, err error)

func (*SingleEvent) MarshalTo

func (m *SingleEvent) MarshalTo(dAtA []byte) (int, error)

func (*SingleEvent) ProtoMessage

func (*SingleEvent) ProtoMessage()

func (*SingleEvent) Reset

func (m *SingleEvent) Reset()

func (*SingleEvent) Size

func (m *SingleEvent) Size() (n int)

func (*SingleEvent) String

func (m *SingleEvent) String() string

func (*SingleEvent) Unmarshal

func (m *SingleEvent) Unmarshal(dAtA []byte) error

func (*SingleEvent) XXX_DiscardUnknown

func (m *SingleEvent) XXX_DiscardUnknown()

func (*SingleEvent) XXX_Marshal

func (m *SingleEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleEvent) XXX_Merge

func (dst *SingleEvent) XXX_Merge(src proto.Message)

func (*SingleEvent) XXX_Size

func (m *SingleEvent) XXX_Size() int

func (*SingleEvent) XXX_Unmarshal

func (m *SingleEvent) XXX_Unmarshal(b []byte) error

type StatusCode

type StatusCode int32

Status Code similar to http status code

const (
	StatusCode_STATUS_OK             StatusCode = 0
	StatusCode_STATUS_INVALID        StatusCode = 4000
	StatusCode_STATUS_UNAUTH         StatusCode = 4001
	StatusCode_STATUS_UNKNOWN_CMD    StatusCode = 4004
	StatusCode_STATUS_TIMEOUT        StatusCode = 4008
	StatusCode_STATUS_TOO_MANY_REQ   StatusCode = 4029
	StatusCode_STATUS_INTERNAL_ERROR StatusCode = 5000
	StatusCode_STATUS_UNAVAILABLE    StatusCode = 5003
)

func (StatusCode) EnumDescriptor

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

func (StatusCode) String

func (x StatusCode) String() string

type TableState

type TableState struct {
	Tid                  uint64       `protobuf:"fixed64,1,opt,name=tid,proto3" json:"tid,omitempty"`
	Status               TableStatus  `protobuf:"varint,2,opt,name=status,proto3,enum=proto.game.TableStatus" json:"status,omitempty"`
	Timeout              int32        `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	TimeLeft             int32        `protobuf:"varint,4,opt,name=time_left,json=timeLeft,proto3" json:"time_left,omitempty"`
	Clockwise            bool         `protobuf:"varint,5,opt,name=clockwise,proto3" json:"clockwise,omitempty"`
	Color                int32        `protobuf:"varint,6,opt,name=color,proto3" json:"color,omitempty"`
	ChallengeColor       int32        `protobuf:"varint,7,opt,name=challenge_color,json=challengeColor,proto3" json:"challenge_color,omitempty"`
	LastPlayer           uint64       `protobuf:"fixed64,8,opt,name=last_player,json=lastPlayer,proto3" json:"last_player,omitempty"`
	CurrentPlayer        uint64       `protobuf:"fixed64,9,opt,name=current_player,json=currentPlayer,proto3" json:"current_player,omitempty"`
	CardsLeft            int32        `protobuf:"varint,10,opt,name=cards_left,json=cardsLeft,proto3" json:"cards_left,omitempty"`
	DiscardPile          []byte       `protobuf:"bytes,11,opt,name=discard_pile,json=discardPile,proto3" json:"discard_pile,omitempty"`
	Players              []*UnoPlayer `protobuf:"bytes,12,rep,name=players" json:"players,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*TableState) Descriptor

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

func (*TableState) GetCardsLeft

func (m *TableState) GetCardsLeft() int32

func (*TableState) GetChallengeColor

func (m *TableState) GetChallengeColor() int32

func (*TableState) GetClockwise

func (m *TableState) GetClockwise() bool

func (*TableState) GetColor

func (m *TableState) GetColor() int32

func (*TableState) GetCurrentPlayer

func (m *TableState) GetCurrentPlayer() uint64

func (*TableState) GetDiscardPile

func (m *TableState) GetDiscardPile() []byte

func (*TableState) GetLastPlayer

func (m *TableState) GetLastPlayer() uint64

func (*TableState) GetPlayers

func (m *TableState) GetPlayers() []*UnoPlayer

func (*TableState) GetStatus

func (m *TableState) GetStatus() TableStatus

func (*TableState) GetTid

func (m *TableState) GetTid() uint64

func (*TableState) GetTimeLeft

func (m *TableState) GetTimeLeft() int32

func (*TableState) GetTimeout

func (m *TableState) GetTimeout() int32

func (*TableState) Marshal

func (m *TableState) Marshal() (dAtA []byte, err error)

func (*TableState) MarshalTo

func (m *TableState) MarshalTo(dAtA []byte) (int, error)

func (*TableState) ProtoMessage

func (*TableState) ProtoMessage()

func (*TableState) Reset

func (m *TableState) Reset()

func (*TableState) Size

func (m *TableState) Size() (n int)

func (*TableState) String

func (m *TableState) String() string

func (*TableState) Unmarshal

func (m *TableState) Unmarshal(dAtA []byte) error

func (*TableState) XXX_DiscardUnknown

func (m *TableState) XXX_DiscardUnknown()

func (*TableState) XXX_Marshal

func (m *TableState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TableState) XXX_Merge

func (dst *TableState) XXX_Merge(src proto.Message)

func (*TableState) XXX_Size

func (m *TableState) XXX_Size() int

func (*TableState) XXX_Unmarshal

func (m *TableState) XXX_Unmarshal(b []byte) error

type TableStatus

type TableStatus int32
const (
	TableStatus_STATUS_IDLE      TableStatus = 0
	TableStatus_STATUS_WAIT      TableStatus = 1
	TableStatus_STATUS_PLAYING   TableStatus = 2
	TableStatus_STATUS_GAME_OVER TableStatus = 3
)

func (TableStatus) EnumDescriptor

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

func (TableStatus) String

func (x TableStatus) String() string

type UnoPlayer

type UnoPlayer struct {
	Uid                  uint64   `protobuf:"fixed64,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Status               int32    `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	Cards                []byte   `protobuf:"bytes,4,opt,name=cards,proto3" json:"cards,omitempty"`
	Score                int32    `protobuf:"varint,5,opt,name=score,proto3" json:"score,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UnoPlayer) Descriptor

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

func (*UnoPlayer) GetCards

func (m *UnoPlayer) GetCards() []byte

func (*UnoPlayer) GetScore

func (m *UnoPlayer) GetScore() int32

func (*UnoPlayer) GetStatus

func (m *UnoPlayer) GetStatus() int32

func (*UnoPlayer) GetUid

func (m *UnoPlayer) GetUid() uint64

func (*UnoPlayer) Marshal

func (m *UnoPlayer) Marshal() (dAtA []byte, err error)

func (*UnoPlayer) MarshalTo

func (m *UnoPlayer) MarshalTo(dAtA []byte) (int, error)

func (*UnoPlayer) ProtoMessage

func (*UnoPlayer) ProtoMessage()

func (*UnoPlayer) Reset

func (m *UnoPlayer) Reset()

func (*UnoPlayer) Size

func (m *UnoPlayer) Size() (n int)

func (*UnoPlayer) String

func (m *UnoPlayer) String() string

func (*UnoPlayer) Unmarshal

func (m *UnoPlayer) Unmarshal(dAtA []byte) error

func (*UnoPlayer) XXX_DiscardUnknown

func (m *UnoPlayer) XXX_DiscardUnknown()

func (*UnoPlayer) XXX_Marshal

func (m *UnoPlayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnoPlayer) XXX_Merge

func (dst *UnoPlayer) XXX_Merge(src proto.Message)

func (*UnoPlayer) XXX_Size

func (m *UnoPlayer) XXX_Size() int

func (*UnoPlayer) XXX_Unmarshal

func (m *UnoPlayer) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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