@@ -7,11 +7,18 @@ message NullRequest {}
77
88message IDMsg
99{
10- int64 character_id = 1 ;
10+ int64 player_id = 1 ;
1111 int64 team_id = 2 ;
1212 protobuf.GameMode mode = 3 ; // 客户端发起连接/请求时声明希望的游戏模式
1313}
1414
15+ message CharacterMsg
16+ {
17+ int64 player_id = 1 ;
18+ int64 team_id = 2 ;
19+ CharacterType character_type = 3 ;
20+ int32 side_flag = 4 ;
21+ }
1522
1623message RegisterFactoryMsg
1724{
@@ -22,18 +29,24 @@ message RegisterFactoryMsg
2229 int32 side_flag = 5 ; // 客户端希望的阵营标识
2330}
2431
25- message CreateCharacterMsg
32+ message MoveMsg
2633{
27- CharacterType character_type = 1 ;
28- int64 team_id = 2 ;
29- int32 birthpoint_index = 3 ;
30- protobuf.GameMode mode = 4 ; // 创建角色时可以指明模式
34+ int64 player_id = 1 ;
35+ double angle = 2 ;
36+ int64 time_in_milliseconds = 3 ;
37+ int64 team_id = 4 ;
3138}
3239
40+ message RecoverMsg
41+ {
42+ int64 player_id = 1 ;
43+ int64 recovered_hp = 2 ;
44+ int64 team_id = 3 ;
45+ }
3346
34- message MaterialResourceMsg
47+ message ResourceMsg
3548{
36- int64 character_id = 1 ;
49+ int64 player_id = 1 ;
3750 int64 team_id = 2 ;
3851 int64 resource_id = 3 ;
3952 int32 target_x = 4 ; // 目标坐标,或许可用
@@ -42,68 +55,52 @@ message MaterialResourceMsg
4255 //HarvestAction action = 7; // 采集动作类型
4356}
4457
45- message MoveMsg
46- {
47- int64 character_id = 1 ;
48- double angle = 2 ;
49- int64 time_in_milliseconds = 3 ;
50- int64 team_id = 4 ;
51- }
52-
53- message SendMsg
54- {
55- int64 character_id = 1 ;
56- int64 to_character_id = 2 ;
57- oneof message
58- {
59- string text_message = 3 ;
60- bytes binary_message = 4 ;
61- }
62- int64 team_id = 5 ;
63- }
64-
6558message AttackMsg // 普通攻击
6659{
67- int64 character_id = 1 ;
60+ int64 player_id = 1 ;
6861 int64 team_id = 2 ;
6962 int32 attack_range = 3 ; // 攻击范围
70- int64 attacked_character_id = 4 ; // 攻击对象
63+ int64 attacked_player_id = 4 ; // 攻击对象
7164 int64 attacked_team_id = 5 ;
7265}
7366
67+ /*
7468message AttackFactoryMsg
7569{
76- int64 character_id = 1 ;
70+ int64 player_id = 1;
7771 int64 team_id = 2;
7872 int32 attack_range = 3;
7973 int64 attacked_Factory_id = 4;
8074 int64 attacked_team_id = 5;
8175}
76+ */
8277
83- message RecoverMsg
78+ message OccupyMsg
8479{
85- int64 character_id = 1 ;
86- int64 recovered_hp = 2 ;
87- int64 team_id = 3 ;
88- }
89-
90- message RepairFactory
91- {
92- int64 character_id = 1 ;
80+ int64 player_id = 1 ;
9381 int64 team_id = 2 ;
82+ int32 target_x = 3 ;
83+ int32 target_y = 4 ;
84+ int64 target_compute_center_id = 5 ;
9485}
9586
96- message ProduceGoodsMeg
87+ message SendMsg
9788{
98- GoodsType product_type = 1 ;
99- int64 team_id = 2 ;
100- int32 max_produce_num = 3 ;
89+ int64 player_id = 1 ;
90+ int64 to_player_id = 2 ;
91+ oneof message
92+ {
93+ string text_message = 3 ;
94+ bytes binary_message = 4 ;
95+ }
96+ int64 team_id = 5 ;
10197}
10298
99+
103100message LoadMeg
104101{
105102 int64 team_id = 1 ;
106- int64 character_id = 2 ;
103+ int64 player_id = 2 ;
107104 int32 semiconductor_num = 3 ;
108105 int32 medicine_num = 4 ;
109106 int32 handiwork_num = 5 ;
@@ -115,7 +112,7 @@ message LoadMeg
115112message SellMeg
116113{
117114 int64 team_id = 1 ;
118- int64 character_id = 2 ;
115+ int64 player_id = 2 ;
119116 int32 semiconductor_num = 3 ;
120117 int32 medicine_num = 4 ;
121118 int32 handiwork_num = 5 ;
@@ -125,6 +122,29 @@ message SellMeg
125122}
126123
127124
125+ message CreateCharacterMsg
126+ {
127+ CharacterType character_type = 1 ;
128+ int64 team_id = 2 ;
129+ int32 birthpoint_index = 3 ;
130+ protobuf.GameMode mode = 4 ; // 创建角色时可以指明模式
131+ }
132+
133+ message ProduceGoodsMeg
134+ {
135+ GoodsType product_type = 1 ;
136+ int64 team_id = 2 ;
137+ int32 max_produce_num = 3 ;
138+ }
139+
140+ message RepairFactoryMeg
141+ {
142+ int64 player_id = 1 ;
143+ int64 team_id = 2 ;
144+ }
145+
146+
147+
128148// 智慧大脑相关
129149message StrategicAIRequest
130150{
0 commit comments