Documentation ¶
Overview ¶
Package res is a generated protocol buffer package.
It is generated from these files:
res.proto
It has these top-level messages:
Packet
Index ¶
- Constants
- Variables
- type Button
- type Man
- type Packet
- func (m *Packet) GetData() []byte
- func (m *Packet) GetKeyDown() Button
- func (m *Packet) GetKeyLeft() Button
- func (m *Packet) GetKeyRight() Button
- func (m *Packet) GetKeyUp() Button
- func (m *Packet) GetMan() Man
- func (m *Packet) GetMouse1() Button
- func (m *Packet) GetMouse2() Button
- func (m *Packet) GetTick() uint64
- func (m *Packet) GetType() Type
- func (m *Packet) GetX() int64
- func (m *Packet) GetY() int64
- func (*Packet) ProtoMessage()
- func (m *Packet) Reset()
- func (m *Packet) String() string
- type Type
Constants ¶
View Source
const FooLevel = "" /* 29287-byte string literal not displayed */
View Source
const GrubPng = "" /* 1268-byte string literal not displayed */
View Source
const LemonPng = "" /* 8678-byte string literal not displayed */
View Source
const LuxisrTtf = "" /* 200129-byte string literal not displayed */
View Source
const ManDensityCrouchPng = "" /* 2499-byte string literal not displayed */
View Source
const ManDensityPng = "" /* 4124-byte string literal not displayed */
View Source
const ManNormalCrouchPng = "" /* 2209-byte string literal not displayed */
View Source
const ManNormalPng = "" /* 3584-byte string literal not displayed */
View Source
const ManVacuumCrouchPng = "" /* 2771-byte string literal not displayed */
View Source
const ManVacuumPng = "" /* 3941-byte string literal not displayed */
View Source
const ManWhipCrouchPng = "" /* 3775-byte string literal not displayed */
View Source
const ManWhipPng = "" /* 5102-byte string literal not displayed */
View Source
const Parallax0Png = "" /* 26340-byte string literal not displayed */
View Source
const Parallax1Png = "" /* 48684-byte string literal not displayed */
View Source
const TerrainPng = "" /* 3955-byte string literal not displayed */
View Source
const TileCornerInnerPng = "" /* 405-byte string literal not displayed */
View Source
const TileCornerOuterPng = "" /* 372-byte string literal not displayed */
View Source
const TileSidePng = "" /* 440-byte string literal not displayed */
Variables ¶
View Source
var Button_name = map[int32]string{
0: "released",
1: "pressed",
}
View Source
var Button_value = map[string]int32{
"released": 0,
"pressed": 1,
}
View Source
var Man_name = map[int32]string{
0: "Whip",
1: "Density",
2: "Vacuum",
3: "Normal",
4: "count",
}
View Source
var Man_value = map[string]int32{
"Whip": 0,
"Density": 1,
"Vacuum": 2,
"Normal": 3,
"count": 4,
}
View Source
var Type_name = map[int32]string{
0: "Ping",
1: "SelectMan",
2: "Input",
3: "StateDiff",
4: "FullState",
5: "World",
}
View Source
var Type_value = map[string]int32{
"Ping": 0,
"SelectMan": 1,
"Input": 2,
"StateDiff": 3,
"FullState": 4,
"World": 5,
}
Functions ¶
This section is empty.
Types ¶
type Packet ¶
type Packet struct { Type *Type `protobuf:"varint,1,req,name=type,enum=Type" json:"type,omitempty"` Man *Man `protobuf:"varint,2,opt,name=man,enum=Man" json:"man,omitempty"` X *int64 `protobuf:"zigzag64,3,opt,name=x" json:"x,omitempty"` Y *int64 `protobuf:"zigzag64,4,opt,name=y" json:"y,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data" json:"data,omitempty"` Tick *uint64 `protobuf:"varint,6,opt,name=tick" json:"tick,omitempty"` Mouse1 *Button `protobuf:"varint,16,opt,name=mouse1,enum=Button" json:"mouse1,omitempty"` Mouse2 *Button `protobuf:"varint,17,opt,name=mouse2,enum=Button" json:"mouse2,omitempty"` KeyUp *Button `protobuf:"varint,18,opt,name=key_up,enum=Button" json:"key_up,omitempty"` KeyDown *Button `protobuf:"varint,19,opt,name=key_down,enum=Button" json:"key_down,omitempty"` KeyLeft *Button `protobuf:"varint,20,opt,name=key_left,enum=Button" json:"key_left,omitempty"` KeyRight *Button `protobuf:"varint,21,opt,name=key_right,enum=Button" json:"key_right,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Packet) GetKeyDown ¶
func (*Packet) GetKeyLeft ¶
func (*Packet) GetKeyRight ¶
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
Source Files ¶
- foo.level.go
- grub.png.go
- lemon.png.go
- luxisr.ttf.go
- man_density.png.go
- man_density_crouch.png.go
- man_normal.png.go
- man_normal_crouch.png.go
- man_vacuum.png.go
- man_vacuum_crouch.png.go
- man_whip.png.go
- man_whip_crouch.png.go
- parallax_0.png.go
- parallax_1.png.go
- res.pb.go
- terrain.png.go
- tile_corner_inner.png.go
- tile_corner_outer.png.go
- tile_side.png.go
Click to show internal directories.
Click to hide internal directories.