pb

package
v0.0.0-...-5062497 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 3 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Asteroid) GetPosition

func (m *Asteroid) GetPosition() *Point

func (*Asteroid) GetVelocity

func (m *Asteroid) GetVelocity() *Vector

func (*Asteroid) ProtoMessage

func (*Asteroid) ProtoMessage()

func (*Asteroid) Reset

func (m *Asteroid) Reset()

func (*Asteroid) String

func (m *Asteroid) String() string

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) Descriptor() ([]byte, []int)

func (*Constants) ProtoMessage

func (*Constants) ProtoMessage()

func (*Constants) Reset

func (m *Constants) Reset()

func (*Constants) String

func (m *Constants) String() string

type Direction

type Direction int32
const (
	Direction_DIR_CENTER Direction = 0
	Direction_DIR_RIGHT  Direction = 1
	Direction_DIR_LEFT   Direction = 2
)

func (Direction) EnumDescriptor

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

func (Direction) String

func (x Direction) String() string

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) Descriptor() ([]byte, []int)

func (*Hello) GetIdToUsername

func (m *Hello) GetIdToUsername() map[uint32]string

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) Reset

func (m *Hello) Reset()

func (*Hello) String

func (m *Hello) String() string

type JoinGame

type JoinGame struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
}

func (*JoinGame) Descriptor

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

func (*JoinGame) ProtoMessage

func (*JoinGame) ProtoMessage()

func (*JoinGame) Reset

func (m *JoinGame) Reset()

func (*JoinGame) String

func (m *JoinGame) String() string

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) Descriptor() ([]byte, []int)

func (*Message) GetConstants

func (m *Message) GetConstants() *Constants

func (*Message) GetContent

func (m *Message) GetContent() isMessage_Content

func (*Message) GetHello

func (m *Message) GetHello() *Hello

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) GetPong

func (m *Message) GetPong() *Pong

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) GetSpace

func (m *Message) GetSpace() *Space

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_OneofFuncs

func (*Message) 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 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) Descriptor() ([]byte, []int)

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

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) Descriptor() ([]byte, []int)

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) Reset

func (m *Point) Reset()

func (*Point) String

func (m *Point) String() string

type Pong

type Pong struct {
	Id uint32 `protobuf:"varint,1,opt,name=Id,json=id" json:"Id,omitempty"`
}

func (*Pong) Descriptor

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

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) Reset

func (m *Pong) Reset()

func (*Pong) String

func (m *Pong) String() string

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) Descriptor() ([]byte, []int)

func (*Rank) ProtoMessage

func (*Rank) ProtoMessage()

func (*Rank) Reset

func (m *Rank) Reset()

func (*Rank) String

func (m *Rank) String() string

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) Descriptor() ([]byte, []int)

func (*Space) GetAsteroids

func (m *Space) GetAsteroids() []*Asteroid

func (*Space) GetSpaceships

func (m *Space) GetSpaceships() []*Spaceship

func (*Space) ProtoMessage

func (*Space) ProtoMessage()

func (*Space) Reset

func (m *Space) Reset()

func (*Space) String

func (m *Space) String() string

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) Descriptor() ([]byte, []int)

func (*Spaceship) GetPosition

func (m *Spaceship) GetPosition() *Point

func (*Spaceship) GetVelocity

func (m *Spaceship) GetVelocity() *Vector

func (*Spaceship) ProtoMessage

func (*Spaceship) ProtoMessage()

func (*Spaceship) Reset

func (m *Spaceship) Reset()

func (*Spaceship) String

func (m *Spaceship) String() string

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

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

func (UserInput) String

func (x UserInput) String() string

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) Descriptor() ([]byte, []int)

func (*Vector) ProtoMessage

func (*Vector) ProtoMessage()

func (*Vector) Reset

func (m *Vector) Reset()

func (*Vector) String

func (m *Vector) String() string

Jump to

Keyboard shortcuts

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