重导协议
This commit is contained in:
@@ -58,14 +58,15 @@ namespace NBF
|
||||
|
||||
#region 消息收发
|
||||
|
||||
public static FTask<IResponse> Call(IRequest request, long routeId = 0)
|
||||
public static FTask<IResponse> Call<T>(T request, long routeId = 0) where T : IRequest
|
||||
{
|
||||
// var response = await Session.Call(request, routeId);
|
||||
// response.DispatchMessage();
|
||||
return Session.Call(request, routeId);;
|
||||
return Session.Call(request, routeId);
|
||||
;
|
||||
}
|
||||
|
||||
public static void Send(IMessage message, uint rpcId = 0, long routeId = 0)
|
||||
public static void Send<T>(T message, uint rpcId = 0, long routeId = 0) where T : IMessage
|
||||
{
|
||||
Session.Send(message, rpcId, routeId);
|
||||
}
|
||||
|
||||
@@ -1,376 +0,0 @@
|
||||
using ProtoBuf;
|
||||
using System;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Fantasy;
|
||||
using Fantasy.Network.Interface;
|
||||
using Fantasy.Serialize;
|
||||
#pragma warning disable CS8618
|
||||
|
||||
namespace Fantasy
|
||||
{
|
||||
/// <summary>
|
||||
/// 角色基础信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class RoleBaseInfo : AMessage
|
||||
{
|
||||
public static RoleBaseInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<RoleBaseInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
NickName = default;
|
||||
Head = default;
|
||||
Country = default;
|
||||
Level = default;
|
||||
Exp = default;
|
||||
VipInfo = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<RoleBaseInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public string NickName { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public string Head { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public string Country { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public int Level { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public int Exp { get; set; }
|
||||
[ProtoMember(6)]
|
||||
public VipInfo VipInfo { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class KeyValueInt64 : AMessage
|
||||
{
|
||||
public static KeyValueInt64 Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<KeyValueInt64>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Key = default;
|
||||
Value = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<KeyValueInt64>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public int Key { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Value { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 角色信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class RoleInfo : AMessage
|
||||
{
|
||||
public static RoleInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<RoleInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
BaseInfo = default;
|
||||
RoleId = default;
|
||||
Items.Clear();
|
||||
ItemBinds.Clear();
|
||||
Fishs.Clear();
|
||||
Activities.Clear();
|
||||
Currency.Clear();
|
||||
Slots.Clear();
|
||||
Skills.Clear();
|
||||
MapId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<RoleInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public RoleBaseInfo BaseInfo { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long RoleId { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public List<ItemInfo> Items = new List<ItemInfo>();
|
||||
[ProtoMember(4)]
|
||||
public List<ItemBindInfo> ItemBinds = new List<ItemBindInfo>();
|
||||
[ProtoMember(5)]
|
||||
public List<FishInfo> Fishs = new List<FishInfo>();
|
||||
[ProtoMember(6)]
|
||||
public List<ActivityInfo> Activities = new List<ActivityInfo>();
|
||||
[ProtoMember(7)]
|
||||
public List<KeyValueInt64> Currency = new List<KeyValueInt64>();
|
||||
[ProtoMember(8)]
|
||||
public List<KeyValueInt64> Slots = new List<KeyValueInt64>();
|
||||
[ProtoMember(9)]
|
||||
public List<SkillInfo> Skills = new List<SkillInfo>();
|
||||
[ProtoMember(10)]
|
||||
public int MapId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 角色信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class RoleSimpleInfo : AMessage
|
||||
{
|
||||
public static RoleSimpleInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<RoleSimpleInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
RoleId = default;
|
||||
NickName = default;
|
||||
Head = default;
|
||||
Country = default;
|
||||
Level = default;
|
||||
Vip = default;
|
||||
MapId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<RoleSimpleInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public long RoleId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public string NickName { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public string Head { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public string Country { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public int Level { get; set; }
|
||||
[ProtoMember(6)]
|
||||
public int Vip { get; set; }
|
||||
[ProtoMember(7)]
|
||||
public int MapId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// VIP信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class VipInfo : AMessage
|
||||
{
|
||||
public static VipInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<VipInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Level = default;
|
||||
OpenTime = default;
|
||||
ExpirationTime = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<VipInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public int Level { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long OpenTime { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public long ExpirationTime { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 奖励信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class AwardInfo : AMessage
|
||||
{
|
||||
public static AwardInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<AwardInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ConfigId = default;
|
||||
Count = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<AwardInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public long ConfigId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 玩家当前使用钓组信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class ItemBindInfo : AMessage
|
||||
{
|
||||
public static ItemBindInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<ItemBindInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Item = default;
|
||||
BindItems.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<ItemBindInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public long Item { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public List<long> BindItems = new List<long>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 物品信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class ItemInfo : AMessage
|
||||
{
|
||||
public static ItemInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<ItemInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ConfigId = default;
|
||||
Id = default;
|
||||
Count = default;
|
||||
ExpirationTime = default;
|
||||
GetTime = default;
|
||||
Abrasion = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<ItemInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public uint ConfigId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public int Count { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public long ExpirationTime { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public long GetTime { get; set; }
|
||||
[ProtoMember(6)]
|
||||
public int Abrasion { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 商店物品信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class ShopItemInfo : AMessage
|
||||
{
|
||||
public static ShopItemInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<ShopItemInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ConfigId = default;
|
||||
Price = default;
|
||||
Currency = default;
|
||||
Sort = default;
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<ShopItemInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public uint ConfigId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint Price { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public uint Currency { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public uint Sort { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public uint Tag { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// fish信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class FishInfo : AMessage
|
||||
{
|
||||
public static FishInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<FishInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ConfigId = default;
|
||||
Id = default;
|
||||
Weight = default;
|
||||
GetTime = default;
|
||||
ExpirationTime = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<FishInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public uint ConfigId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public int Weight { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public long GetTime { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public long ExpirationTime { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class ActivityInfo : AMessage
|
||||
{
|
||||
public static ActivityInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<ActivityInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
StartTime = default;
|
||||
EndTime = default;
|
||||
Data.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<ActivityInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long StartTime { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public long EndTime { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public List<KeyValueInt64> Data = new List<KeyValueInt64>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 技能情况
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class SkillInfo : AMessage
|
||||
{
|
||||
public static SkillInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<SkillInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ConfigId = default;
|
||||
Level = default;
|
||||
Exp = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<SkillInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public uint ConfigId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public int Level { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public int Exp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ead605724212fe740a92355b63de497b
|
||||
@@ -1,559 +0,0 @@
|
||||
using ProtoBuf;
|
||||
using System;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Fantasy;
|
||||
using Fantasy.Network.Interface;
|
||||
using Fantasy.Serialize;
|
||||
#pragma warning disable CS8618
|
||||
|
||||
namespace Fantasy
|
||||
{
|
||||
/// <summary>
|
||||
/// /////////// ******** 物品信息 *******/////////////
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// 请求背包列表
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Game_GetItemsRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Game_GetItemsRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Game_GetItemsRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Game_GetItemsRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Game2C_GetItemsResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Game_GetItemsRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求背包列表响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_GetItemsResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Game2C_GetItemsResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_GetItemsResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Items.Clear();
|
||||
Rigs.Clear();
|
||||
Slots.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_GetItemsResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_GetItemsResponse; }
|
||||
[ProtoMember(1)]
|
||||
public List<ItemInfo> Items = new List<ItemInfo>();
|
||||
[ProtoMember(2)]
|
||||
public List<ItemBindInfo> Rigs = new List<ItemBindInfo>();
|
||||
[ProtoMember(3)]
|
||||
public List<long> Slots = new List<long>();
|
||||
[ProtoMember(4)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求使用物品
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Game_UseItemRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Game_UseItemRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Game_UseItemRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ItemId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Game_UseItemRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Game2C_UseItemResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Game_UseItemRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public long ItemId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求使用物品响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_UseItemResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Game2C_UseItemResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_UseItemResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_UseItemResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_UseItemResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 物品变化
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_ItemChange : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Game2C_ItemChange Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_ItemChange>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Type = default;
|
||||
Items.Clear();
|
||||
Removes.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_ItemChange>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_ItemChange; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public int Type { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public List<ItemInfo> Items = new List<ItemInfo>();
|
||||
[ProtoMember(3)]
|
||||
public List<long> Removes = new List<long>();
|
||||
}
|
||||
/// <summary>
|
||||
/// /////////// ******** 钓组 *******/////////////
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// 请求安装或取下配件
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Game_RigChangeRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Game_RigChangeRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Game_RigChangeRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ItemId = default;
|
||||
RigId = default;
|
||||
OldRigId = default;
|
||||
IsAdd = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Game_RigChangeRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Game2C_RigChangeResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Game_RigChangeRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public long ItemId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long RigId { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public long OldRigId { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public bool IsAdd { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求安装配件响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_RigChangeResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Game2C_RigChangeResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_RigChangeResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Rigs = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_RigChangeResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_RigChangeResponse; }
|
||||
[ProtoMember(1)]
|
||||
public ItemBindInfo Rigs { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// /////////// ******** 快速使用插槽 *******/////////////
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// 请求设置快速使用
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Game_SetSlotRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Game_SetSlotRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Game_SetSlotRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Index = default;
|
||||
Id = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Game_SetSlotRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Game2C_SetSlotResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Game_SetSlotRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public int Index { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求设置快速使用响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_SetSlotResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Game2C_SetSlotResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_SetSlotResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Slots.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_SetSlotResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_SetSlotResponse; }
|
||||
[ProtoMember(1)]
|
||||
public List<long> Slots = new List<long>();
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// /////////// ******** 鱼护 *******/////////////
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// 请求鱼护列表
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Game_GetFishsRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Game_GetFishsRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Game_GetFishsRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Game_GetFishsRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Game2C_GetFishsResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Game_GetFishsRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求鱼护列表响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_GetFishsResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Game2C_GetFishsResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_GetFishsResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Fishs.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_GetFishsResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_GetFishsResponse; }
|
||||
[ProtoMember(1)]
|
||||
public List<FishInfo> Fishs = new List<FishInfo>();
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 鱼护变化
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_FishChange : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Game2C_FishChange Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_FishChange>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Type = default;
|
||||
Fishs.Clear();
|
||||
Removes.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_FishChange>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_FishChange; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public int Type { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public List<FishInfo> Fishs = new List<FishInfo>();
|
||||
[ProtoMember(3)]
|
||||
public List<long> Removes = new List<long>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求出售
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Game_SellFishRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Game_SellFishRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Game_SellFishRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Ids.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Game_SellFishRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Game2C_SellFishResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Game_SellFishRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public List<long> Ids = new List<long>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求出售响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_SellFishResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Game2C_SellFishResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_SellFishResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Awards.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_SellFishResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_SellFishResponse; }
|
||||
[ProtoMember(1)]
|
||||
public List<AwardInfo> Awards = new List<AwardInfo>();
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// /////////// ******** 商店 *******/////////////
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// 请求商店商品列表
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Game_GetShopItemsRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Game_GetShopItemsRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Game_GetShopItemsRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Shop = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Game_GetShopItemsRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Game2C_GetShopItemsResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Game_GetShopItemsRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public uint Shop { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求商店商品列表响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_GetShopItemsResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Game2C_GetShopItemsResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_GetShopItemsResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Items.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_GetShopItemsResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_GetShopItemsResponse; }
|
||||
[ProtoMember(1)]
|
||||
public List<ShopItemInfo> Items = new List<ShopItemInfo>();
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求购买
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Game_BuyRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Game_BuyRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Game_BuyRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
BuyId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Game_BuyRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Game2C_GetFishsResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Game_BuyRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public uint BuyId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求购买响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_BuyResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Game2C_BuyResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_BuyResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_BuyResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_BuyResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 活动奖励推送
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_RewardNotify : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Game2C_RewardNotify Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_RewardNotify>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Awards.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_RewardNotify>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_RewardNotify; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public List<AwardInfo> Awards = new List<AwardInfo>();
|
||||
}
|
||||
/// <summary>
|
||||
/// /////////// ******** GM *******/////////////
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// 请求执行GM
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Game_GMRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Game_GMRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Game_GMRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Cmd = default;
|
||||
Args = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Game_GMRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Game2C_GMResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Game_GMRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public string Cmd { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public string Args { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 执行GM返回
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Game2C_GMResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Game2C_GMResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Game2C_GMResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Game2C_GMResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Game2C_GMResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ee6be5dd9300f414b96c696a3f0acfb8
|
||||
@@ -1,194 +0,0 @@
|
||||
using ProtoBuf;
|
||||
using System;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Fantasy;
|
||||
using Fantasy.Network.Interface;
|
||||
using Fantasy.Serialize;
|
||||
#pragma warning disable CS8618
|
||||
|
||||
namespace Fantasy
|
||||
{
|
||||
/// <summary>
|
||||
/// 请求创建房间
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Map_CreateRoomRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Map_CreateRoomRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Map_CreateRoomRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
MapId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Map_CreateRoomRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Map2C_CreateRoomResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Map_CreateRoomRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public int MapId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求创建房间成功
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Map2C_CreateRoomResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Map2C_CreateRoomResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_CreateRoomResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
RoomCode = default;
|
||||
Units.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_CreateRoomResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_CreateRoomResponse; }
|
||||
[ProtoMember(1)]
|
||||
public string RoomCode { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public List<MapUnitInfo> Units = new List<MapUnitInfo>();
|
||||
[ProtoMember(3)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求网关离开房间(离开房间,但是不离开地图)
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2G_ExitRoomRequest : AMessage, IRequest
|
||||
{
|
||||
public static C2G_ExitRoomRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2G_ExitRoomRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
RoomCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2G_ExitRoomRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public G2C_ExitRoomResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2G_ExitRoomRequest; }
|
||||
[ProtoMember(1)]
|
||||
public string RoomCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求网关进入离开响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class G2C_ExitRoomResponse : AMessage, IResponse
|
||||
{
|
||||
public static G2C_ExitRoomResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<G2C_ExitRoomResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
RoomCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<G2C_ExitRoomResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.G2C_ExitRoomResponse; }
|
||||
[ProtoMember(1)]
|
||||
public string RoomCode { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求网关进入地图
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2G_EnterMapRequest : AMessage, IRequest
|
||||
{
|
||||
public static C2G_EnterMapRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2G_EnterMapRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
RoomCode = default;
|
||||
MapId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2G_EnterMapRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public G2C_EnterMapResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2G_EnterMapRequest; }
|
||||
[ProtoMember(1)]
|
||||
public string RoomCode { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public int MapId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求网关进入房间响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class G2C_EnterMapResponse : AMessage, IResponse
|
||||
{
|
||||
public static G2C_EnterMapResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<G2C_EnterMapResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
MapId = default;
|
||||
RoomCode = default;
|
||||
Units.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<G2C_EnterMapResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.G2C_EnterMapResponse; }
|
||||
[ProtoMember(1)]
|
||||
public int MapId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public string RoomCode { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public List<MapUnitInfo> Units = new List<MapUnitInfo>();
|
||||
[ProtoMember(4)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 通知客户端切换地图
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Map2C_ChangeMap : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Map2C_ChangeMap Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_ChangeMap>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
MapId = default;
|
||||
Node = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_ChangeMap>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_ChangeMap; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public int MapId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public int Node { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d6085f4eaaf2809499f2c29d8ef32df7
|
||||
@@ -1,175 +0,0 @@
|
||||
using ProtoBuf;
|
||||
using System;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Fantasy;
|
||||
using Fantasy.Network.Interface;
|
||||
using Fantasy.Serialize;
|
||||
#pragma warning disable CS8618
|
||||
|
||||
namespace Fantasy
|
||||
{
|
||||
[ProtoContract]
|
||||
public partial class Vector3Info : AMessage
|
||||
{
|
||||
public static Vector3Info Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Vector3Info>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
x = default;
|
||||
y = default;
|
||||
z = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Vector3Info>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public float x { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public float y { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public float z { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class Vector2Info : AMessage
|
||||
{
|
||||
public static Vector2Info Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Vector2Info>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
x = default;
|
||||
y = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Vector2Info>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public float x { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public float y { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class QuaternionInfo : AMessage
|
||||
{
|
||||
public static QuaternionInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<QuaternionInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
x = default;
|
||||
y = default;
|
||||
z = default;
|
||||
w = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<QuaternionInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public float x { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public float y { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public float z { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public float w { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 玩家当前使用钓组信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class GearInfo : AMessage
|
||||
{
|
||||
public static GearInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<GearInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Item = default;
|
||||
Binds.Clear();
|
||||
Position = default;
|
||||
Rotation = default;
|
||||
Propertys.Clear();
|
||||
InUse = default;
|
||||
InHand = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<GearInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public ItemInfo Item { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public List<ItemInfo> Binds = new List<ItemInfo>();
|
||||
[ProtoMember(3)]
|
||||
public Vector3Info Position { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public Vector3Info Rotation { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
|
||||
[ProtoMember(6)]
|
||||
public bool InUse { get; set; }
|
||||
[ProtoMember(7)]
|
||||
public bool InHand { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class UnitStateInfo : AMessage
|
||||
{
|
||||
public static UnitStateInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<UnitStateInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
State = default;
|
||||
Propertys.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<UnitStateInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public int State { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class MapUnitInfo : AMessage
|
||||
{
|
||||
public static MapUnitInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<MapUnitInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
RoleInfo = default;
|
||||
Position = default;
|
||||
Rotation = default;
|
||||
State = default;
|
||||
Gears.Clear();
|
||||
Propertys.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<MapUnitInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public RoleSimpleInfo RoleInfo { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public Vector3Info Position { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public Vector3Info Rotation { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public UnitStateInfo State { get; set; }
|
||||
[ProtoMember(6)]
|
||||
public List<GearInfo> Gears = new List<GearInfo>();
|
||||
[ProtoMember(7)]
|
||||
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8db9d8408db6ab64aa80d82c2de1e2a1
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,85 +1,89 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
namespace Fantasy
|
||||
{
|
||||
public static partial class OuterOpcode
|
||||
{
|
||||
public const uint C2Game_GetItemsRequest = 2281711377;
|
||||
public const uint Game2C_GetItemsResponse = 2415929105;
|
||||
public const uint C2Game_UseItemRequest = 2281711378;
|
||||
public const uint Game2C_UseItemResponse = 2415929106;
|
||||
public const uint Game2C_ItemChange = 2147493649;
|
||||
public const uint C2Game_RigChangeRequest = 2281711379;
|
||||
public const uint Game2C_RigChangeResponse = 2415929107;
|
||||
public const uint C2Game_SetSlotRequest = 2281711380;
|
||||
public const uint Game2C_SetSlotResponse = 2415929108;
|
||||
public const uint C2Game_GetFishsRequest = 2281711381;
|
||||
public const uint Game2C_GetFishsResponse = 2415929109;
|
||||
public const uint Game2C_FishChange = 2147493650;
|
||||
public const uint C2Game_SellFishRequest = 2281711382;
|
||||
public const uint Game2C_SellFishResponse = 2415929110;
|
||||
public const uint C2Game_GetShopItemsRequest = 2281711383;
|
||||
public const uint Game2C_GetShopItemsResponse = 2415929111;
|
||||
public const uint C2Game_BuyRequest = 2281711384;
|
||||
public const uint Game2C_BuyResponse = 2415929112;
|
||||
public const uint Game2C_RewardNotify = 2147493651;
|
||||
public const uint C2Game_GMRequest = 2281711385;
|
||||
public const uint Game2C_GMResponse = 2415929113;
|
||||
public const uint C2Map_CreateRoomRequest = 2281711386;
|
||||
public const uint Map2C_CreateRoomResponse = 2415929114;
|
||||
public const uint C2G_ExitRoomRequest = 268445457;
|
||||
public const uint G2C_ExitRoomResponse = 402663185;
|
||||
public const uint C2G_EnterMapRequest = 268445458;
|
||||
public const uint G2C_EnterMapResponse = 402663186;
|
||||
public const uint Map2C_ChangeMap = 2147493652;
|
||||
public const uint C2A_LoginRequest = 268445459;
|
||||
public const uint A2C_LoginResponse = 402663187;
|
||||
public const uint C2G_LoginRequest = 268445460;
|
||||
public const uint G2C_LoginResponse = 402663188;
|
||||
public const uint G2C_RepeatLogin = 134227729;
|
||||
public const uint C2Game_GetRoleInfoRequest = 2281711387;
|
||||
public const uint Game2C_GetRoleInfoResponse = 2415929115;
|
||||
public const uint Map2C_RoleEnterRoomNotify = 2147493653;
|
||||
public const uint Map2C_RoleExitRoomNotify = 2147493654;
|
||||
public const uint C2Map_TakeItemRequest = 2281711388;
|
||||
public const uint Map2C_TakeItemResponse = 2415929116;
|
||||
public const uint C2Map_RolePropertyChange = 2147493655;
|
||||
public const uint Map2C_RoleStateNotify = 2147493656;
|
||||
public const uint Map2C_RoleGearChangeNotify = 2147493657;
|
||||
public const uint Map2C_RolePropertyChangeNotify = 2147493658;
|
||||
public const uint C2Map_Move = 2147493659;
|
||||
public const uint C2Map_Look = 2147493660;
|
||||
public const uint Map2C_MoveNotify = 2147493661;
|
||||
public const uint Map2C_LookeNotify = 2147493662;
|
||||
public const uint C2S_GetConversationsRequest = 2281711389;
|
||||
public const uint S2C_GetConversationsResponse = 2415929117;
|
||||
public const uint C2S_SendMailRequest = 2281711390;
|
||||
public const uint S2C_SendMailResponse = 2415929118;
|
||||
public const uint C2S_DeleteMailRequest = 2281711391;
|
||||
public const uint S2C_DeleteMailResponse = 2415929119;
|
||||
public const uint S2C_HaveMail = 2147493663;
|
||||
public const uint S2C_MailState = 2147493664;
|
||||
public const uint C2S_CreateChannelRequest = 2281711392;
|
||||
public const uint S2C_CreateChannelResponse = 2415929120;
|
||||
public const uint C2S_JoinChannelRequest = 2281711393;
|
||||
public const uint S2C_JoinChannelResponse = 2415929121;
|
||||
public const uint C2S_SendMessageRequest = 2281711394;
|
||||
public const uint S2C_SendMessageResponse = 2415929122;
|
||||
public const uint S2C_Message = 2147493665;
|
||||
public const uint C2S_CreateClubRequest = 2281711395;
|
||||
public const uint S2C_CreateClubResponse = 2415929123;
|
||||
public const uint C2S_GetClubInfoRequest = 2281711396;
|
||||
public const uint S2C_GetClubInfoResponse = 2415929124;
|
||||
public const uint C2S_GetMemberListRequest = 2281711397;
|
||||
public const uint S2C_GetMemberListResponse = 2415929125;
|
||||
public const uint C2S_GetClubListRequest = 2281711398;
|
||||
public const uint S2C_GetClubListResponse = 2415929126;
|
||||
public const uint C2S_JoinClubRequest = 2281711399;
|
||||
public const uint S2C_JoinClubResponse = 2415929127;
|
||||
public const uint C2S_LeaveClubRequest = 2281711400;
|
||||
public const uint S2C_LeaveClubResponse = 2415929128;
|
||||
public const uint C2S_DissolveClubRequest = 2281711401;
|
||||
public const uint S2C_DissolveClubResponse = 2415929129;
|
||||
public const uint C2S_DisposeJoinRequest = 2281711402;
|
||||
public const uint S2C_DisposeJoinResponse = 2415929130;
|
||||
public const uint S2C_ClubChange = 2147493666;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 本代码有编辑器生成,请不要再这里进行编辑。
|
||||
/// </summary>
|
||||
public static partial class OuterOpcode
|
||||
{
|
||||
public const uint C2Game_GetItemsRequest = 2281711377;
|
||||
public const uint Game2C_GetItemsResponse = 2415929105;
|
||||
public const uint C2Game_UseItemRequest = 2281711378;
|
||||
public const uint Game2C_UseItemResponse = 2415929106;
|
||||
public const uint Game2C_ItemChange = 2147493649;
|
||||
public const uint C2Game_RigChangeRequest = 2281711379;
|
||||
public const uint Game2C_RigChangeResponse = 2415929107;
|
||||
public const uint C2Game_SetSlotRequest = 2281711380;
|
||||
public const uint Game2C_SetSlotResponse = 2415929108;
|
||||
public const uint C2Game_GetFishsRequest = 2281711381;
|
||||
public const uint Game2C_GetFishsResponse = 2415929109;
|
||||
public const uint Game2C_FishChange = 2147493650;
|
||||
public const uint C2Game_SellFishRequest = 2281711382;
|
||||
public const uint Game2C_SellFishResponse = 2415929110;
|
||||
public const uint C2Game_GetShopItemsRequest = 2281711383;
|
||||
public const uint Game2C_GetShopItemsResponse = 2415929111;
|
||||
public const uint C2Game_BuyRequest = 2281711384;
|
||||
public const uint Game2C_BuyResponse = 2415929112;
|
||||
public const uint Game2C_RewardNotify = 2147493651;
|
||||
public const uint C2Game_GMRequest = 2281711385;
|
||||
public const uint Game2C_GMResponse = 2415929113;
|
||||
public const uint C2Map_CreateRoomRequest = 2281711386;
|
||||
public const uint Map2C_CreateRoomResponse = 2415929114;
|
||||
public const uint C2G_ExitRoomRequest = 268445457;
|
||||
public const uint G2C_ExitRoomResponse = 402663185;
|
||||
public const uint C2G_EnterMapRequest = 268445458;
|
||||
public const uint G2C_EnterMapResponse = 402663186;
|
||||
public const uint Map2C_ChangeMap = 2147493652;
|
||||
public const uint C2A_LoginRequest = 268445459;
|
||||
public const uint A2C_LoginResponse = 402663187;
|
||||
public const uint C2G_LoginRequest = 268445460;
|
||||
public const uint G2C_LoginResponse = 402663188;
|
||||
public const uint G2C_RepeatLogin = 134227729;
|
||||
public const uint C2Game_GetRoleInfoRequest = 2281711387;
|
||||
public const uint Game2C_GetRoleInfoResponse = 2415929115;
|
||||
public const uint Map2C_RoleEnterRoomNotify = 2147493653;
|
||||
public const uint Map2C_RoleExitRoomNotify = 2147493654;
|
||||
public const uint C2Map_TakeItemRequest = 2281711388;
|
||||
public const uint Map2C_TakeItemResponse = 2415929116;
|
||||
public const uint C2Map_RolePropertyChange = 2147493655;
|
||||
public const uint Map2C_RoleStateNotify = 2147493656;
|
||||
public const uint Map2C_RoleGearChangeNotify = 2147493657;
|
||||
public const uint Map2C_RolePropertyChangeNotify = 2147493658;
|
||||
public const uint C2Map_Move = 2147493659;
|
||||
public const uint C2Map_Look = 2147493660;
|
||||
public const uint Map2C_MoveNotify = 2147493661;
|
||||
public const uint Map2C_LookeNotify = 2147493662;
|
||||
public const uint C2S_GetConversationsRequest = 2281711389;
|
||||
public const uint S2C_GetConversationsResponse = 2415929117;
|
||||
public const uint C2S_SendMailRequest = 2281711390;
|
||||
public const uint S2C_SendMailResponse = 2415929118;
|
||||
public const uint C2S_DeleteMailRequest = 2281711391;
|
||||
public const uint S2C_DeleteMailResponse = 2415929119;
|
||||
public const uint S2C_HaveMail = 2147493663;
|
||||
public const uint S2C_MailState = 2147493664;
|
||||
public const uint C2S_CreateChannelRequest = 2281711392;
|
||||
public const uint S2C_CreateChannelResponse = 2415929120;
|
||||
public const uint C2S_JoinChannelRequest = 2281711393;
|
||||
public const uint S2C_JoinChannelResponse = 2415929121;
|
||||
public const uint C2S_SendMessageRequest = 2281711394;
|
||||
public const uint S2C_SendMessageResponse = 2415929122;
|
||||
public const uint S2C_Message = 2147493665;
|
||||
public const uint C2S_CreateClubRequest = 2281711395;
|
||||
public const uint S2C_CreateClubResponse = 2415929123;
|
||||
public const uint C2S_GetClubInfoRequest = 2281711396;
|
||||
public const uint S2C_GetClubInfoResponse = 2415929124;
|
||||
public const uint C2S_GetMemberListRequest = 2281711397;
|
||||
public const uint S2C_GetMemberListResponse = 2415929125;
|
||||
public const uint C2S_GetClubListRequest = 2281711398;
|
||||
public const uint S2C_GetClubListResponse = 2415929126;
|
||||
public const uint C2S_JoinClubRequest = 2281711399;
|
||||
public const uint S2C_JoinClubResponse = 2415929127;
|
||||
public const uint C2S_LeaveClubRequest = 2281711400;
|
||||
public const uint S2C_LeaveClubResponse = 2415929128;
|
||||
public const uint C2S_DissolveClubRequest = 2281711401;
|
||||
public const uint S2C_DissolveClubResponse = 2415929129;
|
||||
public const uint C2S_DisposeJoinRequest = 2281711402;
|
||||
public const uint S2C_DisposeJoinResponse = 2415929130;
|
||||
public const uint S2C_ClubChange = 2147493666;
|
||||
}
|
||||
}
|
||||
@@ -1,18 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
namespace Fantasy
|
||||
{
|
||||
// Roaming协议定义(需要定义10000以上、因为10000以内的框架预留)
|
||||
public static class RoamingType
|
||||
{
|
||||
public const int MapRoamingType = 10001;
|
||||
public const int ChatRoamingType = 10002;
|
||||
public static IEnumerable<int> RoamingTypes
|
||||
{
|
||||
get
|
||||
{
|
||||
yield return 10001;
|
||||
yield return 10002;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 本代码有编辑器生成,请不要再这里进行编辑。
|
||||
/// Roaming协议定义(需要定义10000以上、因为10000以内的框架预留)
|
||||
/// </summary>
|
||||
public static partial class RoamingType
|
||||
{
|
||||
public const int MapRoamingType = 10001; // Map
|
||||
public const int ChatRoamingType = 10002; // Chat
|
||||
|
||||
public static IEnumerable<int> RoamingTypes
|
||||
{
|
||||
get
|
||||
{
|
||||
yield return MapRoamingType;
|
||||
yield return ChatRoamingType;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,337 +0,0 @@
|
||||
using ProtoBuf;
|
||||
using System;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Fantasy;
|
||||
using Fantasy.Network.Interface;
|
||||
using Fantasy.Serialize;
|
||||
#pragma warning disable CS8618
|
||||
|
||||
namespace Fantasy
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户进入地图
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Map2C_RoleEnterRoomNotify : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Map2C_RoleEnterRoomNotify Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_RoleEnterRoomNotify>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Info = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_RoleEnterRoomNotify>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_RoleEnterRoomNotify; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public MapUnitInfo Info { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 用户离开地图
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Map2C_RoleExitRoomNotify : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Map2C_RoleExitRoomNotify Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_RoleExitRoomNotify>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_RoleExitRoomNotify>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_RoleExitRoomNotify; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求拿起物品
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Map_TakeItemRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Map_TakeItemRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Map_TakeItemRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
Task = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Map_TakeItemRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Map2C_TakeItemResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Map_TakeItemRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public int Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public bool Task { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求拿起物品响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Map2C_TakeItemResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Map2C_TakeItemResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_TakeItemResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Id = default;
|
||||
Task = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_TakeItemResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_TakeItemResponse; }
|
||||
[ProtoMember(1)]
|
||||
public int Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public bool Task { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class C2Map_RolePropertyChange : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static C2Map_RolePropertyChange Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Map_RolePropertyChange>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Propertys.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Map_RolePropertyChange>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2Map_RolePropertyChange; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 玩家状态变化同步
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Map2C_RoleStateNotify : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Map2C_RoleStateNotify Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_RoleStateNotify>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
State = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_RoleStateNotify>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_RoleStateNotify; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public UnitStateInfo State { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 玩家钓组变化
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Map2C_RoleGearChangeNotify : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Map2C_RoleGearChangeNotify Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_RoleGearChangeNotify>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
Gears.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_RoleGearChangeNotify>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_RoleGearChangeNotify; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public List<GearInfo> Gears = new List<GearInfo>();
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class Map2C_RolePropertyChangeNotify : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Map2C_RolePropertyChangeNotify Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_RolePropertyChangeNotify>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
Propertys.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_RolePropertyChangeNotify>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_RolePropertyChangeNotify; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class C2Map_Move : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static C2Map_Move Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Map_Move>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Position = default;
|
||||
Rotation = default;
|
||||
Direction = default;
|
||||
IsStop = default;
|
||||
IsRun = default;
|
||||
Timestamp = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Map_Move>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2Map_Move; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public Vector3Info Position { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public Vector3Info Rotation { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public Vector3Info Direction { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public bool IsStop { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public bool IsRun { get; set; }
|
||||
[ProtoMember(6)]
|
||||
public long Timestamp { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class C2Map_Look : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static C2Map_Look Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Map_Look>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Rotation = default;
|
||||
Timestamp = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Map_Look>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2Map_Look; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public Vector3Info Rotation { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Timestamp { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 玩家移动推送
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Map2C_MoveNotify : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Map2C_MoveNotify Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_MoveNotify>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
Position = default;
|
||||
Rotation = default;
|
||||
Direction = default;
|
||||
IsStop = default;
|
||||
IsRun = default;
|
||||
Timestamp = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_MoveNotify>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_MoveNotify; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public Vector3Info Position { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public Vector3Info Rotation { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public Vector3Info Direction { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public bool IsStop { get; set; }
|
||||
[ProtoMember(6)]
|
||||
public bool IsRun { get; set; }
|
||||
[ProtoMember(7)]
|
||||
public long Timestamp { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 玩家旋转推送
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Map2C_LookeNotify : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Map2C_LookeNotify Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_LookeNotify>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
Rotation = default;
|
||||
Timestamp = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_LookeNotify>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_LookeNotify; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.GameRoute;
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public Vector3Info Rotation { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public long Timestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eabb062bcc48ca545a804daefad2c16c
|
||||
@@ -1,10 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
namespace Fantasy
|
||||
{
|
||||
// Route协议定义(需要定义1000以上、因为1000以内的框架预留)
|
||||
public static class RouteType
|
||||
{
|
||||
public const int GateRoute = 1001; // Gate
|
||||
public const int SocialRoute = 1002; // Social
|
||||
public const int GameRoute = 1003; // Game
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 本代码有编辑器生成,请不要再这里进行编辑。
|
||||
/// Route协议定义(需要定义1000以上、因为1000以内的框架预留)
|
||||
/// </summary>
|
||||
public static partial class RouteType
|
||||
{
|
||||
public const int GateRoute = 1001; // Gate
|
||||
public const int SocialRoute = 1002; // Social
|
||||
public const int GameRoute = 1003; // Game
|
||||
|
||||
public static IEnumerable<int> RoamingTypes
|
||||
{
|
||||
get
|
||||
{
|
||||
yield return GateRoute;
|
||||
yield return SocialRoute;
|
||||
yield return GameRoute;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,948 +0,0 @@
|
||||
using ProtoBuf;
|
||||
using System;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Fantasy;
|
||||
using Fantasy.Network.Interface;
|
||||
using Fantasy.Serialize;
|
||||
#pragma warning disable CS8618
|
||||
|
||||
namespace Fantasy
|
||||
{
|
||||
/// <summary>
|
||||
/// /////////// ******** 私聊/邮件 *******/////////////
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// 会话信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class ConversationInfo : AMessage
|
||||
{
|
||||
public static ConversationInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<ConversationInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
RoleInfo = default;
|
||||
List.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<ConversationInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public RoleSimpleInfo RoleInfo { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public List<MailInfo> List = new List<MailInfo>();
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class MailInfo : AMessage
|
||||
{
|
||||
public static MailInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<MailInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
Sender = default;
|
||||
Content = default;
|
||||
CreateTime = default;
|
||||
MailType = default;
|
||||
MailState = default;
|
||||
Items.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<MailInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Sender { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public string Content { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public long CreateTime { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public int MailType { get; set; }
|
||||
[ProtoMember(6)]
|
||||
public int MailState { get; set; }
|
||||
[ProtoMember(7)]
|
||||
public List<AwardInfo> Items = new List<AwardInfo>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求会话列表
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_GetConversationsRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_GetConversationsRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_GetConversationsRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_GetConversationsRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_GetConversationsResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_GetConversationsRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求会话列表响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_GetConversationsResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_GetConversationsResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_GetConversationsResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
List.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_GetConversationsResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_GetConversationsResponse; }
|
||||
[ProtoMember(1)]
|
||||
public List<ConversationInfo> List = new List<ConversationInfo>();
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送邮件消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_SendMailRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_SendMailRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_SendMailRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Target = default;
|
||||
Content = default;
|
||||
Items.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_SendMailRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_SendMailResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_SendMailRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public long Target { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public string Content { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public List<AwardInfo> Items = new List<AwardInfo>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送邮件消息响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_SendMailResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_SendMailResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_SendMailResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_SendMailResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_SendMailResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送删除会话消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_DeleteMailRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_DeleteMailRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_DeleteMailRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_DeleteMailRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_DeleteMailResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_DeleteMailRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送删除会话消息响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_DeleteMailResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_DeleteMailResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_DeleteMailResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Id = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_DeleteMailResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_DeleteMailResponse; }
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 新邮件推送
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_HaveMail : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static S2C_HaveMail Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_HaveMail>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Mail = default;
|
||||
Key = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_HaveMail>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_HaveMail; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public MailInfo Mail { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public string Key { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class S2C_MailState : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static S2C_MailState Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_MailState>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
MailState = default;
|
||||
MailId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_MailState>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_MailState; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public int MailState { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long MailId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// /////////// ******** 频道聊天 *******/////////////
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class ChatUserInfo : AMessage
|
||||
{
|
||||
public static ChatUserInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<ChatUserInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
Name = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<ChatUserInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Name { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class ChatMessageInfo : AMessage
|
||||
{
|
||||
public static ChatMessageInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<ChatMessageInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Type = default;
|
||||
Source = default;
|
||||
Trigger = default;
|
||||
Content = default;
|
||||
SendTime = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<ChatMessageInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public int Type { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Source { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public ChatUserInfo Trigger { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public string Content { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public long SendTime { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建频道
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_CreateChannelRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_CreateChannelRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_CreateChannelRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Name = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_CreateChannelRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_CreateChannelResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_CreateChannelRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建频道响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_CreateChannelResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_CreateChannelResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_CreateChannelResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
ChannelId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_CreateChannelResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_CreateChannelResponse; }
|
||||
[ProtoMember(1)]
|
||||
public long ChannelId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求进入频道
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_JoinChannelRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_JoinChannelRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_JoinChannelRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Target = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_JoinChannelRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_JoinChannelResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_JoinChannelRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public long Target { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 进入频道响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_JoinChannelResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_JoinChannelResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_JoinChannelResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_JoinChannelResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_JoinChannelResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_SendMessageRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_SendMessageRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_SendMessageRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Message = default;
|
||||
Target = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_SendMessageRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_SendMessageResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_SendMessageRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public string Message { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long Target { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送消息响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_SendMessageResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_SendMessageResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_SendMessageResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_SendMessageResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_SendMessageResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 推送消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_Message : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static S2C_Message Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_Message>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Msg = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_Message>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_Message; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public ChatMessageInfo Msg { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// /////////// ******** 工会 *******/////////////
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class ClubInfo : AMessage
|
||||
{
|
||||
public static ClubInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<ClubInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Id = default;
|
||||
Name = default;
|
||||
CreateTime = default;
|
||||
OwnerId = default;
|
||||
MemberCount = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<ClubInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public long Id { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public string Name { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public long CreateTime { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public long OwnerId { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public int MemberCount { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求创建工会
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_CreateClubRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_CreateClubRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_CreateClubRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Name = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_CreateClubRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_CreateClubResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_CreateClubRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建工会响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_CreateClubResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_CreateClubResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_CreateClubResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Club = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_CreateClubResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_CreateClubResponse; }
|
||||
[ProtoMember(1)]
|
||||
public ClubInfo Club { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求工会信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_GetClubInfoRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_GetClubInfoRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_GetClubInfoRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ClubId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_GetClubInfoRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_GetClubInfoResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_GetClubInfoRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public long ClubId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 响应工会信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_GetClubInfoResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_GetClubInfoResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_GetClubInfoResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Name = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_GetClubInfoResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_GetClubInfoResponse; }
|
||||
[ProtoMember(1)]
|
||||
public string Name { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求工会成员列表
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_GetMemberListRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_GetMemberListRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_GetMemberListRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ClubId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_GetMemberListRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_GetMemberListResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_GetMemberListRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public long ClubId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 响应工会成员列表
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_GetMemberListResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_GetMemberListResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_GetMemberListResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Members.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_GetMemberListResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_GetMemberListResponse; }
|
||||
[ProtoMember(1)]
|
||||
public List<RoleSimpleInfo> Members = new List<RoleSimpleInfo>();
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取工会列表请求
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_GetClubListRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_GetClubListRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_GetClubListRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_GetClubListRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_GetClubListResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_GetClubListRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取工会列表响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_GetClubListResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_GetClubListResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_GetClubListResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Clubs.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_GetClubListResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_GetClubListResponse; }
|
||||
[ProtoMember(1)]
|
||||
public List<ClubInfo> Clubs = new List<ClubInfo>();
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求加入工会
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_JoinClubRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_JoinClubRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_JoinClubRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ClubId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_JoinClubRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_JoinClubResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_JoinClubRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public long ClubId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 响应加入工会
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_JoinClubResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_JoinClubResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_JoinClubResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
Club = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_JoinClubResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_JoinClubResponse; }
|
||||
[ProtoMember(1)]
|
||||
public ClubInfo Club { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求退出工会
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_LeaveClubRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_LeaveClubRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_LeaveClubRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ClubId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_LeaveClubRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_LeaveClubResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_LeaveClubRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public long ClubId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 响应退出工会
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_LeaveClubResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_LeaveClubResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_LeaveClubResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
ClubId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_LeaveClubResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_LeaveClubResponse; }
|
||||
[ProtoMember(1)]
|
||||
public long ClubId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求解散工会
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_DissolveClubRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_DissolveClubRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_DissolveClubRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ClubId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_DissolveClubRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_DissolveClubResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_DissolveClubRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public long ClubId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 响应解散工会
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_DissolveClubResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_DissolveClubResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_DissolveClubResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
ClubId = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_DissolveClubResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_DissolveClubResponse; }
|
||||
[ProtoMember(1)]
|
||||
public long ClubId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求操作申请
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2S_DisposeJoinRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2S_DisposeJoinRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2S_DisposeJoinRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ClubId = default;
|
||||
ApplicantId = default;
|
||||
Agree = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2S_DisposeJoinRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public S2C_DisposeJoinResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2S_DisposeJoinRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public long ClubId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long ApplicantId { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public int Agree { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 响应操作申请
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_DisposeJoinResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static S2C_DisposeJoinResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_DisposeJoinResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
ClubId = default;
|
||||
ApplicantId = default;
|
||||
Agree = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_DisposeJoinResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_DisposeJoinResponse; }
|
||||
[ProtoMember(1)]
|
||||
public long ClubId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long ApplicantId { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public int Agree { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 推送消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2C_ClubChange : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static S2C_ClubChange Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2C_ClubChange>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Club = default;
|
||||
ChangeType = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2C_ClubChange>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.S2C_ClubChange; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public ClubInfo Club { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public int ChangeType { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 08db1b30625cd6a43864fb852261885f
|
||||
Reference in New Issue
Block a user