119 lines
2.8 KiB
Protocol Buffer
119 lines
2.8 KiB
Protocol Buffer
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; //钓组信息
|
|
repeated int64 Slots = 3; //快速使用插槽
|
|
}
|
|
|
|
///请求使用物品
|
|
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 ItemId = 1;//主物体id
|
|
int64 RigId = 2;//变更的配件
|
|
int64 OldRigId = 3;//换下的配件
|
|
bool IsAdd = 4;//是否添加
|
|
}
|
|
|
|
///请求安装配件响应
|
|
message Game2C_RigChangeResponse // ICustomRouteResponse
|
|
{
|
|
ItemBindInfo Rigs = 1; //变化钓组信息
|
|
}
|
|
|
|
|
|
////////////// ******** 快速使用插槽 *******/////////////
|
|
///请求设置快速使用
|
|
message C2Game_SetSlotRequest // ICustomRouteRequest,Game2C_SetSlotResponse,GameRoute
|
|
{
|
|
int32 Index = 1;//插槽位置
|
|
int64 Id = 2;//快速使用物品
|
|
}
|
|
|
|
///请求设置快速使用响应
|
|
message Game2C_SetSlotResponse // ICustomRouteResponse
|
|
{
|
|
repeated int64 Slots = 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; //奖励
|
|
} |