proto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(service string, v interface{}) string

Types

type Chat

type Chat struct {
	Name    string
	Content string
}

type HCBattleStatus

type HCBattleStatus struct {
	Status string
}

type HCChat

type HCChat Chat

type HCPlayerInfos

type HCPlayerInfos struct {
	Players []PlayerInfo
}

type HCShoot

type HCShoot struct {
	Source string
	Target string
	Harm   int
}

type Pack

type Pack struct {
	Service string
	Type    string
	Data    interface{}
}

func Decode

func Decode(str string) *Pack

type PlayerInfo

type PlayerInfo struct {
	Name      string
	CurrentHP int
}

Jump to

Keyboard shortcuts

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