func (p *CharacterList) Handler(netes network.Netes) PillFactory {
	netes.WriteUint16(uint16(0))
	netes.WriteBytes([]byte{0x00, 0x08, 0x7C, 0x35, 0x09, 0x19, 0xB2, 0x50, 0xD3, 0x49})
	netes.WriteUint8(uint8(0))
	netes.WriteUint8(uint8(1))
	netes.WriteUint32(uint32(0))
	netes.WriteUint32(uint32(12820))

	return p
}
Beispiel #2
0
func (p *Auth) Handler(netes network.Netes) PillFactory {
	netes.ReadString(&p.Key)
	netes.ReadString(&p.Login)
	netes.ReadString(&p.Password)
	netes.ReadString(&p.MAC)
	netes.ReadUint16(&p.IsCheat)
	netes.ReadUint16(&p.ClientVersion)

	return p
}
Beispiel #3
0
func (p *Date) Handler(netes network.Netes) PillFactory {
	netes.WriteString(p.Time)

	return p
}
Beispiel #4
0
func (d *DateCrumb) PostHandler(netes network.Netes) string {
	netes.WriteString(d.Time)

	return string(netes.Bytes())
}
Beispiel #5
0
func (a *AuthCrumb) PreHandler(netes network.Netes) interfaces.PillDecoder {
	netes.ReadString(&a.Key)
	netes.ReadString(&a.Login)
	netes.ReadString(&a.Password)
	netes.ReadString(&a.MAC)
	netes.ReadUint16(&a.IsCheat)
	netes.ReadUint16(&a.ClientVersion)

	return a
}
func (cl *CharacterListCrumb) PostHandler(netes network.Netes) string {
	netes.WriteUint16(uint16(0))
	netes.WriteBytes([]byte{0x00, 0x08, 0x7C, 0x35, 0x09, 0x19, 0xB2, 0x50, 0xD3, 0x49})
	netes.WriteUint8(uint8(0))
	netes.WriteUint8(uint8(1))
	netes.WriteUint32(uint32(0))
	netes.WriteUint32(uint32(12820))

	return string(netes.Bytes())
}