Ejemplo n.º 1
0
func (this *InitTimeStampNt) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.TimeStamp)
	packet.DecoderReadValue(this.Packet, &this.SyncCode)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 2
0
Archivo: comm.go Proyecto: dulumao/gsgo
func (this *ServerErrorNt) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.ReqCmdID)
	packet.DecoderReadValue(this.Packet, &this.ErrCode)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 3
0
func (this *LoginReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.Account)
	packet.DecoderReadValue(this.Packet, &this.CAID)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 4
0
func (this *CreateRoleReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.RoleName)
	packet.DecoderReadValue(this.Packet, &this.RoleJob)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 5
0
func (this *ProxyRouteResp) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.Ip)
	packet.DecoderReadValue(this.Packet, &this.Port)
	packet.DecoderReadValue(this.Packet, &this.ExtStrVal)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 6
0
func (this *SetPayRoleReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.UserID)
	packet.DecoderReadValue(this.Packet, &this.RoleID)
	packet.DecoderReadValue(this.Packet, &this.RoleName)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 7
0
func (this *LoginValidReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.Account)
	packet.DecoderReadValue(this.Packet, &this.ValidCode)
	packet.DecoderReadValue(this.Packet, &this.CRandCode)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 8
0
func (this *PlayerLoginReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.UserName)
	packet.DecoderReadValue(this.Packet, &this.UserPwd)
	packet.DecoderReadValue(this.Packet, &this.UserID)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 9
0
Archivo: comm.go Proyecto: dulumao/gsgo
func (this *VersionCheckResp) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.NodeType)
	packet.DecoderReadValue(this.Packet, &this.GameID)
	packet.DecoderReadValue(this.Packet, &this.GameCode)
	packet.DecoderReadValue(this.Packet, &this.Code)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 10
0
func (this *LoginRoleEntity) DecodeEntity(p *packet.Packet) bool {
	packet.DecoderReadValue(p, &this.UserID)
	packet.DecoderReadValue(p, &this.RoleID)
	packet.DecoderReadValue(p, &this.OldServerId)
	packet.DecoderReadValue(p, &this.RoleName)
	packet.DecoderReadValue(p, &this.Level)
	packet.DecoderReadValue(p, &this.RoleJob)
	packet.DecoderReadValue(p, &this.RoleIcon)
	packet.DecoderReadValue(p, &this.IsPayRole)
	packet.DecoderReadValue(p, &this.LastLoginTime)
	return true
}
Ejemplo n.º 11
0
func (this *LoginResp) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.RandomCode)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 12
0
func (this *NodeRegResp) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.Code)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 13
0
func (this *ProxyClientOfflineReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.UserID)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 14
0
func (this *PlayerLoginReadyReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.ValidCode)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 15
0
func (this *SetPayRoleResp) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.ErrCode)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 16
0
func (this *RoleListReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.UserName)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 17
0
func (this *RoleStatusResp) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.RoleStatus)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 18
0
func (this *Login_Req) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.UserName)

	packet.DecoderReadValue(this.Packet, &this.PWD)

	packet.DecoderReadEntity(this.Packet, &this.e)

	arrLen := packet.DecoderReadArrayLength(this.Packet)
	for i := 0; i < arrLen; i++ {
		e := &Entity{}
		packet.DecoderReadEntity(this.Packet, e)
		this.eList = append(this.eList, *e)
	}
	this.PackDecoded = true
	return true
}
Ejemplo n.º 19
0
func (this *NodeRegReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.NodeType)
	packet.DecoderReadValue(this.Packet, &this.IP)
	packet.DecoderReadValue(this.Packet, &this.Port)
	packet.DecoderReadValue(this.Packet, &this.GameId)
	packet.DecoderReadValue(this.Packet, &this.GameAreaId)
	packet.DecoderReadValue(this.Packet, &this.GameServerId)
	packet.DecoderReadValue(this.Packet, &this.GameCode)
	packet.DecoderReadValue(this.Packet, &this.GameServerName)
	packet.DecoderReadValue(this.Packet, &this.GameServerDesc)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 20
0
func (this *LoginValidResp) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.UFID)
	packet.DecoderReadValue(this.Packet, &this.UserId)
	packet.DecoderReadValue(this.Packet, &this.ValidFlag)
	packet.DecoderReadValue(this.Packet, &this.NeedRecover)
	packet.DecoderReadValue(this.Packet, &this.GameAreaId)
	packet.DecoderReadValue(this.Packet, &this.GameId)
	packet.DecoderReadValue(this.Packet, &this.GameServerId)
	packet.DecoderReadValue(this.Packet, &this.GameServerIp)
	packet.DecoderReadValue(this.Packet, &this.GameServerPort)
	this.PackDecoded = true
	return true
}
Ejemplo n.º 21
0
func (this *Entity) DecodeEntity(p *packet.Packet) bool {
	packet.DecoderReadValue(p, &this.a)
	packet.DecoderReadValue(p, &this.b)
	return true
}