Пример #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
}
Пример #2
0
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
}
Пример #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
}
Пример #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
}
Пример #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
}
Пример #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
}
Пример #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
}
Пример #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
}
Пример #9
0
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
}
Пример #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
}
Пример #11
0
func (this *LoginResp) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.RandomCode)
	this.PackDecoded = true
	return true
}
Пример #12
0
func (this *NodeRegResp) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.Code)
	this.PackDecoded = true
	return true
}
Пример #13
0
func (this *ProxyClientOfflineReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.UserID)
	this.PackDecoded = true
	return true
}
Пример #14
0
func (this *PlayerLoginReadyReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.ValidCode)
	this.PackDecoded = true
	return true
}
Пример #15
0
func (this *SetPayRoleResp) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.ErrCode)
	this.PackDecoded = true
	return true
}
Пример #16
0
func (this *RoleListReq) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.UserName)
	this.PackDecoded = true
	return true
}
Пример #17
0
func (this *RoleStatusResp) DecodePacket() bool {
	if this.IsDecoded() {
		return true
	}
	packet.DecoderReadValue(this.Packet, &this.RoleStatus)
	this.PackDecoded = true
	return true
}
Пример #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
}
Пример #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
}
Пример #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
}
Пример #21
0
func (this *Entity) DecodeEntity(p *packet.Packet) bool {
	packet.DecoderReadValue(p, &this.a)
	packet.DecoderReadValue(p, &this.b)
	return true
}