This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
packet_helo_result_autogen.go
125 lines (117 loc) · 2.46 KB
/
packet_helo_result_autogen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// This file is automatically generated. DO NOT MODIFY!
package lumina
func (this *UserLicenseInfo) readFrom(r Reader) (err error) {
// Field this.Id
// Basic string
if this.Id, err = readString(r); err != nil {
return
}
// Field this.Name
// Basic string
if this.Name, err = readString(r); err != nil {
return
}
// Field this.Email
// Basic string
if this.Email, err = readString(r); err != nil {
return
}
return
}
func (this *UserLicenseInfo) writeTo(w Writer) (err error) {
// Field this.Id
// Basic string
if err = writeString(w, this.Id); err != nil {
return
}
// Field this.Name
// Basic string
if err = writeString(w, this.Name); err != nil {
return
}
// Field this.Email
// Basic string
if err = writeString(w, this.Email); err != nil {
return
}
return
}
func (this *LuminaUser) readFrom(r Reader) (err error) {
// Field this.LicenseInfo
// Struct UserLicenseInfo
if err = this.LicenseInfo.readFrom(r); err != nil {
return
}
// Field this.Name
// Basic string
if this.Name, err = readString(r); err != nil {
return
}
// Field this.Karma
// Basic int32
if this.Karma, err = readInt32(r); err != nil {
return
}
// Field this.LastActive
// Basic uint64
// Typed UtcTimestamp
var v1 uint64
if v1, err = readUint64(r); err != nil {
return
}
this.LastActive = UtcTimestamp(v1)
// Field this.Features
// Basic uint32
if this.Features, err = readUint32(r); err != nil {
return
}
return
}
func (this *LuminaUser) writeTo(w Writer) (err error) {
// Field this.LicenseInfo
// Struct UserLicenseInfo
if err = this.LicenseInfo.writeTo(w); err != nil {
return
}
// Field this.Name
// Basic string
if err = writeString(w, this.Name); err != nil {
return
}
// Field this.Karma
// Basic int32
if err = writeInt32(w, this.Karma); err != nil {
return
}
// Field this.LastActive
// Basic uint64
// Typed UtcTimestamp
if err = writeUint64(w, uint64(this.LastActive)); err != nil {
return
}
// Field this.Features
// Basic uint32
if err = writeUint32(w, this.Features); err != nil {
return
}
return
}
func (*HeloResultPacket) getType() PacketType {
return PKT_HELO_RESULT
}
func (this *HeloResultPacket) readFrom(r Reader) (err error) {
// Field this.User
// Struct LuminaUser
if err = this.User.readFrom(r); err != nil {
return
}
return
}
func (this *HeloResultPacket) writeTo(w Writer) (err error) {
// Field this.User
// Struct LuminaUser
if err = this.User.writeTo(w); err != nil {
return
}
return
}