syntax = "proto3"; option go_package = "common/proto/sc/sc_pb"; import "sc_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_MOVE = 0; // 移动 ACTION_ID_ATTACK = 1; // 攻击 } 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 { int32 UID = 1; sint32 X = 2; sint32 Y = 3; } message S2C_Position { repeated PositionInfo Info = 1; }