Browse Source

Merge pull request #173 from DragonAura/dev

feat(proto):  add treat msg
tags/0.1.0
shangfengh GitHub 2 years ago
parent
commit
6229859a76
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions
  1. +6
    -0
      dependency/proto/Message2Server.proto
  2. +2
    -2
      dependency/proto/Services.proto
  3. +2
    -2
      dependency/proto/py_output.sh

+ 6
- 0
dependency/proto/Message2Server.proto View File

@@ -46,6 +46,12 @@ message IDMsg
int64 player_id = 1; int64 player_id = 1;
} }


message TreatAndRescueMsg
{
int64 player_id = 1;
int64 to_player_id = 2;
}

message SkillMsg message SkillMsg
{ {
int64 player_id = 1; int64 player_id = 1;


+ 2
- 2
dependency/proto/Services.proto View File

@@ -20,8 +20,8 @@ service AvailableService
rpc SendMessage (SendMsg) returns (BoolRes); rpc SendMessage (SendMsg) returns (BoolRes);
// rpc GetMessage (IDMsg) returns (stream MsgRes); // rpc GetMessage (IDMsg) returns (stream MsgRes);
rpc StartLearning (IDMsg) returns (BoolRes); // 开始修理机器 rpc StartLearning (IDMsg) returns (BoolRes); // 开始修理机器
rpc StartRescueMate (IDMsg) returns (BoolRes); // 开始救人
rpc StartTreatMate (IDMsg) returns (BoolRes);
rpc StartRescueMate (TreatAndRescueMsg) returns (BoolRes); // 开始救人
rpc StartTreatMate (TreatAndRescueMsg) returns (BoolRes);
rpc Attack (AttackMsg) returns (BoolRes); // 攻击 rpc Attack (AttackMsg) returns (BoolRes); // 攻击
rpc Graduate (IDMsg) returns (BoolRes); // 相当于逃跑 rpc Graduate (IDMsg) returns (BoolRes); // 相当于逃跑
rpc OpenDoor (IDMsg) returns (BoolRes); // 开门 rpc OpenDoor (IDMsg) returns (BoolRes); // 开门


+ 2
- 2
dependency/proto/py_output.sh View File

@@ -3,5 +3,5 @@ python3 -m grpc_tools.protoc -I. --python_out=. --pyi_out=. Message2Clients.prot
python3 -m grpc_tools.protoc -I. --python_out=. --pyi_out=. Message2Server.proto python3 -m grpc_tools.protoc -I. --python_out=. --pyi_out=. Message2Server.proto
python3 -m grpc_tools.protoc -I. --python_out=. --pyi_out=. --grpc_python_out=. Services.proto python3 -m grpc_tools.protoc -I. --python_out=. --pyi_out=. --grpc_python_out=. Services.proto
chmod -R 755 ./ chmod -R 755 ./
mv -f ./*.py ../../PyAPI/proto
mv -f ./*.pyi ../../PyAPI/proto
mv -f ./*.py ../../CAPI/python/proto
mv -f ./*.pyi ../../CAPI/python/proto

Loading…
Cancel
Save