resources

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GameState_name = map[int32]string{
		0: "GAME_STATE_UNKNOWN",
		1: "GAME_STATE_WAIT",
		2: "GAME_STATE_PLAY",
		3: "GAME_STATE_EXIT",
		4: "GAME_STATE_FINISH",
		5: "GAME_STATE_RESULT",
	}
	GameState_value = map[string]int32{
		"GAME_STATE_UNKNOWN": 0,
		"GAME_STATE_WAIT":    1,
		"GAME_STATE_PLAY":    2,
		"GAME_STATE_EXIT":    3,
		"GAME_STATE_FINISH":  4,
		"GAME_STATE_RESULT":  5,
	}
)

Enum value maps for GameState.

View Source
var (
	HandState_name = map[int32]string{
		0: "HAND_STATE_UNKNOWN",
		1: "HAND_STATE_HOLDING",
		2: "HAND_STATE_OPENING",
	}
	HandState_value = map[string]int32{
		"HAND_STATE_UNKNOWN": 0,
		"HAND_STATE_HOLDING": 1,
		"HAND_STATE_OPENING": 2,
	}
)

Enum value maps for HandState.

View Source
var (
	ObjectState_name = map[int32]string{
		0: "OBJECT_STATE_UNKNOWN",
		1: "OBJECT_STATE_STAYING",
		2: "OBJECT_STATE_MOVING",
		3: "OBJECT_STATE_FORCING",
	}
	ObjectState_value = map[string]int32{
		"OBJECT_STATE_UNKNOWN": 0,
		"OBJECT_STATE_STAYING": 1,
		"OBJECT_STATE_MOVING":  2,
		"OBJECT_STATE_FORCING": 3,
	}
)

Enum value maps for ObjectState.

View Source
var (
	ObjectKind_name = map[int32]string{
		0: "OBJECT_KIND_UNKNOWN",
		1: "OBJECT_KIND_RECTANGULAR",
	}
	ObjectKind_value = map[string]int32{
		"OBJECT_KIND_UNKNOWN":     0,
		"OBJECT_KIND_RECTANGULAR": 1,
	}
)

Enum value maps for ObjectKind.

View Source
var File_game_resources_game_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GameState

type GameState int32
const (
	GameState_GAME_STATE_UNKNOWN GameState = 0
	GameState_GAME_STATE_WAIT    GameState = 1
	GameState_GAME_STATE_PLAY    GameState = 2
	GameState_GAME_STATE_EXIT    GameState = 3
	GameState_GAME_STATE_FINISH  GameState = 4
	GameState_GAME_STATE_RESULT  GameState = 5
)

func (GameState) Descriptor

func (GameState) Descriptor() protoreflect.EnumDescriptor

func (GameState) Enum

func (x GameState) Enum() *GameState

func (GameState) EnumDescriptor deprecated

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

Deprecated: Use GameState.Descriptor instead.

func (GameState) Number

func (x GameState) Number() protoreflect.EnumNumber

func (GameState) String

func (x GameState) String() string

func (GameState) Type

type Hand

type Hand struct {
	UserId         string    `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	State          HandState `protobuf:"varint,2,opt,name=state,proto3,enum=game.resources.HandState" json:"state,omitempty"`
	CenterPosition *Vector3  `protobuf:"bytes,3,opt,name=center_position,json=centerPosition,proto3" json:"center_position,omitempty"`
	ActionPosition *Vector3  `protobuf:"bytes,4,opt,name=action_position,json=actionPosition,proto3" json:"action_position,omitempty"`
	// contains filtered or unexported fields
}

func (*Hand) Descriptor deprecated

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

Deprecated: Use Hand.ProtoReflect.Descriptor instead.

func (*Hand) GetActionPosition

func (x *Hand) GetActionPosition() *Vector3

func (*Hand) GetCenterPosition

func (x *Hand) GetCenterPosition() *Vector3

func (*Hand) GetState

func (x *Hand) GetState() HandState

func (*Hand) GetUserId

func (x *Hand) GetUserId() string

func (*Hand) ProtoMessage

func (*Hand) ProtoMessage()

func (*Hand) ProtoReflect

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

func (*Hand) Reset

func (x *Hand) Reset()

func (*Hand) String

func (x *Hand) String() string

type HandState

type HandState int32
const (
	HandState_HAND_STATE_UNKNOWN HandState = 0
	HandState_HAND_STATE_HOLDING HandState = 1
	HandState_HAND_STATE_OPENING HandState = 2
)

func (HandState) Descriptor

func (HandState) Descriptor() protoreflect.EnumDescriptor

func (HandState) Enum

func (x HandState) Enum() *HandState

func (HandState) EnumDescriptor deprecated

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

Deprecated: Use HandState.Descriptor instead.

func (HandState) Number

func (x HandState) Number() protoreflect.EnumNumber

func (HandState) String

func (x HandState) String() string

func (HandState) Type

type Object

type Object struct {
	ObjectId string      `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	Layer    int32       `protobuf:"varint,2,opt,name=layer,proto3" json:"layer,omitempty"`
	Kinds    ObjectKind  `protobuf:"varint,3,opt,name=kinds,proto3,enum=game.resources.ObjectKind" json:"kinds,omitempty"`
	State    ObjectState `protobuf:"varint,4,opt,name=state,proto3,enum=game.resources.ObjectState" json:"state,omitempty"`
	Position *Vector3    `protobuf:"bytes,5,opt,name=position,proto3" json:"position,omitempty"`
	Size     *Vector3    `protobuf:"bytes,6,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*Object) Descriptor deprecated

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

Deprecated: Use Object.ProtoReflect.Descriptor instead.

func (*Object) GetKinds

func (x *Object) GetKinds() ObjectKind

func (*Object) GetLayer

func (x *Object) GetLayer() int32

func (*Object) GetObjectId

func (x *Object) GetObjectId() string

func (*Object) GetPosition

func (x *Object) GetPosition() *Vector3

func (*Object) GetSize

func (x *Object) GetSize() *Vector3

func (*Object) GetState

func (x *Object) GetState() ObjectState

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) ProtoReflect

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

func (*Object) Reset

func (x *Object) Reset()

func (*Object) String

func (x *Object) String() string

type ObjectKind

type ObjectKind int32
const (
	ObjectKind_OBJECT_KIND_UNKNOWN     ObjectKind = 0
	ObjectKind_OBJECT_KIND_RECTANGULAR ObjectKind = 1
)

func (ObjectKind) Descriptor

func (ObjectKind) Descriptor() protoreflect.EnumDescriptor

func (ObjectKind) Enum

func (x ObjectKind) Enum() *ObjectKind

func (ObjectKind) EnumDescriptor deprecated

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

Deprecated: Use ObjectKind.Descriptor instead.

func (ObjectKind) Number

func (x ObjectKind) Number() protoreflect.EnumNumber

func (ObjectKind) String

func (x ObjectKind) String() string

func (ObjectKind) Type

type ObjectState

type ObjectState int32
const (
	ObjectState_OBJECT_STATE_UNKNOWN ObjectState = 0
	ObjectState_OBJECT_STATE_STAYING ObjectState = 1
	ObjectState_OBJECT_STATE_MOVING  ObjectState = 2
	ObjectState_OBJECT_STATE_FORCING ObjectState = 3
)

func (ObjectState) Descriptor

func (ObjectState) Enum

func (x ObjectState) Enum() *ObjectState

func (ObjectState) EnumDescriptor deprecated

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

Deprecated: Use ObjectState.Descriptor instead.

func (ObjectState) Number

func (x ObjectState) Number() protoreflect.EnumNumber

func (ObjectState) String

func (x ObjectState) String() string

func (ObjectState) Type

type Player

type Player struct {
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Color    string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

func (*Player) Descriptor deprecated

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

Deprecated: Use Player.ProtoReflect.Descriptor instead.

func (*Player) GetColor

func (x *Player) GetColor() string

func (*Player) GetName

func (x *Player) GetName() string

func (*Player) GetPlayerId

func (x *Player) GetPlayerId() string

func (*Player) ProtoMessage

func (*Player) ProtoMessage()

func (*Player) ProtoReflect

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

func (*Player) Reset

func (x *Player) Reset()

func (*Player) String

func (x *Player) String() string

type Stat

type Stat struct {
	PlayerId              string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	Score                 int32  `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"`
	Rank                  int32  `protobuf:"varint,3,opt,name=rank,proto3" json:"rank,omitempty"`
	RankScore             int32  `protobuf:"varint,4,opt,name=rank_score,json=rankScore,proto3" json:"rank_score,omitempty"`
	RankScoreDiff         int32  `protobuf:"varint,5,opt,name=rank_score_diff,json=rankScoreDiff,proto3" json:"rank_score_diff,omitempty"`
	RankScoreDiffRate     int32  `protobuf:"varint,6,opt,name=rank_score_diff_rate,json=rankScoreDiffRate,proto3" json:"rank_score_diff_rate,omitempty"`
	RankScoreDiffRateRank int32  `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Stat) Descriptor deprecated

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

Deprecated: Use Stat.ProtoReflect.Descriptor instead.

func (*Stat) GetPlayerId added in v0.1.4

func (x *Stat) GetPlayerId() string

func (*Stat) GetRank added in v0.1.4

func (x *Stat) GetRank() int32

func (*Stat) GetRankScore added in v0.1.4

func (x *Stat) GetRankScore() int32

func (*Stat) GetRankScoreDiff added in v0.1.4

func (x *Stat) GetRankScoreDiff() int32

func (*Stat) GetRankScoreDiffRate added in v0.1.4

func (x *Stat) GetRankScoreDiffRate() int32

func (*Stat) GetRankScoreDiffRateRank added in v0.1.4

func (x *Stat) GetRankScoreDiffRateRank() int32

func (*Stat) GetScore added in v0.1.4

func (x *Stat) GetScore() int32

func (*Stat) ProtoMessage

func (*Stat) ProtoMessage()

func (*Stat) ProtoReflect

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

func (*Stat) Reset

func (x *Stat) Reset()

func (*Stat) String

func (x *Stat) String() string

type Vector3

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

func (*Vector3) Descriptor deprecated

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

Deprecated: Use Vector3.ProtoReflect.Descriptor instead.

func (*Vector3) GetX

func (x *Vector3) GetX() float64

func (*Vector3) GetY

func (x *Vector3) GetY() float64

func (*Vector3) GetZ

func (x *Vector3) GetZ() float64

func (*Vector3) ProtoMessage

func (*Vector3) ProtoMessage()

func (*Vector3) ProtoReflect

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

func (*Vector3) Reset

func (x *Vector3) Reset()

func (*Vector3) String

func (x *Vector3) String() string

Jump to

Keyboard shortcuts

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