Files
public/Proto/SocketServer/sources/action.proto

37 lines
841 B
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
syntax = "proto3";
option go_package = "git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb";
import "ss_common.proto";
// MESSAGE_ID_ENTER_INSTANCE
message C2S_EnterInstance {
int32 InstanceID = 1;
}
message S2C_EnterInstance {
PositionInfo Info = 1;
}
// MESSAGE_ID_ACTION
enum ActionID {
ACTION_ID_INVALID = 0;
ACTION_ID_MOVE = 1; // 移动
ACTION_ID_ATTACK = 2; // 攻击
}
message C2S_Action {
uint32 Sequence = 1; // 指令序号
int64 Timestamp = 2; // 时间戳(毫秒)
ActionID Action = 3; // 指令ID
sint32 DirX = 4; // 移动-X方向×100 缩放)
sint32 DirY = 5; // 移动-Y方向×100 缩放)
int32 SkillID = 6; // 攻击-技能ID
}
// MESSAGE_ID_POSITION
message PositionInfo {
int64 USN = 1;
sint32 X = 2;
sint32 Y = 3;
}
message S2C_Position {
repeated PositionInfo Info = 1;
}