Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
superstellar.proto
It has these top-level messages:
Message Point Vector Spaceship Asteroid ProjectileFired ProjectileHit PlayerLeft PlayerJoined PlayerDied Ping Pong Space Hello Constants JoinGame JoinGameAck UserAction TargetAngle UserMessage Rank Leaderboard ScoreBoardItem ScoreBoard
Index ¶
- Variables
- type Asteroid
- type Constants
- type Direction
- type Hello
- type JoinGame
- type JoinGameAck
- type Leaderboard
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetConstants() *Constants
- func (m *Message) GetContent() isMessage_Content
- func (m *Message) GetHello() *Hello
- func (m *Message) GetJoinGameAck() *JoinGameAck
- func (m *Message) GetLeaderboard() *Leaderboard
- func (m *Message) GetPlayerDied() *PlayerDied
- func (m *Message) GetPlayerJoined() *PlayerJoined
- func (m *Message) GetPlayerLeft() *PlayerLeft
- func (m *Message) GetPong() *Pong
- func (m *Message) GetProjectileFired() *ProjectileFired
- func (m *Message) GetProjectileHit() *ProjectileHit
- func (m *Message) GetScoreBoard() *ScoreBoard
- func (m *Message) GetSpace() *Space
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Message_Constants
- type Message_Hello
- type Message_JoinGameAck
- type Message_Leaderboard
- type Message_PlayerDied
- type Message_PlayerJoined
- type Message_PlayerLeft
- type Message_Pong
- type Message_ProjectileFired
- type Message_ProjectileHit
- type Message_ScoreBoard
- type Message_Space
- type Ping
- type PlayerDied
- type PlayerJoined
- type PlayerLeft
- type Point
- type Pong
- type ProjectileFired
- type ProjectileHit
- type Rank
- type ScoreBoard
- type ScoreBoardItem
- type Space
- type Spaceship
- type TargetAngle
- type UserAction
- type UserInput
- type UserMessage
- func (*UserMessage) Descriptor() ([]byte, []int)
- func (m *UserMessage) GetContent() isUserMessage_Content
- func (m *UserMessage) GetJoinGame() *JoinGame
- func (m *UserMessage) GetPing() *Ping
- func (m *UserMessage) GetTargetAngle() *TargetAngle
- func (m *UserMessage) GetUserAction() *UserAction
- func (*UserMessage) ProtoMessage()
- func (m *UserMessage) Reset()
- func (m *UserMessage) String() string
- func (*UserMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type UserMessage_JoinGame
- type UserMessage_Ping
- type UserMessage_TargetAngle
- type UserMessage_UserAction
- type Vector
Constants ¶
This section is empty.
Variables ¶
View Source
var Direction_name = map[int32]string{
0: "DIR_CENTER",
1: "DIR_RIGHT",
2: "DIR_LEFT",
}
View Source
var Direction_value = map[string]int32{
"DIR_CENTER": 0,
"DIR_RIGHT": 1,
"DIR_LEFT": 2,
}
View Source
var UserInput_name = map[int32]string{
0: "CENTER",
1: "LEFT",
2: "RIGHT",
3: "THRUST_ON",
4: "THRUST_OFF",
5: "STRAIGHT_FIRE_START",
6: "TURRET_FIRE_START",
7: "FIRE_STOP",
8: "BOOST_ON",
9: "BOOST_OFF",
}
View Source
var UserInput_value = map[string]int32{
"CENTER": 0,
"LEFT": 1,
"RIGHT": 2,
"THRUST_ON": 3,
"THRUST_OFF": 4,
"STRAIGHT_FIRE_START": 5,
"TURRET_FIRE_START": 6,
"FIRE_STOP": 7,
"BOOST_ON": 8,
"BOOST_OFF": 9,
}
Functions ¶
This section is empty.
Types ¶
type Asteroid ¶
type Asteroid struct { Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Position *Point `protobuf:"bytes,2,opt,name=position" json:"position,omitempty"` Velocity *Vector `protobuf:"bytes,3,opt,name=velocity" json:"velocity,omitempty"` Facing float64 `protobuf:"fixed64,4,opt,name=facing" json:"facing,omitempty"` AngularVelocity float64 `protobuf:"fixed64,5,opt,name=angularVelocity" json:"angularVelocity,omitempty"` }
func (*Asteroid) Descriptor ¶
func (*Asteroid) GetPosition ¶
func (*Asteroid) GetVelocity ¶
func (*Asteroid) ProtoMessage ¶
func (*Asteroid) ProtoMessage()
type Constants ¶
type Constants struct { WorldRadius float32 `protobuf:"fixed32,1,opt,name=worldRadius" json:"worldRadius,omitempty"` BoundaryAnnulusWidth float32 `protobuf:"fixed32,2,opt,name=boundaryAnnulusWidth" json:"boundaryAnnulusWidth,omitempty"` SpaceshipAcceleration float32 `protobuf:"fixed32,3,opt,name=spaceshipAcceleration" json:"spaceshipAcceleration,omitempty"` FrictionCoefficient float32 `protobuf:"fixed32,4,opt,name=frictionCoefficient" json:"frictionCoefficient,omitempty"` SpaceshipNonlinearAngularAcceleration float32 `protobuf:"fixed32,5,opt,name=spaceshipNonlinearAngularAcceleration" json:"spaceshipNonlinearAngularAcceleration,omitempty"` SpaceshipLinearAngularAcceleration float32 `protobuf:"fixed32,6,opt,name=spaceshipLinearAngularAcceleration" json:"spaceshipLinearAngularAcceleration,omitempty"` SpaceshipMaxAngularVelocity float32 `protobuf:"fixed32,7,opt,name=spaceshipMaxAngularVelocity" json:"spaceshipMaxAngularVelocity,omitempty"` SpaceshipAngularFriction float32 `protobuf:"fixed32,8,opt,name=spaceshipAngularFriction" json:"spaceshipAngularFriction,omitempty"` SpaceshipMaxSpeed uint32 `protobuf:"varint,9,opt,name=spaceshipMaxSpeed" json:"spaceshipMaxSpeed,omitempty"` SpaceshipBoostFactor float32 `protobuf:"fixed32,10,opt,name=spaceshipBoostFactor" json:"spaceshipBoostFactor,omitempty"` AutoRepairInterval uint32 `protobuf:"varint,11,opt,name=autoRepairInterval" json:"autoRepairInterval,omitempty"` AutoRepairAmount uint32 `protobuf:"varint,12,opt,name=autoRepairAmount" json:"autoRepairAmount,omitempty"` AutoEnergyRechargeAmount uint32 `protobuf:"varint,13,opt,name=autoEnergyRechargeAmount" json:"autoEnergyRechargeAmount,omitempty"` BoostPerFrameEnergyCost uint32 `protobuf:"varint,14,opt,name=boostPerFrameEnergyCost" json:"boostPerFrameEnergyCost,omitempty"` }
func (*Constants) Descriptor ¶
func (*Constants) ProtoMessage ¶
func (*Constants) ProtoMessage()
type Hello ¶
type Hello struct { MyId uint32 `protobuf:"varint,1,opt,name=myId" json:"myId,omitempty"` IdToUsername map[uint32]string `` /* 145-byte string literal not displayed */ }
func (*Hello) Descriptor ¶
func (*Hello) GetIdToUsername ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
type JoinGame ¶
type JoinGame struct {
Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
}
func (*JoinGame) Descriptor ¶
func (*JoinGame) ProtoMessage ¶
func (*JoinGame) ProtoMessage()
type JoinGameAck ¶
type JoinGameAck struct { Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"` Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` }
func (*JoinGameAck) Descriptor ¶
func (*JoinGameAck) Descriptor() ([]byte, []int)
func (*JoinGameAck) ProtoMessage ¶
func (*JoinGameAck) ProtoMessage()
func (*JoinGameAck) Reset ¶
func (m *JoinGameAck) Reset()
func (*JoinGameAck) String ¶
func (m *JoinGameAck) String() string
type Leaderboard ¶
type Leaderboard struct { Ranks []*Rank `protobuf:"bytes,1,rep,name=ranks" json:"ranks,omitempty"` ClientId uint32 `protobuf:"varint,2,opt,name=clientId" json:"clientId,omitempty"` UserScore uint32 `protobuf:"varint,3,opt,name=userScore" json:"userScore,omitempty"` UserPosition uint32 `protobuf:"varint,4,opt,name=userPosition" json:"userPosition,omitempty"` }
func (*Leaderboard) Descriptor ¶
func (*Leaderboard) Descriptor() ([]byte, []int)
func (*Leaderboard) GetRanks ¶
func (m *Leaderboard) GetRanks() []*Rank
func (*Leaderboard) ProtoMessage ¶
func (*Leaderboard) ProtoMessage()
func (*Leaderboard) Reset ¶
func (m *Leaderboard) Reset()
func (*Leaderboard) String ¶
func (m *Leaderboard) String() string
type Message ¶
type Message struct { // Types that are valid to be assigned to Content: // *Message_Space // *Message_Hello // *Message_PlayerLeft // *Message_ProjectileFired // *Message_ProjectileHit // *Message_PlayerJoined // *Message_JoinGameAck // *Message_Leaderboard // *Message_PlayerDied // *Message_Pong // *Message_ScoreBoard // *Message_Constants Content isMessage_Content `protobuf_oneof:"content"` }
func (*Message) Descriptor ¶
func (*Message) GetConstants ¶
func (*Message) GetContent ¶
func (m *Message) GetContent() isMessage_Content
func (*Message) GetJoinGameAck ¶
func (m *Message) GetJoinGameAck() *JoinGameAck
func (*Message) GetLeaderboard ¶
func (m *Message) GetLeaderboard() *Leaderboard
func (*Message) GetPlayerDied ¶
func (m *Message) GetPlayerDied() *PlayerDied
func (*Message) GetPlayerJoined ¶
func (m *Message) GetPlayerJoined() *PlayerJoined
func (*Message) GetPlayerLeft ¶
func (m *Message) GetPlayerLeft() *PlayerLeft
func (*Message) GetProjectileFired ¶
func (m *Message) GetProjectileFired() *ProjectileFired
func (*Message) GetProjectileHit ¶
func (m *Message) GetProjectileHit() *ProjectileHit
func (*Message) GetScoreBoard ¶
func (m *Message) GetScoreBoard() *ScoreBoard
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type Message_Constants ¶
type Message_Constants struct {
Constants *Constants `protobuf:"bytes,12,opt,name=constants,oneof"`
}
type Message_Hello ¶
type Message_Hello struct {
Hello *Hello `protobuf:"bytes,2,opt,name=hello,oneof"`
}
type Message_JoinGameAck ¶
type Message_JoinGameAck struct {
JoinGameAck *JoinGameAck `protobuf:"bytes,7,opt,name=joinGameAck,oneof"`
}
type Message_Leaderboard ¶
type Message_Leaderboard struct {
Leaderboard *Leaderboard `protobuf:"bytes,8,opt,name=leaderboard,oneof"`
}
type Message_PlayerDied ¶
type Message_PlayerDied struct {
PlayerDied *PlayerDied `protobuf:"bytes,9,opt,name=playerDied,oneof"`
}
type Message_PlayerJoined ¶
type Message_PlayerJoined struct {
PlayerJoined *PlayerJoined `protobuf:"bytes,6,opt,name=playerJoined,oneof"`
}
type Message_PlayerLeft ¶
type Message_PlayerLeft struct {
PlayerLeft *PlayerLeft `protobuf:"bytes,3,opt,name=playerLeft,oneof"`
}
type Message_Pong ¶
type Message_Pong struct {
Pong *Pong `protobuf:"bytes,10,opt,name=pong,oneof"`
}
type Message_ProjectileFired ¶
type Message_ProjectileFired struct {
ProjectileFired *ProjectileFired `protobuf:"bytes,4,opt,name=projectileFired,oneof"`
}
type Message_ProjectileHit ¶
type Message_ProjectileHit struct {
ProjectileHit *ProjectileHit `protobuf:"bytes,5,opt,name=projectileHit,oneof"`
}
type Message_ScoreBoard ¶
type Message_ScoreBoard struct {
ScoreBoard *ScoreBoard `protobuf:"bytes,11,opt,name=scoreBoard,oneof"`
}
type Message_Space ¶
type Message_Space struct {
Space *Space `protobuf:"bytes,1,opt,name=space,oneof"`
}
type Ping ¶
type Ping struct {
Id uint32 `protobuf:"varint,1,opt,name=Id,json=id" json:"Id,omitempty"`
}
func (*Ping) Descriptor ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
type PlayerDied ¶
type PlayerDied struct { Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` KilledBy uint32 `protobuf:"varint,2,opt,name=killedBy" json:"killedBy,omitempty"` }
func (*PlayerDied) Descriptor ¶
func (*PlayerDied) Descriptor() ([]byte, []int)
func (*PlayerDied) ProtoMessage ¶
func (*PlayerDied) ProtoMessage()
func (*PlayerDied) Reset ¶
func (m *PlayerDied) Reset()
func (*PlayerDied) String ¶
func (m *PlayerDied) String() string
type PlayerJoined ¶
type PlayerJoined struct { Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` }
func (*PlayerJoined) Descriptor ¶
func (*PlayerJoined) Descriptor() ([]byte, []int)
func (*PlayerJoined) ProtoMessage ¶
func (*PlayerJoined) ProtoMessage()
func (*PlayerJoined) Reset ¶
func (m *PlayerJoined) Reset()
func (*PlayerJoined) String ¶
func (m *PlayerJoined) String() string
type PlayerLeft ¶
type PlayerLeft struct {
Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*PlayerLeft) Descriptor ¶
func (*PlayerLeft) Descriptor() ([]byte, []int)
func (*PlayerLeft) ProtoMessage ¶
func (*PlayerLeft) ProtoMessage()
func (*PlayerLeft) Reset ¶
func (m *PlayerLeft) Reset()
func (*PlayerLeft) String ¶
func (m *PlayerLeft) String() string
type Point ¶
type Point struct { X int32 `protobuf:"zigzag32,1,opt,name=x" json:"x,omitempty"` Y int32 `protobuf:"zigzag32,2,opt,name=y" json:"y,omitempty"` }
func (*Point) Descriptor ¶
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
type Pong ¶
type Pong struct {
Id uint32 `protobuf:"varint,1,opt,name=Id,json=id" json:"Id,omitempty"`
}
func (*Pong) Descriptor ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
type ProjectileFired ¶
type ProjectileFired struct { Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` FrameId uint32 `protobuf:"varint,2,opt,name=frameId" json:"frameId,omitempty"` Origin *Point `protobuf:"bytes,3,opt,name=origin" json:"origin,omitempty"` Velocity *Vector `protobuf:"bytes,4,opt,name=velocity" json:"velocity,omitempty"` Facing float32 `protobuf:"fixed32,5,opt,name=facing" json:"facing,omitempty"` Ttl uint32 `protobuf:"varint,6,opt,name=ttl" json:"ttl,omitempty"` }
func (*ProjectileFired) Descriptor ¶
func (*ProjectileFired) Descriptor() ([]byte, []int)
func (*ProjectileFired) GetOrigin ¶
func (m *ProjectileFired) GetOrigin() *Point
func (*ProjectileFired) GetVelocity ¶
func (m *ProjectileFired) GetVelocity() *Vector
func (*ProjectileFired) ProtoMessage ¶
func (*ProjectileFired) ProtoMessage()
func (*ProjectileFired) Reset ¶
func (m *ProjectileFired) Reset()
func (*ProjectileFired) String ¶
func (m *ProjectileFired) String() string
type ProjectileHit ¶
type ProjectileHit struct {
Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*ProjectileHit) Descriptor ¶
func (*ProjectileHit) Descriptor() ([]byte, []int)
func (*ProjectileHit) ProtoMessage ¶
func (*ProjectileHit) ProtoMessage()
func (*ProjectileHit) Reset ¶
func (m *ProjectileHit) Reset()
func (*ProjectileHit) String ¶
func (m *ProjectileHit) String() string
type Rank ¶
type Rank struct { Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Score uint32 `protobuf:"varint,2,opt,name=score" json:"score,omitempty"` }
func (*Rank) Descriptor ¶
func (*Rank) ProtoMessage ¶
func (*Rank) ProtoMessage()
type ScoreBoard ¶
type ScoreBoard struct {
Items []*ScoreBoardItem `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}
func (*ScoreBoard) Descriptor ¶
func (*ScoreBoard) Descriptor() ([]byte, []int)
func (*ScoreBoard) GetItems ¶
func (m *ScoreBoard) GetItems() []*ScoreBoardItem
func (*ScoreBoard) ProtoMessage ¶
func (*ScoreBoard) ProtoMessage()
func (*ScoreBoard) Reset ¶
func (m *ScoreBoard) Reset()
func (*ScoreBoard) String ¶
func (m *ScoreBoard) String() string
type ScoreBoardItem ¶
type ScoreBoardItem struct { Score uint32 `protobuf:"varint,1,opt,name=score" json:"score,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
func (*ScoreBoardItem) Descriptor ¶
func (*ScoreBoardItem) Descriptor() ([]byte, []int)
func (*ScoreBoardItem) ProtoMessage ¶
func (*ScoreBoardItem) ProtoMessage()
func (*ScoreBoardItem) Reset ¶
func (m *ScoreBoardItem) Reset()
func (*ScoreBoardItem) String ¶
func (m *ScoreBoardItem) String() string
type Space ¶
type Space struct { PhysicsFrameID uint32 `protobuf:"varint,1,opt,name=physicsFrameID" json:"physicsFrameID,omitempty"` Spaceships []*Spaceship `protobuf:"bytes,2,rep,name=spaceships" json:"spaceships,omitempty"` Asteroids []*Asteroid `protobuf:"bytes,3,rep,name=asteroids" json:"asteroids,omitempty"` }
func (*Space) Descriptor ¶
func (*Space) GetAsteroids ¶
func (*Space) GetSpaceships ¶
func (*Space) ProtoMessage ¶
func (*Space) ProtoMessage()
type Spaceship ¶
type Spaceship struct { Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Position *Point `protobuf:"bytes,2,opt,name=position" json:"position,omitempty"` Velocity *Vector `protobuf:"bytes,3,opt,name=velocity" json:"velocity,omitempty"` Facing float64 `protobuf:"fixed64,4,opt,name=facing" json:"facing,omitempty"` AngularVelocity float64 `protobuf:"fixed64,5,opt,name=angularVelocity" json:"angularVelocity,omitempty"` InputDirection Direction `protobuf:"varint,6,opt,name=inputDirection,enum=superstellar.Direction" json:"inputDirection,omitempty"` InputThrust bool `protobuf:"varint,7,opt,name=inputThrust" json:"inputThrust,omitempty"` InputBoost bool `protobuf:"varint,8,opt,name=inputBoost" json:"inputBoost,omitempty"` MaxHp uint32 `protobuf:"varint,9,opt,name=maxHp" json:"maxHp,omitempty"` Hp uint32 `protobuf:"varint,10,opt,name=hp" json:"hp,omitempty"` MaxEnergy uint32 `protobuf:"varint,11,opt,name=maxEnergy" json:"maxEnergy,omitempty"` Energy uint32 `protobuf:"varint,12,opt,name=energy" json:"energy,omitempty"` AutoRepairDelay uint32 `protobuf:"varint,13,opt,name=autoRepairDelay" json:"autoRepairDelay,omitempty"` }
func (*Spaceship) Descriptor ¶
func (*Spaceship) GetPosition ¶
func (*Spaceship) GetVelocity ¶
func (*Spaceship) ProtoMessage ¶
func (*Spaceship) ProtoMessage()
type TargetAngle ¶
type TargetAngle struct {
Angle float32 `protobuf:"fixed32,1,opt,name=angle" json:"angle,omitempty"`
}
func (*TargetAngle) Descriptor ¶
func (*TargetAngle) Descriptor() ([]byte, []int)
func (*TargetAngle) ProtoMessage ¶
func (*TargetAngle) ProtoMessage()
func (*TargetAngle) Reset ¶
func (m *TargetAngle) Reset()
func (*TargetAngle) String ¶
func (m *TargetAngle) String() string
type UserAction ¶
type UserAction struct {
UserInput UserInput `protobuf:"varint,1,opt,name=userInput,enum=superstellar.UserInput" json:"userInput,omitempty"`
}
func (*UserAction) Descriptor ¶
func (*UserAction) Descriptor() ([]byte, []int)
func (*UserAction) ProtoMessage ¶
func (*UserAction) ProtoMessage()
func (*UserAction) Reset ¶
func (m *UserAction) Reset()
func (*UserAction) String ¶
func (m *UserAction) String() string
type UserInput ¶
type UserInput int32
const ( UserInput_CENTER UserInput = 0 UserInput_LEFT UserInput = 1 UserInput_RIGHT UserInput = 2 UserInput_THRUST_ON UserInput = 3 UserInput_THRUST_OFF UserInput = 4 UserInput_STRAIGHT_FIRE_START UserInput = 5 UserInput_TURRET_FIRE_START UserInput = 6 UserInput_FIRE_STOP UserInput = 7 UserInput_BOOST_ON UserInput = 8 UserInput_BOOST_OFF UserInput = 9 )
func (UserInput) EnumDescriptor ¶
type UserMessage ¶
type UserMessage struct { // Types that are valid to be assigned to Content: // *UserMessage_UserAction // *UserMessage_JoinGame // *UserMessage_Ping // *UserMessage_TargetAngle Content isUserMessage_Content `protobuf_oneof:"content"` }
func (*UserMessage) Descriptor ¶
func (*UserMessage) Descriptor() ([]byte, []int)
func (*UserMessage) GetContent ¶
func (m *UserMessage) GetContent() isUserMessage_Content
func (*UserMessage) GetJoinGame ¶
func (m *UserMessage) GetJoinGame() *JoinGame
func (*UserMessage) GetPing ¶
func (m *UserMessage) GetPing() *Ping
func (*UserMessage) GetTargetAngle ¶
func (m *UserMessage) GetTargetAngle() *TargetAngle
func (*UserMessage) GetUserAction ¶
func (m *UserMessage) GetUserAction() *UserAction
func (*UserMessage) ProtoMessage ¶
func (*UserMessage) ProtoMessage()
func (*UserMessage) Reset ¶
func (m *UserMessage) Reset()
func (*UserMessage) String ¶
func (m *UserMessage) String() string
func (*UserMessage) XXX_OneofFuncs ¶
func (*UserMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type UserMessage_JoinGame ¶
type UserMessage_JoinGame struct {
JoinGame *JoinGame `protobuf:"bytes,2,opt,name=joinGame,oneof"`
}
type UserMessage_Ping ¶
type UserMessage_Ping struct {
Ping *Ping `protobuf:"bytes,3,opt,name=ping,oneof"`
}
type UserMessage_TargetAngle ¶
type UserMessage_TargetAngle struct {
TargetAngle *TargetAngle `protobuf:"bytes,4,opt,name=targetAngle,oneof"`
}
type UserMessage_UserAction ¶
type UserMessage_UserAction struct {
UserAction *UserAction `protobuf:"bytes,1,opt,name=userAction,oneof"`
}
type Vector ¶
type Vector struct { X float32 `protobuf:"fixed32,1,opt,name=x" json:"x,omitempty"` Y float32 `protobuf:"fixed32,2,opt,name=y" json:"y,omitempty"` }
func (*Vector) Descriptor ¶
func (*Vector) ProtoMessage ¶
func (*Vector) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.