更新最新框架
This commit is contained in:
102
Tools/NetworkProtocol/Outer/GameMessage.proto
Normal file
102
Tools/NetworkProtocol/Outer/GameMessage.proto
Normal file
@@ -0,0 +1,102 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
////////////// ******** 物品信息 *******/////////////
|
||||
|
||||
///请求背包列表
|
||||
message C2Game_GetItemsRequest // ICustomRouteRequest,Game2C_GetItemsResponse,GameRoute
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
///请求背包列表响应
|
||||
message Game2C_GetItemsResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated ItemInfo Items = 1; //物品信息
|
||||
repeated ItemBindInfo Rigs = 2; //钓组信息
|
||||
}
|
||||
|
||||
///请求使用物品
|
||||
message C2Game_UseItemRequest // ICustomRouteRequest,Game2C_UseItemResponse,GameRoute
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
///请求使用物品响应
|
||||
message Game2C_UseItemResponse // ICustomRouteResponse
|
||||
{
|
||||
}
|
||||
|
||||
///物品变化
|
||||
message Game2C_ItemChange // ICustomRouteMessage,GameRoute
|
||||
{
|
||||
int32 Type = 1; //变化类型 0.新增 1,更新 -1删除
|
||||
repeated ItemInfo Items = 2; //物品信息
|
||||
repeated int64 Removes = 3; //移除物品(移除时有)
|
||||
}
|
||||
|
||||
////////////// ******** 钓组 *******/////////////
|
||||
|
||||
///请求安装或取下配件
|
||||
message C2Game_RigChangeRequest // ICustomRouteRequest,Game2C_RigChangeResponse,GameRoute
|
||||
{
|
||||
int64 RodId = 1;//杆子id
|
||||
int64 RigId = 2;//变更的配件
|
||||
bool IsAdd = 3;//是否添加
|
||||
}
|
||||
|
||||
///请求安装配件响应
|
||||
message Game2C_RigChangeResponse // ICustomRouteResponse
|
||||
{
|
||||
ItemBindInfo Rigs = 1; //变化钓组信息
|
||||
}
|
||||
|
||||
|
||||
////////////// ******** 鱼护 *******/////////////
|
||||
|
||||
///请求鱼护列表
|
||||
message C2Game_GetFishsRequest // ICustomRouteRequest,Game2C_GetFishsResponse,GameRoute
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
///请求鱼护列表响应
|
||||
message Game2C_GetFishsResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated FishInfo Fishs = 1;
|
||||
}
|
||||
|
||||
///鱼护变化
|
||||
message Game2C_FishChange // ICustomRouteMessage,GameRoute
|
||||
{
|
||||
int32 Type = 1; //变化类型 0.新增 1,更新 -1删除
|
||||
repeated FishInfo Fishs = 2; //物品信息
|
||||
repeated int64 Removes = 3; //移除物品(移除时有)
|
||||
}
|
||||
|
||||
///请求出售
|
||||
message C2Game_SellFishRequest // ICustomRouteRequest,Game2C_SellFishResponse,GameRoute
|
||||
{
|
||||
repeated int64 Ids = 1; //出售id
|
||||
}
|
||||
|
||||
///请求出售响应
|
||||
message Game2C_SellFishResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated AwardInfo Awards = 1; //奖励
|
||||
}
|
||||
|
||||
|
||||
////////////// ******** 商店 *******/////////////
|
||||
|
||||
///请求购买
|
||||
message C2Game_BuyRequest // ICustomRouteRequest,Game2C_GetFishsResponse,GameRoute
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
///请求购买响应
|
||||
message Game2C_BuyResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated AwardInfo Awards = 1; //奖励
|
||||
}
|
||||
Reference in New Issue
Block a user