-
Notifications
You must be signed in to change notification settings - Fork 30
/
NetProto.cs
140 lines (119 loc) · 3.68 KB
/
NetProto.cs
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
// Code generated by gen_proto.sh.
// DO NOT EDIT!
using UnityEngine;
using System;
using System.Collections.Generic;
namespace NetProto.Proto
{
public abstract class NetBase
{
public short NetMsgId;
public abstract void Pack(ByteArray w);
}
public class auto_id : NetBase
{
public Int32 id;
public override void Pack(ByteArray w)
{
w.WriteInt32(this.id);
}
public static auto_id UnPack(ByteArray reader)
{
auto_id tbl = new auto_id();
tbl.id = reader.ReadInt32();
return tbl;
}
}
public class error_info : NetBase
{
public Int32 code;
public string msg;
public override void Pack(ByteArray w)
{
w.WriteInt32(this.code);
w.WriteUTF(this.msg);
}
public static error_info UnPack(ByteArray reader)
{
error_info tbl = new error_info();
tbl.code = reader.ReadInt32();
tbl.msg = reader.ReadUTFBytes();
return tbl;
}
}
public class user_login_info : NetBase
{
public Int32 login_way;
public string open_udid;
public string client_certificate;
public Int32 client_version;
public string user_lang;
public string app_id;
public string os_version;
public string device_name;
public string device_id;
public Int32 device_id_type;
public string login_ip;
public override void Pack(ByteArray w)
{
w.WriteInt32(this.login_way);
w.WriteUTF(this.open_udid);
w.WriteUTF(this.client_certificate);
w.WriteInt32(this.client_version);
w.WriteUTF(this.user_lang);
w.WriteUTF(this.app_id);
w.WriteUTF(this.os_version);
w.WriteUTF(this.device_name);
w.WriteUTF(this.device_id);
w.WriteInt32(this.device_id_type);
w.WriteUTF(this.login_ip);
}
public static user_login_info UnPack(ByteArray reader)
{
user_login_info tbl = new user_login_info();
tbl.login_way = reader.ReadInt32();
tbl.open_udid = reader.ReadUTFBytes();
tbl.client_certificate = reader.ReadUTFBytes();
tbl.client_version = reader.ReadInt32();
tbl.user_lang = reader.ReadUTFBytes();
tbl.app_id = reader.ReadUTFBytes();
tbl.os_version = reader.ReadUTFBytes();
tbl.device_name = reader.ReadUTFBytes();
tbl.device_id = reader.ReadUTFBytes();
tbl.device_id_type = reader.ReadInt32();
tbl.login_ip = reader.ReadUTFBytes();
return tbl;
}
}
public class seed_info : NetBase
{
public Int32 client_send_seed;
public Int32 client_receive_seed;
public override void Pack(ByteArray w)
{
w.WriteInt32(this.client_send_seed);
w.WriteInt32(this.client_receive_seed);
}
public static seed_info UnPack(ByteArray reader)
{
seed_info tbl = new seed_info();
tbl.client_send_seed = reader.ReadInt32();
tbl.client_receive_seed = reader.ReadInt32();
return tbl;
}
}
public class user_snapshot : NetBase
{
public Int32 uid;
public override void Pack(ByteArray w)
{
w.WriteInt32(this.uid);
}
public static user_snapshot UnPack(ByteArray reader)
{
user_snapshot tbl = new user_snapshot();
tbl.uid = reader.ReadInt32();
return tbl;
}
}
}