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 {
  string USN = 1;
  sint32 X = 2;
  sint32 Y = 3;
}
message S2C_Position {
  repeated PositionInfo Info = 1;
}