Documentation ¶
Index ¶
- Variables
- type ClientInitialize
- type DestroyEvent
- type Memo
- func (*Memo) Descriptor() ([]byte, []int)deprecated
- func (m *Memo) GetActual() isMemo_Actual
- func (x *Memo) GetDestroyEvent() *DestroyEvent
- func (x *Memo) GetEveryone() bool
- func (x *Memo) GetEveryoneBut() int64
- func (x *Memo) GetMomentumTracks() *MomentumTracks
- func (x *Memo) GetPosTracks() *PosTracks
- func (m *Memo) GetRecipient() isMemo_Recipient
- func (x *Memo) GetRegisterPlayer() *RegisterPlayer
- func (x *Memo) GetRotTracks() *RotTracks
- func (x *Memo) GetShipControlTrack() *ShipControlTrack
- func (x *Memo) GetShootMissile() *ShootMissile
- func (x *Memo) GetSpawnExplosion() *SpawnExplosion
- func (x *Memo) GetSpawnMissile() *SpawnMissile
- func (x *Memo) GetSpawnShip() *SpawnShip
- func (x *Memo) GetSpinTracks() *SpinTracks
- func (x *Memo) GetTo() int64
- func (*Memo) ProtoMessage()
- func (x *Memo) ProtoReflect() protoreflect.Message
- func (x *Memo) Reset()
- func (x *Memo) String() string
- type Memo_DestroyEvent
- type Memo_Everyone
- type Memo_EveryoneBut
- type Memo_MomentumTracks
- type Memo_PosTracks
- type Memo_RegisterPlayer
- type Memo_RotTracks
- type Memo_ShipControlTrack
- type Memo_ShootMissile
- type Memo_SpawnExplosion
- type Memo_SpawnMissile
- type Memo_SpawnShip
- type Memo_SpinTracks
- type Memo_To
- type Memos
- type MomentumTracks
- func (*MomentumTracks) Descriptor() ([]byte, []int)deprecated
- func (x *MomentumTracks) GetNid() []uint64
- func (x *MomentumTracks) GetX() []float32
- func (x *MomentumTracks) GetY() []float32
- func (*MomentumTracks) ProtoMessage()
- func (x *MomentumTracks) ProtoReflect() protoreflect.Message
- func (x *MomentumTracks) Reset()
- func (x *MomentumTracks) String() string
- type PosTracks
- func (*PosTracks) Descriptor() ([]byte, []int)deprecated
- func (x *PosTracks) GetNid() []uint64
- func (x *PosTracks) GetX() []float32
- func (x *PosTracks) GetY() []float32
- func (*PosTracks) ProtoMessage()
- func (x *PosTracks) ProtoReflect() protoreflect.Message
- func (x *PosTracks) Reset()
- func (x *PosTracks) String() string
- type RegisterPlayer
- type RotTracks
- type ShipControlTrack
- func (*ShipControlTrack) Descriptor() ([]byte, []int)deprecated
- func (x *ShipControlTrack) GetLeft() bool
- func (x *ShipControlTrack) GetNid() uint64
- func (x *ShipControlTrack) GetRight() bool
- func (x *ShipControlTrack) GetUp() bool
- func (*ShipControlTrack) ProtoMessage()
- func (x *ShipControlTrack) ProtoReflect() protoreflect.Message
- func (x *ShipControlTrack) Reset()
- func (x *ShipControlTrack) String() string
- type ShootMissile
- type SpawnExplosion
- func (*SpawnExplosion) Descriptor() ([]byte, []int)deprecated
- func (x *SpawnExplosion) GetMomentum() *Vec2
- func (x *SpawnExplosion) GetPos() *Vec2
- func (*SpawnExplosion) ProtoMessage()
- func (x *SpawnExplosion) ProtoReflect() protoreflect.Message
- func (x *SpawnExplosion) Reset()
- func (x *SpawnExplosion) String() string
- type SpawnMissile
- func (*SpawnMissile) Descriptor() ([]byte, []int)deprecated
- func (x *SpawnMissile) GetMomentum() *Vec2
- func (x *SpawnMissile) GetNid() uint64
- func (x *SpawnMissile) GetOwner() uint64
- func (x *SpawnMissile) GetPos() *Vec2
- func (x *SpawnMissile) GetRot() float32
- func (x *SpawnMissile) GetSpin() float32
- func (*SpawnMissile) ProtoMessage()
- func (x *SpawnMissile) ProtoReflect() protoreflect.Message
- func (x *SpawnMissile) Reset()
- func (x *SpawnMissile) String() string
- type SpawnShip
- func (*SpawnShip) Descriptor() ([]byte, []int)deprecated
- func (x *SpawnShip) GetAuthority() int64
- func (x *SpawnShip) GetMomentum() *Vec2
- func (x *SpawnShip) GetNid() uint64
- func (x *SpawnShip) GetPos() *Vec2
- func (x *SpawnShip) GetRot() float32
- func (x *SpawnShip) GetSpin() float32
- func (*SpawnShip) ProtoMessage()
- func (x *SpawnShip) ProtoReflect() protoreflect.Message
- func (x *SpawnShip) Reset()
- func (x *SpawnShip) String() string
- type SpinTracks
- type Vec2
Constants ¶
This section is empty.
Variables ¶
View Source
var File_game_pb_messages_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ClientInitialize ¶
type ClientInitialize struct { Cid int64 `protobuf:"varint,1,opt,name=cid,proto3" json:"cid,omitempty"` // contains filtered or unexported fields }
func (*ClientInitialize) Descriptor
deprecated
func (*ClientInitialize) Descriptor() ([]byte, []int)
Deprecated: Use ClientInitialize.ProtoReflect.Descriptor instead.
func (*ClientInitialize) GetCid ¶
func (x *ClientInitialize) GetCid() int64
func (*ClientInitialize) ProtoMessage ¶
func (*ClientInitialize) ProtoMessage()
func (*ClientInitialize) ProtoReflect ¶
func (x *ClientInitialize) ProtoReflect() protoreflect.Message
func (*ClientInitialize) Reset ¶
func (x *ClientInitialize) Reset()
func (*ClientInitialize) String ¶
func (x *ClientInitialize) String() string
type DestroyEvent ¶
type DestroyEvent struct { Nid uint64 `protobuf:"varint,1,opt,name=nid,proto3" json:"nid,omitempty"` // contains filtered or unexported fields }
func (*DestroyEvent) Descriptor
deprecated
func (*DestroyEvent) Descriptor() ([]byte, []int)
Deprecated: Use DestroyEvent.ProtoReflect.Descriptor instead.
func (*DestroyEvent) GetNid ¶
func (x *DestroyEvent) GetNid() uint64
func (*DestroyEvent) ProtoMessage ¶
func (*DestroyEvent) ProtoMessage()
func (*DestroyEvent) ProtoReflect ¶
func (x *DestroyEvent) ProtoReflect() protoreflect.Message
func (*DestroyEvent) Reset ¶
func (x *DestroyEvent) Reset()
func (*DestroyEvent) String ¶
func (x *DestroyEvent) String() string
type Memo ¶
type Memo struct { // Types that are assignable to Recipient: // *Memo_To // *Memo_EveryoneBut // *Memo_Everyone Recipient isMemo_Recipient `protobuf_oneof:"recipient"` // Types that are assignable to Actual: // *Memo_PosTracks // *Memo_MomentumTracks // *Memo_RotTracks // *Memo_SpinTracks // *Memo_ShipControlTrack // *Memo_DestroyEvent // *Memo_ShootMissile // *Memo_SpawnMissile // *Memo_SpawnExplosion // *Memo_SpawnShip // *Memo_RegisterPlayer Actual isMemo_Actual `protobuf_oneof:"actual"` // contains filtered or unexported fields }
func (*Memo) Descriptor
deprecated
func (*Memo) GetDestroyEvent ¶
func (x *Memo) GetDestroyEvent() *DestroyEvent
func (*Memo) GetEveryone ¶
func (*Memo) GetEveryoneBut ¶
func (*Memo) GetMomentumTracks ¶
func (x *Memo) GetMomentumTracks() *MomentumTracks
func (*Memo) GetPosTracks ¶
func (*Memo) GetRecipient ¶
func (m *Memo) GetRecipient() isMemo_Recipient
func (*Memo) GetRegisterPlayer ¶
func (x *Memo) GetRegisterPlayer() *RegisterPlayer
func (*Memo) GetRotTracks ¶
func (*Memo) GetShipControlTrack ¶
func (x *Memo) GetShipControlTrack() *ShipControlTrack
func (*Memo) GetShootMissile ¶
func (x *Memo) GetShootMissile() *ShootMissile
func (*Memo) GetSpawnExplosion ¶
func (x *Memo) GetSpawnExplosion() *SpawnExplosion
func (*Memo) GetSpawnMissile ¶
func (x *Memo) GetSpawnMissile() *SpawnMissile
func (*Memo) GetSpawnShip ¶
func (*Memo) GetSpinTracks ¶
func (x *Memo) GetSpinTracks() *SpinTracks
func (*Memo) ProtoMessage ¶
func (*Memo) ProtoMessage()
func (*Memo) ProtoReflect ¶
func (x *Memo) ProtoReflect() protoreflect.Message
type Memo_DestroyEvent ¶
type Memo_DestroyEvent struct { // TODO: Remove // SpawnEvent spawn_event = 15; DestroyEvent *DestroyEvent `protobuf:"bytes,16,opt,name=destroy_event,json=destroyEvent,proto3,oneof"` }
type Memo_Everyone ¶
type Memo_Everyone struct {
Everyone bool `protobuf:"varint,3,opt,name=everyone,proto3,oneof"`
}
type Memo_EveryoneBut ¶
type Memo_EveryoneBut struct {
EveryoneBut int64 `protobuf:"varint,2,opt,name=everyone_but,json=everyoneBut,proto3,oneof"`
}
type Memo_MomentumTracks ¶
type Memo_MomentumTracks struct {
MomentumTracks *MomentumTracks `protobuf:"bytes,11,opt,name=momentum_tracks,json=momentumTracks,proto3,oneof"`
}
type Memo_PosTracks ¶
type Memo_PosTracks struct {
PosTracks *PosTracks `protobuf:"bytes,10,opt,name=pos_tracks,json=posTracks,proto3,oneof"`
}
type Memo_RegisterPlayer ¶
type Memo_RegisterPlayer struct {
RegisterPlayer *RegisterPlayer `protobuf:"bytes,21,opt,name=register_player,json=registerPlayer,proto3,oneof"`
}
type Memo_RotTracks ¶
type Memo_RotTracks struct {
RotTracks *RotTracks `protobuf:"bytes,12,opt,name=rot_tracks,json=rotTracks,proto3,oneof"`
}
type Memo_ShipControlTrack ¶
type Memo_ShipControlTrack struct {
ShipControlTrack *ShipControlTrack `protobuf:"bytes,14,opt,name=ship_control_track,json=shipControlTrack,proto3,oneof"`
}
type Memo_ShootMissile ¶
type Memo_ShootMissile struct {
ShootMissile *ShootMissile `protobuf:"bytes,17,opt,name=shoot_missile,json=shootMissile,proto3,oneof"`
}
type Memo_SpawnExplosion ¶
type Memo_SpawnExplosion struct {
SpawnExplosion *SpawnExplosion `protobuf:"bytes,19,opt,name=spawn_explosion,json=spawnExplosion,proto3,oneof"`
}
type Memo_SpawnMissile ¶
type Memo_SpawnMissile struct {
SpawnMissile *SpawnMissile `protobuf:"bytes,18,opt,name=spawn_missile,json=spawnMissile,proto3,oneof"`
}
type Memo_SpawnShip ¶
type Memo_SpawnShip struct {
SpawnShip *SpawnShip `protobuf:"bytes,20,opt,name=spawn_ship,json=spawnShip,proto3,oneof"`
}
type Memo_SpinTracks ¶
type Memo_SpinTracks struct {
SpinTracks *SpinTracks `protobuf:"bytes,13,opt,name=spin_tracks,json=spinTracks,proto3,oneof"`
}
type Memos ¶
type Memos struct { Memos []*Memo `protobuf:"bytes,1,rep,name=memos,proto3" json:"memos,omitempty"` // contains filtered or unexported fields }
func (*Memos) Descriptor
deprecated
func (*Memos) ProtoMessage ¶
func (*Memos) ProtoMessage()
func (*Memos) ProtoReflect ¶
func (x *Memos) ProtoReflect() protoreflect.Message
type MomentumTracks ¶
type MomentumTracks struct { Nid []uint64 `protobuf:"varint,1,rep,packed,name=nid,proto3" json:"nid,omitempty"` X []float32 `protobuf:"fixed32,2,rep,packed,name=x,proto3" json:"x,omitempty"` Y []float32 `protobuf:"fixed32,3,rep,packed,name=y,proto3" json:"y,omitempty"` // contains filtered or unexported fields }
func (*MomentumTracks) Descriptor
deprecated
func (*MomentumTracks) Descriptor() ([]byte, []int)
Deprecated: Use MomentumTracks.ProtoReflect.Descriptor instead.
func (*MomentumTracks) GetNid ¶
func (x *MomentumTracks) GetNid() []uint64
func (*MomentumTracks) GetX ¶
func (x *MomentumTracks) GetX() []float32
func (*MomentumTracks) GetY ¶
func (x *MomentumTracks) GetY() []float32
func (*MomentumTracks) ProtoMessage ¶
func (*MomentumTracks) ProtoMessage()
func (*MomentumTracks) ProtoReflect ¶
func (x *MomentumTracks) ProtoReflect() protoreflect.Message
func (*MomentumTracks) Reset ¶
func (x *MomentumTracks) Reset()
func (*MomentumTracks) String ¶
func (x *MomentumTracks) String() string
type PosTracks ¶
type PosTracks struct { Nid []uint64 `protobuf:"varint,1,rep,packed,name=nid,proto3" json:"nid,omitempty"` X []float32 `protobuf:"fixed32,2,rep,packed,name=x,proto3" json:"x,omitempty"` Y []float32 `protobuf:"fixed32,3,rep,packed,name=y,proto3" json:"y,omitempty"` // contains filtered or unexported fields }
func (*PosTracks) Descriptor
deprecated
func (*PosTracks) ProtoMessage ¶
func (*PosTracks) ProtoMessage()
func (*PosTracks) ProtoReflect ¶
func (x *PosTracks) ProtoReflect() protoreflect.Message
type RegisterPlayer ¶
type RegisterPlayer struct { Cid int64 `protobuf:"varint,1,opt,name=cid,proto3" json:"cid,omitempty"` // contains filtered or unexported fields }
func (*RegisterPlayer) Descriptor
deprecated
func (*RegisterPlayer) Descriptor() ([]byte, []int)
Deprecated: Use RegisterPlayer.ProtoReflect.Descriptor instead.
func (*RegisterPlayer) GetCid ¶
func (x *RegisterPlayer) GetCid() int64
func (*RegisterPlayer) ProtoMessage ¶
func (*RegisterPlayer) ProtoMessage()
func (*RegisterPlayer) ProtoReflect ¶
func (x *RegisterPlayer) ProtoReflect() protoreflect.Message
func (*RegisterPlayer) Reset ¶
func (x *RegisterPlayer) Reset()
func (*RegisterPlayer) String ¶
func (x *RegisterPlayer) String() string
type RotTracks ¶
type RotTracks struct { Nid []uint64 `protobuf:"varint,1,rep,packed,name=nid,proto3" json:"nid,omitempty"` R []float32 `protobuf:"fixed32,2,rep,packed,name=r,proto3" json:"r,omitempty"` // contains filtered or unexported fields }
func (*RotTracks) Descriptor
deprecated
func (*RotTracks) ProtoMessage ¶
func (*RotTracks) ProtoMessage()
func (*RotTracks) ProtoReflect ¶
func (x *RotTracks) ProtoReflect() protoreflect.Message
type ShipControlTrack ¶
type ShipControlTrack struct { Nid uint64 `protobuf:"varint,1,opt,name=nid,proto3" json:"nid,omitempty"` Up bool `protobuf:"varint,2,opt,name=up,proto3" json:"up,omitempty"` Left bool `protobuf:"varint,3,opt,name=left,proto3" json:"left,omitempty"` Right bool `protobuf:"varint,4,opt,name=right,proto3" json:"right,omitempty"` // contains filtered or unexported fields }
func (*ShipControlTrack) Descriptor
deprecated
func (*ShipControlTrack) Descriptor() ([]byte, []int)
Deprecated: Use ShipControlTrack.ProtoReflect.Descriptor instead.
func (*ShipControlTrack) GetLeft ¶
func (x *ShipControlTrack) GetLeft() bool
func (*ShipControlTrack) GetNid ¶
func (x *ShipControlTrack) GetNid() uint64
func (*ShipControlTrack) GetRight ¶
func (x *ShipControlTrack) GetRight() bool
func (*ShipControlTrack) GetUp ¶
func (x *ShipControlTrack) GetUp() bool
func (*ShipControlTrack) ProtoMessage ¶
func (*ShipControlTrack) ProtoMessage()
func (*ShipControlTrack) ProtoReflect ¶
func (x *ShipControlTrack) ProtoReflect() protoreflect.Message
func (*ShipControlTrack) Reset ¶
func (x *ShipControlTrack) Reset()
func (*ShipControlTrack) String ¶
func (x *ShipControlTrack) String() string
type ShootMissile ¶
type ShootMissile struct { Owner uint64 `protobuf:"varint,1,opt,name=owner,proto3" json:"owner,omitempty"` // contains filtered or unexported fields }
func (*ShootMissile) Descriptor
deprecated
func (*ShootMissile) Descriptor() ([]byte, []int)
Deprecated: Use ShootMissile.ProtoReflect.Descriptor instead.
func (*ShootMissile) GetOwner ¶
func (x *ShootMissile) GetOwner() uint64
func (*ShootMissile) ProtoMessage ¶
func (*ShootMissile) ProtoMessage()
func (*ShootMissile) ProtoReflect ¶
func (x *ShootMissile) ProtoReflect() protoreflect.Message
func (*ShootMissile) Reset ¶
func (x *ShootMissile) Reset()
func (*ShootMissile) String ¶
func (x *ShootMissile) String() string
type SpawnExplosion ¶
type SpawnExplosion struct { Pos *Vec2 `protobuf:"bytes,1,opt,name=pos,proto3" json:"pos,omitempty"` Momentum *Vec2 `protobuf:"bytes,2,opt,name=momentum,proto3" json:"momentum,omitempty"` // contains filtered or unexported fields }
func (*SpawnExplosion) Descriptor
deprecated
func (*SpawnExplosion) Descriptor() ([]byte, []int)
Deprecated: Use SpawnExplosion.ProtoReflect.Descriptor instead.
func (*SpawnExplosion) GetMomentum ¶
func (x *SpawnExplosion) GetMomentum() *Vec2
func (*SpawnExplosion) GetPos ¶
func (x *SpawnExplosion) GetPos() *Vec2
func (*SpawnExplosion) ProtoMessage ¶
func (*SpawnExplosion) ProtoMessage()
func (*SpawnExplosion) ProtoReflect ¶
func (x *SpawnExplosion) ProtoReflect() protoreflect.Message
func (*SpawnExplosion) Reset ¶
func (x *SpawnExplosion) Reset()
func (*SpawnExplosion) String ¶
func (x *SpawnExplosion) String() string
type SpawnMissile ¶
type SpawnMissile struct { Nid uint64 `protobuf:"varint,6,opt,name=nid,proto3" json:"nid,omitempty"` Owner uint64 `protobuf:"varint,1,opt,name=owner,proto3" json:"owner,omitempty"` Pos *Vec2 `protobuf:"bytes,2,opt,name=pos,proto3" json:"pos,omitempty"` Momentum *Vec2 `protobuf:"bytes,3,opt,name=momentum,proto3" json:"momentum,omitempty"` Rot float32 `protobuf:"fixed32,4,opt,name=rot,proto3" json:"rot,omitempty"` Spin float32 `protobuf:"fixed32,5,opt,name=spin,proto3" json:"spin,omitempty"` // contains filtered or unexported fields }
Server is always authority
func (*SpawnMissile) Descriptor
deprecated
func (*SpawnMissile) Descriptor() ([]byte, []int)
Deprecated: Use SpawnMissile.ProtoReflect.Descriptor instead.
func (*SpawnMissile) GetMomentum ¶
func (x *SpawnMissile) GetMomentum() *Vec2
func (*SpawnMissile) GetNid ¶
func (x *SpawnMissile) GetNid() uint64
func (*SpawnMissile) GetOwner ¶
func (x *SpawnMissile) GetOwner() uint64
func (*SpawnMissile) GetPos ¶
func (x *SpawnMissile) GetPos() *Vec2
func (*SpawnMissile) GetRot ¶
func (x *SpawnMissile) GetRot() float32
func (*SpawnMissile) GetSpin ¶
func (x *SpawnMissile) GetSpin() float32
func (*SpawnMissile) ProtoMessage ¶
func (*SpawnMissile) ProtoMessage()
func (*SpawnMissile) ProtoReflect ¶
func (x *SpawnMissile) ProtoReflect() protoreflect.Message
func (*SpawnMissile) Reset ¶
func (x *SpawnMissile) Reset()
func (*SpawnMissile) String ¶
func (x *SpawnMissile) String() string
type SpawnShip ¶
type SpawnShip struct { Nid uint64 `protobuf:"varint,1,opt,name=nid,proto3" json:"nid,omitempty"` Authority int64 `protobuf:"varint,2,opt,name=authority,proto3" json:"authority,omitempty"` Pos *Vec2 `protobuf:"bytes,3,opt,name=pos,proto3" json:"pos,omitempty"` Momentum *Vec2 `protobuf:"bytes,4,opt,name=momentum,proto3" json:"momentum,omitempty"` Rot float32 `protobuf:"fixed32,5,opt,name=rot,proto3" json:"rot,omitempty"` Spin float32 `protobuf:"fixed32,6,opt,name=spin,proto3" json:"spin,omitempty"` // contains filtered or unexported fields }
func (*SpawnShip) Descriptor
deprecated
func (*SpawnShip) GetAuthority ¶
func (*SpawnShip) GetMomentum ¶
func (*SpawnShip) ProtoMessage ¶
func (*SpawnShip) ProtoMessage()
func (*SpawnShip) ProtoReflect ¶
func (x *SpawnShip) ProtoReflect() protoreflect.Message
type SpinTracks ¶
type SpinTracks struct { Nid []uint64 `protobuf:"varint,1,rep,packed,name=nid,proto3" json:"nid,omitempty"` S []float32 `protobuf:"fixed32,2,rep,packed,name=s,proto3" json:"s,omitempty"` // contains filtered or unexported fields }
func (*SpinTracks) Descriptor
deprecated
func (*SpinTracks) Descriptor() ([]byte, []int)
Deprecated: Use SpinTracks.ProtoReflect.Descriptor instead.
func (*SpinTracks) GetNid ¶
func (x *SpinTracks) GetNid() []uint64
func (*SpinTracks) GetS ¶
func (x *SpinTracks) GetS() []float32
func (*SpinTracks) ProtoMessage ¶
func (*SpinTracks) ProtoMessage()
func (*SpinTracks) ProtoReflect ¶
func (x *SpinTracks) ProtoReflect() protoreflect.Message
func (*SpinTracks) Reset ¶
func (x *SpinTracks) Reset()
func (*SpinTracks) String ¶
func (x *SpinTracks) String() string
type Vec2 ¶
type Vec2 struct { X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"` Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"` // contains filtered or unexported fields }
func (*Vec2) Descriptor
deprecated
func (*Vec2) ProtoMessage ¶
func (*Vec2) ProtoMessage()
func (*Vec2) ProtoReflect ¶
func (x *Vec2) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.