角色控制和房间进入推送
This commit is contained in:
@@ -42,7 +42,7 @@ message G2C_ExitRoomResponse // IResponse
|
||||
message C2Map_EnterMapRequest // ICustomRouteRequest,Map2C_EnterMapResponse,MapRoute
|
||||
{
|
||||
int32 MapId = 1;//地图id
|
||||
int64 RoomId = 2;//房间id,如果联机则有
|
||||
string RoomId = 2;//房间id,如果联机则有
|
||||
}
|
||||
|
||||
message Map2C_EnterMapResponse // ICustomRouteResponse
|
||||
|
||||
@@ -47,6 +47,6 @@ message C2Game_GetRoleInfoRequest // ICustomRouteRequest,Game2C_GetRoleInfoRespo
|
||||
|
||||
message Game2C_GetRoleInfoResponse // ICustomRouteResponse
|
||||
{
|
||||
RoleInfo RoleInfo = 1; //账号信息
|
||||
int64 RoomId = 2; //所在房间
|
||||
RoleInfo RoleInfo = 1; //账号信息
|
||||
string RoomCode = 2; //所在房间
|
||||
}
|
||||
@@ -2,36 +2,15 @@ syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
|
||||
message C2Map_EnterRoomRequest // ICustomRouteRequest,Map2C_EnterRoomResponse,MapRoute
|
||||
{
|
||||
int32 MapId = 1;//房间id
|
||||
string Password = 2;//进入密码
|
||||
}
|
||||
|
||||
message Map2C_EnterRoomResponse // ICustomRouteResponse
|
||||
{
|
||||
int32 MapId = 1;//地图id
|
||||
int64 RoomId = 2;//房间id
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
message C2Map_Move // ICustomRouteMessage,MapRoute
|
||||
{
|
||||
MapUnitPositionInfo Location = 1;
|
||||
bool IsStop = 2;
|
||||
}
|
||||
|
||||
|
||||
///用户进入地图
|
||||
message Map2C_RoleEnterMapNotify // ICustomRouteMessage,MapRoute
|
||||
message Map2C_RoleEnterRoomNotify // ICustomRouteMessage,MapRoute
|
||||
{
|
||||
MapUnitInfo Info = 1;
|
||||
}
|
||||
|
||||
///用户离开地图
|
||||
message Map2C_RoleExitMapNotify // ICustomRouteMessage,MapRoute
|
||||
message Map2C_RoleExitRoomNotify // ICustomRouteMessage,MapRoute
|
||||
{
|
||||
int64 Id = 1;//离开人员
|
||||
}
|
||||
@@ -57,9 +36,39 @@ message Map2C_RoleGearChangeNotify // ICustomRouteMessage,MapRoute
|
||||
GearInfo Gears = 2; //钓组数据
|
||||
}
|
||||
|
||||
///玩家位置变化
|
||||
message Map2C_MoveNotify
|
||||
//************** 移动 旋转 **********************
|
||||
// 角色移动
|
||||
message C2Map_Move // ICustomRouteMessage,MapRoute
|
||||
{
|
||||
int64 Id = 1;
|
||||
MapUnitPositionInfo Location = 2;
|
||||
Vector3Info Position = 1; //当前位置
|
||||
Vector3Info Rotation = 2; //角色方向
|
||||
Vector3Info Direction = 3; // 移动方向
|
||||
bool IsStop = 4; // 是否是停止移动
|
||||
int64 Timestamp = 5; // 时间点
|
||||
}
|
||||
|
||||
// 角色朝向变化
|
||||
message C2Map_Look // ICustomRouteMessage,MapRoute
|
||||
{
|
||||
Vector3Info Rotation = 1; //角色方向
|
||||
int64 Timestamp = 2; // 时间点
|
||||
}
|
||||
|
||||
///玩家移动推送
|
||||
message Map2C_MoveNotify // ICustomRouteMessage,MapRoute
|
||||
{
|
||||
int64 Id = 1; // id
|
||||
Vector3Info Position = 2; //当前位置
|
||||
Vector3Info Rotation = 3; //角色方向
|
||||
Vector3Info Direction = 4; // 移动方向
|
||||
bool IsStop = 5; // 是否停止移动
|
||||
int64 Timestamp = 6; // 时间点
|
||||
}
|
||||
|
||||
///玩家旋转推送
|
||||
message Map2C_LookeNotify // ICustomRouteMessage,MapRoute
|
||||
{
|
||||
int64 Id = 1; // id
|
||||
Vector3Info Rotation = 2; //角色方向
|
||||
int64 Timestamp = 3; // 时间点
|
||||
}
|
||||
@@ -4,6 +4,13 @@ message Vector3Info
|
||||
float y = 2;
|
||||
float z = 3;
|
||||
}
|
||||
|
||||
message Vector2Info
|
||||
{
|
||||
float x = 1;
|
||||
float y = 2;
|
||||
}
|
||||
|
||||
message QuaternionInfo
|
||||
{
|
||||
float x = 1;
|
||||
@@ -30,15 +37,11 @@ message MapUnitInfo
|
||||
{
|
||||
int64 Id = 1; //用户id
|
||||
RoleSimpleInfo RoleInfo = 2; //基础信息
|
||||
MapUnitPositionInfo Location = 3; //位置信息
|
||||
UnitStateInfo State = 4; //状态信息
|
||||
GearInfo Gears = 5; //钓组数据
|
||||
UnitFishingInfo FishingInfo = 6; //钓鱼状态信息
|
||||
repeated KeyValueInt32 KV = 7; //属性信息
|
||||
Vector3Info Position = 3; //当前位置
|
||||
Vector3Info Rotation = 4; //角色方向
|
||||
UnitStateInfo State = 5; //状态信息
|
||||
GearInfo Gears = 6; //钓组数据
|
||||
UnitFishingInfo FishingInfo = 7; //钓鱼状态信息
|
||||
repeated KeyValueInt32 KV = 8; //属性信息
|
||||
}
|
||||
|
||||
message MapUnitPositionInfo
|
||||
{
|
||||
Vector3Info Position = 1;
|
||||
QuaternionInfo Rotation = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user