Documentation ¶
Index ¶
- Variables
- type GameState
- type Hand
- func (*Hand) Descriptor() ([]byte, []int)deprecated
- func (x *Hand) GetActionPosition() *Vector3
- func (x *Hand) GetCenterPosition() *Vector3
- func (x *Hand) GetState() HandState
- func (x *Hand) GetUserId() string
- func (*Hand) ProtoMessage()
- func (x *Hand) ProtoReflect() protoreflect.Message
- func (x *Hand) Reset()
- func (x *Hand) String() string
- type HandState
- type Object
- func (*Object) Descriptor() ([]byte, []int)deprecated
- func (x *Object) GetKinds() ObjectKind
- func (x *Object) GetLayer() int32
- func (x *Object) GetObjectId() string
- func (x *Object) GetPosition() *Vector3
- func (x *Object) GetSize() *Vector3
- func (x *Object) GetState() ObjectState
- func (*Object) ProtoMessage()
- func (x *Object) ProtoReflect() protoreflect.Message
- func (x *Object) Reset()
- func (x *Object) String() string
- type ObjectKind
- type ObjectState
- func (ObjectState) Descriptor() protoreflect.EnumDescriptor
- func (x ObjectState) Enum() *ObjectState
- func (ObjectState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ObjectState) Number() protoreflect.EnumNumber
- func (x ObjectState) String() string
- func (ObjectState) Type() protoreflect.EnumType
- type Player
- func (*Player) Descriptor() ([]byte, []int)deprecated
- func (x *Player) GetColor() string
- func (x *Player) GetName() string
- func (x *Player) GetPlayerId() string
- func (*Player) ProtoMessage()
- func (x *Player) ProtoReflect() protoreflect.Message
- func (x *Player) Reset()
- func (x *Player) String() string
- type Stat
- func (*Stat) Descriptor() ([]byte, []int)deprecated
- func (x *Stat) GetPlayerId() string
- func (x *Stat) GetRank() int32
- func (x *Stat) GetRankScore() int32
- func (x *Stat) GetRankScoreDiff() int32
- func (x *Stat) GetRankScoreDiffRate() int32
- func (x *Stat) GetRankScoreDiffRateRank() int32
- func (x *Stat) GetScore() int32
- func (*Stat) ProtoMessage()
- func (x *Stat) ProtoReflect() protoreflect.Message
- func (x *Stat) Reset()
- func (x *Stat) String() string
- type Vector3
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
func (GameState) Descriptor ¶
func (GameState) Descriptor() protoreflect.EnumDescriptor
func (GameState) EnumDescriptor
deprecated
func (GameState) Number ¶
func (x GameState) Number() protoreflect.EnumNumber
func (GameState) Type ¶
func (GameState) Type() protoreflect.EnumType
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) GetActionPosition ¶
func (*Hand) GetCenterPosition ¶
func (*Hand) ProtoMessage ¶
func (*Hand) ProtoMessage()
func (*Hand) ProtoReflect ¶
func (x *Hand) ProtoReflect() protoreflect.Message
type HandState ¶
type HandState int32
func (HandState) Descriptor ¶
func (HandState) Descriptor() protoreflect.EnumDescriptor
func (HandState) EnumDescriptor
deprecated
func (HandState) Number ¶
func (x HandState) Number() protoreflect.EnumNumber
func (HandState) Type ¶
func (HandState) Type() protoreflect.EnumType
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) GetKinds ¶
func (x *Object) GetKinds() ObjectKind
func (*Object) GetObjectId ¶
func (*Object) GetPosition ¶
func (*Object) GetState ¶
func (x *Object) GetState() ObjectState
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
func (*Object) ProtoReflect ¶
func (x *Object) ProtoReflect() protoreflect.Message
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 ¶
func (ObjectKind) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (ObjectState) Type() protoreflect.EnumType
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) GetPlayerId ¶
func (*Player) ProtoMessage ¶
func (*Player) ProtoMessage()
func (*Player) ProtoReflect ¶
func (x *Player) ProtoReflect() protoreflect.Message
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) GetPlayerId ¶ added in v0.1.4
func (*Stat) GetRankScore ¶ added in v0.1.4
func (*Stat) GetRankScoreDiff ¶ added in v0.1.4
func (*Stat) GetRankScoreDiffRate ¶ added in v0.1.4
func (*Stat) GetRankScoreDiffRateRank ¶ added in v0.1.4
func (*Stat) ProtoMessage ¶
func (*Stat) ProtoMessage()
func (*Stat) ProtoReflect ¶
func (x *Stat) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Vector3) ProtoMessage()
func (*Vector3) ProtoReflect ¶
func (x *Vector3) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.