gamecoordinator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2016 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCMsg

type GCMsg struct {
	AppId   uint32
	MsgType uint32
	Header  *MsgGCHdr
	Body    Serializer
}

func NewGCMsg

func NewGCMsg(appId, msgType uint32, body Serializer) *GCMsg

func (*GCMsg) GetAppId

func (g *GCMsg) GetAppId() uint32

func (*GCMsg) GetMsgType

func (g *GCMsg) GetMsgType() uint32

func (*GCMsg) GetSourceJobId

func (g *GCMsg) GetSourceJobId() JobId

func (*GCMsg) GetTargetJobId

func (g *GCMsg) GetTargetJobId() JobId

func (*GCMsg) IsProto

func (g *GCMsg) IsProto() bool

func (*GCMsg) Serialize

func (g *GCMsg) Serialize(w io.Writer) error

func (*GCMsg) SetSourceJobId

func (g *GCMsg) SetSourceJobId(job JobId)

func (*GCMsg) SetTargetJobId

func (g *GCMsg) SetTargetJobId(job JobId)

type GCMsgProtobuf

type GCMsgProtobuf struct {
	AppId  uint32
	Header *MsgGCHdrProtoBuf
	Body   proto.Message
}

func NewGCMsgProtobuf

func NewGCMsgProtobuf(appId, msgType uint32, body proto.Message) *GCMsgProtobuf

func (*GCMsgProtobuf) GetAppId

func (g *GCMsgProtobuf) GetAppId() uint32

func (*GCMsgProtobuf) GetMsgType

func (g *GCMsgProtobuf) GetMsgType() uint32

func (*GCMsgProtobuf) GetSourceJobId

func (g *GCMsgProtobuf) GetSourceJobId() JobId

func (*GCMsgProtobuf) GetTargetJobId

func (g *GCMsgProtobuf) GetTargetJobId() JobId

func (*GCMsgProtobuf) IsProto

func (g *GCMsgProtobuf) IsProto() bool

func (*GCMsgProtobuf) Serialize

func (g *GCMsgProtobuf) Serialize(w io.Writer) error

func (*GCMsgProtobuf) SetSourceJobId

func (g *GCMsgProtobuf) SetSourceJobId(job JobId)

func (*GCMsgProtobuf) SetTargetJobId

func (g *GCMsgProtobuf) SetTargetJobId(job JobId)

type GCPacket

type GCPacket struct {
	AppId       uint32
	MsgType     uint32
	IsProto     bool
	GCName      string
	Body        []byte
	TargetJobId JobId
}

An incoming, partially unread message from the Game Coordinator.

func NewGCPacket

func NewGCPacket(wrapper *CMsgGCClient) (*GCPacket, error)

func (*GCPacket) ReadMsg

func (g *GCPacket) ReadMsg(body MessageBody)

func (*GCPacket) ReadProtoMsg

func (g *GCPacket) ReadProtoMsg(body proto.Message)

type IGCMsg

type IGCMsg interface {
	Serializer
	IsProto() bool
	GetAppId() uint32
	GetMsgType() uint32

	GetTargetJobId() JobId
	SetTargetJobId(JobId)
	GetSourceJobId() JobId
	SetSourceJobId(JobId)
}

An outgoing message to the Game Coordinator.

Jump to

Keyboard shortcuts

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