This repository has been archived on 2026-01-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Game/Public/Proto/ServerInternal/sources/service_scene.proto

45 lines
1.1 KiB
Protocol Buffer
Raw 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 = "common/proto/ss/grpc_pb";
import "ss_common.proto";
service Scene {
rpc Enter(EnterReq) returns (EnterResp) {}
rpc Leave(LeaveReq) returns (LeaveResp) {}
rpc Action(stream ActionReq) returns (ActionResp) {}
}
message EnterReq {
int32 UID = 1; // 用户ID
int64 GatewaySID = 2; // 网关服务ID
int32 InstanceID = 3; // 副本ID
}
message EnterResp {
int64 SceneSID = 1; // 场景服务ID
int64 UniqueNo = 2; // 副本唯一编号
int32 MessageID = 3; // 发送给客户端的消息ID
bytes Payload = 4; // 消息负载
}
message LeaveReq {
int32 UID = 1; // 用户ID
int64 GatewaySID = 2; // 网关服务ID
int32 InstanceID = 3; // 副本ID
int64 UniqueNo = 4; // 副本唯一编号
}
message LeaveResp {
}
message ActionReq {
int64 UniqueNo = 1; // 副本唯一编号
int32 UID = 2; // 用户ID
int32 Action = 3; // 指令ID
sint32 DirX = 4; // 移动-X方向×1000 缩放)
sint32 DirY = 5; // 移动-Y方向×1000 缩放)
int32 SkillID = 6; // 攻击-技能ID
}
message ActionResp {
}