Revert "框架更新"

This reverts commit a2cb248512.
This commit is contained in:
2025-10-29 22:41:19 +08:00
parent a2cb248512
commit 9572cf1955
429 changed files with 38758 additions and 7183 deletions

View File

@@ -1,27 +1,30 @@
using System.Runtime.Loader;
using Fantasy.Generated;
using System.Reflection;
using System.Runtime.Loader;
namespace Fantasy
namespace NB
{
public static class AssemblyHelper
{
private const string HotfixDll = "Hotfix";
private static AssemblyLoadContext? _assemblyLoadContext = null;
public static void Initialize()
public static System.Reflection.Assembly[] Assemblies
{
LoadEntityAssembly();
LoadHotfixAssembly();
get
{
var assemblies = new System.Reflection.Assembly[2];
assemblies[0] = LoadEntityAssembly();
assemblies[1] = LoadHotfixAssembly();
return assemblies;
}
}
private static void LoadEntityAssembly()
private static System.Reflection.Assembly LoadEntityAssembly()
{
// .NET 运行时采用延迟加载机制,如果代码中不使用程序集的类型,程序集不会被加载
// 执行一下,触发运行时强制加载从而自动注册到框架中
Entity_AssemblyMarker.EnsureLoaded();
return typeof(AssemblyHelper).Assembly;
}
public static System.Reflection.Assembly LoadHotfixAssembly()
private static System.Reflection.Assembly LoadHotfixAssembly()
{
if (_assemblyLoadContext != null)
{
@@ -30,20 +33,9 @@ namespace Fantasy
}
_assemblyLoadContext = new AssemblyLoadContext(HotfixDll, true);
var dllBytes = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, $"{HotfixDll}.dll"));
var pdbBytes = File.ReadAllBytes(Path.Combine(AppContext.BaseDirectory, $"{HotfixDll}.pdb"));
var assembly = _assemblyLoadContext.LoadFromStream(new MemoryStream(dllBytes), new MemoryStream(pdbBytes));
// 强制触发 ModuleInitializer 执行
// AssemblyLoadContext.LoadFromStream 只加载程序集到内存,不会自动触发 ModuleInitializer
// 必须访问程序集中的类型才能触发初始化,这里通过反射调用生成的 AssemblyMarker
// 注意此方法仅用于热重载场景JITNative AOT 不支持动态加载
var markerType = assembly.GetType("Fantasy.Generated.Hotfix_AssemblyMarker");
if (markerType != null)
{
var method = markerType.GetMethod("EnsureLoaded");
method?.Invoke(null, null);
}
return assembly;
var dllBytes = File.ReadAllBytes(Path.Combine(Environment.CurrentDirectory, $"{HotfixDll}.dll"));
var pdbBytes = File.ReadAllBytes(Path.Combine(Environment.CurrentDirectory, $"{HotfixDll}.pdb"));
return _assemblyLoadContext.LoadFromStream(new MemoryStream(dllBytes), new MemoryStream(pdbBytes));
}
}
}

View File

@@ -9,33 +9,31 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DefineConstants>TRACE;FANTASY_NET</DefineConstants>
<DefineConstants>TRACE;FANTASY_NET</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DefineConstants>TRACE;FANTASY_NET</DefineConstants>
<DefineConstants>TRACE;FANTASY_NET</DefineConstants>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Fantasy\Fantasy.Net\Fantasy.Net\Fantasy.Net.csproj"/>
<ProjectReference Include="..\Fantasy\Fantasy.Net\Fantasy.SourceGenerator\Fantasy.SourceGenerator.csproj" OutputItemType="Analyzer"
ReferenceOutputAssembly="false"/>
<ProjectReference Include="..\Fantasy\Fantasy.Packages\Fantasy.ConfigTable\Net\Fantasy.ConfigTable.csproj"/>
<ProjectReference Include="..\ThirdParty\ThirdParty.csproj"/>
<ProjectReference Include="..\Fantasy\Fantasy.Net\Fantasy.Net\Fantasy.Net.csproj" />
<ProjectReference Include="..\Fantasy\Fantasy.Packages\Fantasy.ConfigTable\Net\Fantasy.ConfigTable.csproj" />
<ProjectReference Include="..\ThirdParty\ThirdParty.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.12.1"/>
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.12.1"/>
<PackageReference Include="ToolGood.Words" Version="3.1.0.2"/>
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.12.1" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.12.1" />
<PackageReference Include="ToolGood.Words" Version="3.1.0.2" />
</ItemGroup>
<ItemGroup>
<Folder Include="Game\Shop\"/>
<Folder Include="Generate\ConfigTable\Entity\"/>
<Folder Include="Generate\ConfigTable\Partial\"/>
<Folder Include="Social\Entity\"/>
<Folder Include="Social\Mail\"/>
<Folder Include="Game\Shop\" />
<Folder Include="Generate\ConfigTable\Entity\" />
<Folder Include="Generate\ConfigTable\Partial\" />
<Folder Include="Social\Entity\" />
<Folder Include="Social\Mail\" />
</ItemGroup>
</Project>

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class BaitConfig : ASerialize, IConfigTable
public sealed partial class BaitConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class BasicConfig : ASerialize, IConfigTable
public sealed partial class BasicConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class BobberConfig : ASerialize, IConfigTable
public sealed partial class BobberConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class FeederConfig : ASerialize, IConfigTable
public sealed partial class FeederConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class FishConfig : ASerialize, IConfigTable
public sealed partial class FishConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class HookConfig : ASerialize, IConfigTable
public sealed partial class HookConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class InitConfig : ASerialize, IConfigTable
public sealed partial class InitConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class ItemConfig : ASerialize, IConfigTable
public sealed partial class ItemConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class LineConfig : ASerialize, IConfigTable
public sealed partial class LineConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class LureConfig : ASerialize, IConfigTable
public sealed partial class LureConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class ReelConfig : ASerialize, IConfigTable
public sealed partial class ReelConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -0,0 +1,85 @@
using System;
using ProtoBuf;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using Fantasy.Serialize;
using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class RingConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public string Model { get; set; } // 模型
[ProtoMember(3)]
public string Icon { get; set; } // 图标
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<RingConfig> Context => ConfigTableHelper.Table<RingConfig>();
public static RingConfig Get(uint key)
{
return Context.Get(key);
}
public static RingConfig Get(Predicate<RingConfig> match)
{
return Context.Get(match);
}
public static RingConfig Fist()
{
return Context.Fist();
}
public static RingConfig Last()
{
return Context.Last();
}
public static RingConfig Fist(Predicate<RingConfig> match)
{
return Context.Fist(match);
}
public static RingConfig Last(Predicate<RingConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<RingConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<RingConfig> GetList()
{
return Context.GetList();
}
public static List<RingConfig> GetList(Predicate<RingConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<RingConfig>(arr);
}
#endregion
}
}

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class RodConfig : ASerialize, IConfigTable
public sealed partial class RodConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -11,7 +11,7 @@ using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class RodRingConfig : ASerialize, IConfigTable
public sealed partial class RodRingConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -0,0 +1,89 @@
using System;
using ProtoBuf;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Collections.Concurrent;
using Fantasy.Serialize;
using Fantasy.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class WeightConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public string Model { get; set; } // 模型
[ProtoMember(3)]
public string Icon { get; set; } // 图标
[ProtoMember(4)]
public uint Type { get; set; } // 类型
[ProtoMember(5)]
public uint Weight { get; set; } // 重量(克)
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<WeightConfig> Context => ConfigTableHelper.Table<WeightConfig>();
public static WeightConfig Get(uint key)
{
return Context.Get(key);
}
public static WeightConfig Get(Predicate<WeightConfig> match)
{
return Context.Get(match);
}
public static WeightConfig Fist()
{
return Context.Fist();
}
public static WeightConfig Last()
{
return Context.Last();
}
public static WeightConfig Fist(Predicate<WeightConfig> match)
{
return Context.Fist(match);
}
public static WeightConfig Last(Predicate<WeightConfig> match)
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
}
public static int Count(Func<WeightConfig, bool> predicate)
{
return Context.Count(predicate);
}
public static List<WeightConfig> GetList()
{
return Context.GetList();
}
public static List<WeightConfig> GetList(Predicate<WeightConfig> match)
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<WeightConfig>(arr);
}
#endregion
}
}

View File

@@ -1,6 +1,5 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
using Fantasy;
@@ -17,12 +16,12 @@ using Fantasy.Serialize;
#pragma warning disable CS8618
namespace Fantasy
{
{
/// <summary>
/// 角色基础信息
/// </summary>
[ProtoContract]
public partial class RoleBaseInfo : AMessage
public partial class RoleBaseInfo : AMessage, IProto
{
public static RoleBaseInfo Create(Scene scene)
{
@@ -54,7 +53,7 @@ namespace Fantasy
public VipInfo VipInfo { get; set; }
}
[ProtoContract]
public partial class KeyValueInt64 : AMessage
public partial class KeyValueInt64 : AMessage, IProto
{
public static KeyValueInt64 Create(Scene scene)
{
@@ -77,7 +76,7 @@ namespace Fantasy
/// 角色信息
/// </summary>
[ProtoContract]
public partial class RoleInfo : AMessage
public partial class RoleInfo : AMessage, IProto
{
public static RoleInfo Create(Scene scene)
{
@@ -124,7 +123,7 @@ namespace Fantasy
/// 角色信息
/// </summary>
[ProtoContract]
public partial class RoleSimpleInfo : AMessage
public partial class RoleSimpleInfo : AMessage, IProto
{
public static RoleSimpleInfo Create(Scene scene)
{
@@ -162,7 +161,7 @@ namespace Fantasy
/// VIP信息
/// </summary>
[ProtoContract]
public partial class VipInfo : AMessage
public partial class VipInfo : AMessage, IProto
{
public static VipInfo Create(Scene scene)
{
@@ -188,7 +187,7 @@ namespace Fantasy
/// 奖励信息
/// </summary>
[ProtoContract]
public partial class AwardInfo : AMessage
public partial class AwardInfo : AMessage, IProto
{
public static AwardInfo Create(Scene scene)
{
@@ -211,7 +210,7 @@ namespace Fantasy
/// 玩家当前使用钓组信息
/// </summary>
[ProtoContract]
public partial class ItemBindInfo : AMessage
public partial class ItemBindInfo : AMessage, IProto
{
public static ItemBindInfo Create(Scene scene)
{
@@ -234,7 +233,7 @@ namespace Fantasy
/// 物品信息
/// </summary>
[ProtoContract]
public partial class ItemInfo : AMessage
public partial class ItemInfo : AMessage, IProto
{
public static ItemInfo Create(Scene scene)
{
@@ -269,7 +268,7 @@ namespace Fantasy
/// fish信息
/// </summary>
[ProtoContract]
public partial class FishInfo : AMessage
public partial class FishInfo : AMessage, IProto
{
public static FishInfo Create(Scene scene)
{
@@ -298,7 +297,7 @@ namespace Fantasy
public long ExpirationTime { get; set; }
}
[ProtoContract]
public partial class ActivityInfo : AMessage
public partial class ActivityInfo : AMessage, IProto
{
public static ActivityInfo Create(Scene scene)
{
@@ -327,7 +326,7 @@ namespace Fantasy
/// 技能情况
/// </summary>
[ProtoContract]
public partial class SkillInfo : AMessage
public partial class SkillInfo : AMessage, IProto
{
public static SkillInfo Create(Scene scene)
{
@@ -350,4 +349,3 @@ namespace Fantasy
public int Exp { get; set; }
}
}

View File

@@ -1,6 +1,5 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
using Fantasy;
@@ -17,7 +16,7 @@ using Fantasy.Serialize;
#pragma warning disable CS8618
namespace Fantasy
{
{
/// <summary>
/// /////////// ******** 物品信息 *******/////////////
/// </summary>
@@ -25,7 +24,7 @@ namespace Fantasy
/// 请求背包列表
/// </summary>
[ProtoContract]
public partial class C2Game_GetItemsRequest : AMessage, ICustomRouteRequest
public partial class C2Game_GetItemsRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_GetItemsRequest Create(Scene scene)
{
@@ -47,7 +46,7 @@ namespace Fantasy
/// 请求背包列表响应
/// </summary>
[ProtoContract]
public partial class Game2C_GetItemsResponse : AMessage, ICustomRouteResponse
public partial class Game2C_GetItemsResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_GetItemsResponse Create(Scene scene)
{
@@ -74,7 +73,7 @@ namespace Fantasy
/// 请求使用物品
/// </summary>
[ProtoContract]
public partial class C2Game_UseItemRequest : AMessage, ICustomRouteRequest
public partial class C2Game_UseItemRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_UseItemRequest Create(Scene scene)
{
@@ -96,7 +95,7 @@ namespace Fantasy
/// 请求使用物品响应
/// </summary>
[ProtoContract]
public partial class Game2C_UseItemResponse : AMessage, ICustomRouteResponse
public partial class Game2C_UseItemResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_UseItemResponse Create(Scene scene)
{
@@ -117,7 +116,7 @@ namespace Fantasy
/// 物品变化
/// </summary>
[ProtoContract]
public partial class Game2C_ItemChange : AMessage, ICustomRouteMessage
public partial class Game2C_ItemChange : AMessage, ICustomRouteMessage, IProto
{
public static Game2C_ItemChange Create(Scene scene)
{
@@ -149,7 +148,7 @@ namespace Fantasy
/// 请求安装或取下配件
/// </summary>
[ProtoContract]
public partial class C2Game_RigChangeRequest : AMessage, ICustomRouteRequest
public partial class C2Game_RigChangeRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_RigChangeRequest Create(Scene scene)
{
@@ -180,7 +179,7 @@ namespace Fantasy
/// 请求安装配件响应
/// </summary>
[ProtoContract]
public partial class Game2C_RigChangeResponse : AMessage, ICustomRouteResponse
public partial class Game2C_RigChangeResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_RigChangeResponse Create(Scene scene)
{
@@ -207,7 +206,7 @@ namespace Fantasy
/// 请求鱼护列表
/// </summary>
[ProtoContract]
public partial class C2Game_GetFishsRequest : AMessage, ICustomRouteRequest
public partial class C2Game_GetFishsRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_GetFishsRequest Create(Scene scene)
{
@@ -229,7 +228,7 @@ namespace Fantasy
/// 请求鱼护列表响应
/// </summary>
[ProtoContract]
public partial class Game2C_GetFishsResponse : AMessage, ICustomRouteResponse
public partial class Game2C_GetFishsResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_GetFishsResponse Create(Scene scene)
{
@@ -253,7 +252,7 @@ namespace Fantasy
/// 鱼护变化
/// </summary>
[ProtoContract]
public partial class Game2C_FishChange : AMessage, ICustomRouteMessage
public partial class Game2C_FishChange : AMessage, ICustomRouteMessage, IProto
{
public static Game2C_FishChange Create(Scene scene)
{
@@ -282,7 +281,7 @@ namespace Fantasy
/// 请求出售
/// </summary>
[ProtoContract]
public partial class C2Game_SellFishRequest : AMessage, ICustomRouteRequest
public partial class C2Game_SellFishRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_SellFishRequest Create(Scene scene)
{
@@ -307,7 +306,7 @@ namespace Fantasy
/// 请求出售响应
/// </summary>
[ProtoContract]
public partial class Game2C_SellFishResponse : AMessage, ICustomRouteResponse
public partial class Game2C_SellFishResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_SellFishResponse Create(Scene scene)
{
@@ -334,7 +333,7 @@ namespace Fantasy
/// 请求购买
/// </summary>
[ProtoContract]
public partial class C2Game_BuyRequest : AMessage, ICustomRouteRequest
public partial class C2Game_BuyRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_BuyRequest Create(Scene scene)
{
@@ -356,7 +355,7 @@ namespace Fantasy
/// 请求购买响应
/// </summary>
[ProtoContract]
public partial class Game2C_BuyResponse : AMessage, ICustomRouteResponse
public partial class Game2C_BuyResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_BuyResponse Create(Scene scene)
{
@@ -377,4 +376,3 @@ namespace Fantasy
public uint ErrorCode { get; set; }
}
}

View File

@@ -1,6 +1,5 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
using Fantasy;
@@ -17,12 +16,12 @@ using Fantasy.Serialize;
#pragma warning disable CS8618
namespace Fantasy
{
{
/// <summary>
/// 通知游戏服角色进入该游戏服
/// </summary>
[ProtoContract]
public partial class G2Common_EnterRequest : AMessage, IRouteRequest
public partial class G2Common_EnterRequest : AMessage, IRouteRequest, IProto
{
public static G2Common_EnterRequest Create(Scene scene)
{
@@ -48,7 +47,7 @@ namespace Fantasy
public int RouteType { get; set; }
}
[ProtoContract]
public partial class G2Common_EnterResponse : AMessage, IRouteResponse
public partial class G2Common_EnterResponse : AMessage, IRouteResponse, IProto
{
public static G2Common_EnterResponse Create(Scene scene)
{
@@ -72,7 +71,7 @@ namespace Fantasy
public uint ErrorCode { get; set; }
}
[ProtoContract]
public partial class G2Common_ExitRequest : AMessage, IRouteRequest
public partial class G2Common_ExitRequest : AMessage, IRouteRequest, IProto
{
public static G2Common_ExitRequest Create(Scene scene)
{
@@ -95,7 +94,7 @@ namespace Fantasy
public long GateRouteId { get; set; }
}
[ProtoContract]
public partial class Common2G_ExitResponse : AMessage, IRouteResponse
public partial class Common2G_ExitResponse : AMessage, IRouteResponse, IProto
{
public static Common2G_ExitResponse Create(Scene scene)
{
@@ -116,7 +115,7 @@ namespace Fantasy
/// 获取玩家基础信息
/// </summary>
[ProtoContract]
public partial class S2G_GetPlayerBasicInfoRequest : AMessage, IRouteRequest
public partial class S2G_GetPlayerBasicInfoRequest : AMessage, IRouteRequest, IProto
{
public static S2G_GetPlayerBasicInfoRequest Create(Scene scene)
{
@@ -139,7 +138,7 @@ namespace Fantasy
/// 获取玩家基础信息响应
/// </summary>
[ProtoContract]
public partial class G2S_GetPlayerBasicInfoResponse : AMessage, IRouteResponse
public partial class G2S_GetPlayerBasicInfoResponse : AMessage, IRouteResponse, IProto
{
public static G2S_GetPlayerBasicInfoResponse Create(Scene scene)
{
@@ -160,7 +159,7 @@ namespace Fantasy
public uint ErrorCode { get; set; }
}
[ProtoContract]
public partial class S2G_ChatMessage : AMessage, IRouteMessage
public partial class S2G_ChatMessage : AMessage, IRouteMessage, IProto
{
public static S2G_ChatMessage Create(Scene scene)
{
@@ -184,7 +183,7 @@ namespace Fantasy
/// 创建聊天频道
/// </summary>
[ProtoContract]
public partial class Club2Chat_CreateChannel : AMessage, IRouteMessage
public partial class Club2Chat_CreateChannel : AMessage, IRouteMessage, IProto
{
public static Club2Chat_CreateChannel Create(Scene scene)
{
@@ -205,7 +204,7 @@ namespace Fantasy
/// 请求进入房间
/// </summary>
[ProtoContract]
public partial class G2Map_EnterMapRequest : AMessage, IRouteRequest
public partial class G2Map_EnterMapRequest : AMessage, IRouteRequest, IProto
{
public static G2Map_EnterMapRequest Create(Scene scene)
{
@@ -234,7 +233,7 @@ namespace Fantasy
/// 请求进入房间响应
/// </summary>
[ProtoContract]
public partial class Map2G_EnterMapResponse : AMessage, IRouteResponse
public partial class Map2G_EnterMapResponse : AMessage, IRouteResponse, IProto
{
public static Map2G_EnterMapResponse Create(Scene scene)
{
@@ -264,7 +263,7 @@ namespace Fantasy
/// 请求离开房间
/// </summary>
[ProtoContract]
public partial class G2Map_ExitRoomRequest : AMessage, IRouteRequest
public partial class G2Map_ExitRoomRequest : AMessage, IRouteRequest, IProto
{
public static G2Map_ExitRoomRequest Create(Scene scene)
{
@@ -290,7 +289,7 @@ namespace Fantasy
/// 请求离开房间响应
/// </summary>
[ProtoContract]
public partial class Map2G_ExiRoomResponse : AMessage, IRouteResponse
public partial class Map2G_ExiRoomResponse : AMessage, IRouteResponse, IProto
{
public static Map2G_ExiRoomResponse Create(Scene scene)
{
@@ -308,4 +307,3 @@ namespace Fantasy
public uint ErrorCode { get; set; }
}
}

View File

@@ -1,6 +1,5 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
using Fantasy;
@@ -17,12 +16,12 @@ using Fantasy.Serialize;
#pragma warning disable CS8618
namespace Fantasy
{
{
/// <summary>
/// 请求创建房间
/// </summary>
[ProtoContract]
public partial class C2Map_CreateRoomRequest : AMessage, ICustomRouteRequest
public partial class C2Map_CreateRoomRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Map_CreateRoomRequest Create(Scene scene)
{
@@ -47,7 +46,7 @@ namespace Fantasy
/// 请求创建房间成功
/// </summary>
[ProtoContract]
public partial class Map2C_CreateRoomResponse : AMessage, ICustomRouteResponse
public partial class Map2C_CreateRoomResponse : AMessage, ICustomRouteResponse, IProto
{
public static Map2C_CreateRoomResponse Create(Scene scene)
{
@@ -74,7 +73,7 @@ namespace Fantasy
/// 请求网关离开房间(离开房间,但是不离开地图)
/// </summary>
[ProtoContract]
public partial class C2G_ExitRoomRequest : AMessage, IRequest
public partial class C2G_ExitRoomRequest : AMessage, IRequest, IProto
{
public static C2G_ExitRoomRequest Create(Scene scene)
{
@@ -97,7 +96,7 @@ namespace Fantasy
/// 请求网关进入离开响应
/// </summary>
[ProtoContract]
public partial class G2C_ExitRoomResponse : AMessage, IResponse
public partial class G2C_ExitRoomResponse : AMessage, IResponse, IProto
{
public static G2C_ExitRoomResponse Create(Scene scene)
{
@@ -121,7 +120,7 @@ namespace Fantasy
/// 请求网关进入地图
/// </summary>
[ProtoContract]
public partial class C2G_EnterMapRequest : AMessage, IRequest
public partial class C2G_EnterMapRequest : AMessage, IRequest, IProto
{
public static C2G_EnterMapRequest Create(Scene scene)
{
@@ -147,7 +146,7 @@ namespace Fantasy
/// 请求网关进入房间响应
/// </summary>
[ProtoContract]
public partial class G2C_EnterMapResponse : AMessage, IResponse
public partial class G2C_EnterMapResponse : AMessage, IResponse, IProto
{
public static G2C_EnterMapResponse Create(Scene scene)
{
@@ -177,7 +176,7 @@ namespace Fantasy
/// 通知客户端切换地图
/// </summary>
[ProtoContract]
public partial class Map2C_ChangeMap : AMessage, ICustomRouteMessage
public partial class Map2C_ChangeMap : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_ChangeMap Create(Scene scene)
{
@@ -200,4 +199,3 @@ namespace Fantasy
public int Node { get; set; }
}
}

View File

@@ -1,6 +1,5 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
using Fantasy;
@@ -17,9 +16,9 @@ using Fantasy.Serialize;
#pragma warning disable CS8618
namespace Fantasy
{
{
[ProtoContract]
public partial class Vector3Info : AMessage
public partial class Vector3Info : AMessage, IProto
{
public static Vector3Info Create(Scene scene)
{
@@ -42,7 +41,7 @@ namespace Fantasy
public float z { get; set; }
}
[ProtoContract]
public partial class Vector2Info : AMessage
public partial class Vector2Info : AMessage, IProto
{
public static Vector2Info Create(Scene scene)
{
@@ -62,7 +61,7 @@ namespace Fantasy
public float y { get; set; }
}
[ProtoContract]
public partial class QuaternionInfo : AMessage
public partial class QuaternionInfo : AMessage, IProto
{
public static QuaternionInfo Create(Scene scene)
{
@@ -91,7 +90,7 @@ namespace Fantasy
/// 玩家当前使用钓组信息
/// </summary>
[ProtoContract]
public partial class GearInfo : AMessage
public partial class GearInfo : AMessage, IProto
{
public static GearInfo Create(Scene scene)
{
@@ -120,7 +119,7 @@ namespace Fantasy
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
}
[ProtoContract]
public partial class UnitStateInfo : AMessage
public partial class UnitStateInfo : AMessage, IProto
{
public static UnitStateInfo Create(Scene scene)
{
@@ -140,7 +139,7 @@ namespace Fantasy
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
}
[ProtoContract]
public partial class MapUnitInfo : AMessage
public partial class MapUnitInfo : AMessage, IProto
{
public static MapUnitInfo Create(Scene scene)
{
@@ -175,4 +174,3 @@ namespace Fantasy
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
}
}

View File

@@ -1,6 +1,5 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
using Fantasy;
@@ -17,9 +16,9 @@ using Fantasy.Serialize;
#pragma warning disable CS8618
namespace Fantasy
{
{
[ProtoContract]
public partial class C2A_LoginRequest : AMessage, IRequest
public partial class C2A_LoginRequest : AMessage, IRequest, IProto
{
public static C2A_LoginRequest Create(Scene scene)
{
@@ -48,7 +47,7 @@ namespace Fantasy
public int Region { get; set; }
}
[ProtoContract]
public partial class A2C_LoginResponse : AMessage, IResponse
public partial class A2C_LoginResponse : AMessage, IResponse, IProto
{
public static A2C_LoginResponse Create(Scene scene)
{
@@ -72,7 +71,7 @@ namespace Fantasy
/// 客户端登录到Gate服务器
/// </summary>
[ProtoContract]
public partial class C2G_LoginRequest : AMessage, IRequest
public partial class C2G_LoginRequest : AMessage, IRequest, IProto
{
public static C2G_LoginRequest Create(Scene scene)
{
@@ -92,7 +91,7 @@ namespace Fantasy
public string ToKen { get; set; }
}
[ProtoContract]
public partial class G2C_LoginResponse : AMessage, IResponse
public partial class G2C_LoginResponse : AMessage, IResponse, IProto
{
public static G2C_LoginResponse Create(Scene scene)
{
@@ -116,7 +115,7 @@ namespace Fantasy
/// 通知客户端重复登录
/// </summary>
[ProtoContract]
public partial class G2C_RepeatLogin : AMessage, IMessage
public partial class G2C_RepeatLogin : AMessage, IMessage, IProto
{
public static G2C_RepeatLogin Create(Scene scene)
{
@@ -131,7 +130,7 @@ namespace Fantasy
public uint OpCode() { return OuterOpcode.G2C_RepeatLogin; }
}
[ProtoContract]
public partial class C2Game_GetRoleInfoRequest : AMessage, ICustomRouteRequest
public partial class C2Game_GetRoleInfoRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_GetRoleInfoRequest Create(Scene scene)
{
@@ -150,7 +149,7 @@ namespace Fantasy
public int RouteType => Fantasy.RouteType.GameRoute;
}
[ProtoContract]
public partial class Game2C_GetRoleInfoResponse : AMessage, ICustomRouteResponse
public partial class Game2C_GetRoleInfoResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_GetRoleInfoResponse Create(Scene scene)
{
@@ -174,4 +173,3 @@ namespace Fantasy
public uint ErrorCode { get; set; }
}
}

View File

@@ -1,6 +1,5 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
using Fantasy;
@@ -17,12 +16,12 @@ using Fantasy.Serialize;
#pragma warning disable CS8618
namespace Fantasy
{
{
/// <summary>
/// 用户进入地图
/// </summary>
[ProtoContract]
public partial class Map2C_RoleEnterRoomNotify : AMessage, ICustomRouteMessage
public partial class Map2C_RoleEnterRoomNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_RoleEnterRoomNotify Create(Scene scene)
{
@@ -45,7 +44,7 @@ namespace Fantasy
/// 用户离开地图
/// </summary>
[ProtoContract]
public partial class Map2C_RoleExitRoomNotify : AMessage, ICustomRouteMessage
public partial class Map2C_RoleExitRoomNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_RoleExitRoomNotify Create(Scene scene)
{
@@ -65,7 +64,7 @@ namespace Fantasy
public long Id { get; set; }
}
[ProtoContract]
public partial class C2Map_RolePropertyChange : AMessage, ICustomRouteMessage
public partial class C2Map_RolePropertyChange : AMessage, ICustomRouteMessage, IProto
{
public static C2Map_RolePropertyChange Create(Scene scene)
{
@@ -88,7 +87,7 @@ namespace Fantasy
/// 玩家状态变化同步
/// </summary>
[ProtoContract]
public partial class Map2C_RoleStateNotify : AMessage, ICustomRouteMessage
public partial class Map2C_RoleStateNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_RoleStateNotify Create(Scene scene)
{
@@ -114,7 +113,7 @@ namespace Fantasy
/// 玩家钓组变化
/// </summary>
[ProtoContract]
public partial class Map2C_RoleGearChangeNotify : AMessage, ICustomRouteMessage
public partial class Map2C_RoleGearChangeNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_RoleGearChangeNotify Create(Scene scene)
{
@@ -137,7 +136,7 @@ namespace Fantasy
public List<GearInfo> Gears = new List<GearInfo>();
}
[ProtoContract]
public partial class Map2C_RolePropertyChangeNotify : AMessage, ICustomRouteMessage
public partial class Map2C_RolePropertyChangeNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_RolePropertyChangeNotify Create(Scene scene)
{
@@ -160,7 +159,7 @@ namespace Fantasy
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
}
[ProtoContract]
public partial class C2Map_Move : AMessage, ICustomRouteMessage
public partial class C2Map_Move : AMessage, ICustomRouteMessage, IProto
{
public static C2Map_Move Create(Scene scene)
{
@@ -195,7 +194,7 @@ namespace Fantasy
public long Timestamp { get; set; }
}
[ProtoContract]
public partial class C2Map_Look : AMessage, ICustomRouteMessage
public partial class C2Map_Look : AMessage, ICustomRouteMessage, IProto
{
public static C2Map_Look Create(Scene scene)
{
@@ -221,7 +220,7 @@ namespace Fantasy
/// 玩家移动推送
/// </summary>
[ProtoContract]
public partial class Map2C_MoveNotify : AMessage, ICustomRouteMessage
public partial class Map2C_MoveNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_MoveNotify Create(Scene scene)
{
@@ -262,7 +261,7 @@ namespace Fantasy
/// 玩家旋转推送
/// </summary>
[ProtoContract]
public partial class Map2C_LookeNotify : AMessage, ICustomRouteMessage
public partial class Map2C_LookeNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_LookeNotify Create(Scene scene)
{
@@ -288,4 +287,3 @@ namespace Fantasy
public long Timestamp { get; set; }
}
}

View File

@@ -1,6 +1,5 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
using Fantasy;
@@ -17,7 +16,7 @@ using Fantasy.Serialize;
#pragma warning disable CS8618
namespace Fantasy
{
{
/// <summary>
/// /////////// ******** 私聊/邮件 *******/////////////
/// </summary>
@@ -25,7 +24,7 @@ namespace Fantasy
/// 会话信息
/// </summary>
[ProtoContract]
public partial class ConversationInfo : AMessage
public partial class ConversationInfo : AMessage, IProto
{
public static ConversationInfo Create(Scene scene)
{
@@ -45,7 +44,7 @@ namespace Fantasy
public List<MailInfo> List = new List<MailInfo>();
}
[ProtoContract]
public partial class MailInfo : AMessage
public partial class MailInfo : AMessage, IProto
{
public static MailInfo Create(Scene scene)
{
@@ -83,7 +82,7 @@ namespace Fantasy
/// 请求会话列表
/// </summary>
[ProtoContract]
public partial class C2S_GetConversationsRequest : AMessage, ICustomRouteRequest
public partial class C2S_GetConversationsRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_GetConversationsRequest Create(Scene scene)
{
@@ -105,7 +104,7 @@ namespace Fantasy
/// 请求会话列表响应
/// </summary>
[ProtoContract]
public partial class S2C_GetConversationsResponse : AMessage, ICustomRouteResponse
public partial class S2C_GetConversationsResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_GetConversationsResponse Create(Scene scene)
{
@@ -129,7 +128,7 @@ namespace Fantasy
/// 发送邮件消息
/// </summary>
[ProtoContract]
public partial class C2S_SendMailRequest : AMessage, ICustomRouteRequest
public partial class C2S_SendMailRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_SendMailRequest Create(Scene scene)
{
@@ -160,7 +159,7 @@ namespace Fantasy
/// 发送邮件消息响应
/// </summary>
[ProtoContract]
public partial class S2C_SendMailResponse : AMessage, ICustomRouteResponse
public partial class S2C_SendMailResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_SendMailResponse Create(Scene scene)
{
@@ -181,7 +180,7 @@ namespace Fantasy
/// 发送删除会话消息
/// </summary>
[ProtoContract]
public partial class C2S_DeleteMailRequest : AMessage, ICustomRouteRequest
public partial class C2S_DeleteMailRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_DeleteMailRequest Create(Scene scene)
{
@@ -206,7 +205,7 @@ namespace Fantasy
/// 发送删除会话消息响应
/// </summary>
[ProtoContract]
public partial class S2C_DeleteMailResponse : AMessage, ICustomRouteResponse
public partial class S2C_DeleteMailResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_DeleteMailResponse Create(Scene scene)
{
@@ -230,7 +229,7 @@ namespace Fantasy
/// 新邮件推送
/// </summary>
[ProtoContract]
public partial class S2C_HaveMail : AMessage, ICustomRouteMessage
public partial class S2C_HaveMail : AMessage, ICustomRouteMessage, IProto
{
public static S2C_HaveMail Create(Scene scene)
{
@@ -253,7 +252,7 @@ namespace Fantasy
public string Key { get; set; }
}
[ProtoContract]
public partial class S2C_MailState : AMessage, ICustomRouteMessage
public partial class S2C_MailState : AMessage, ICustomRouteMessage, IProto
{
public static S2C_MailState Create(Scene scene)
{
@@ -279,7 +278,7 @@ namespace Fantasy
/// /////////// ******** 频道聊天 *******/////////////
/// </summary>
[ProtoContract]
public partial class ChatUserInfo : AMessage
public partial class ChatUserInfo : AMessage, IProto
{
public static ChatUserInfo Create(Scene scene)
{
@@ -299,7 +298,7 @@ namespace Fantasy
public long Name { get; set; }
}
[ProtoContract]
public partial class ChatMessageInfo : AMessage
public partial class ChatMessageInfo : AMessage, IProto
{
public static ChatMessageInfo Create(Scene scene)
{
@@ -331,7 +330,7 @@ namespace Fantasy
/// 创建频道
/// </summary>
[ProtoContract]
public partial class C2S_CreateChannelRequest : AMessage, ICustomRouteRequest
public partial class C2S_CreateChannelRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_CreateChannelRequest Create(Scene scene)
{
@@ -356,7 +355,7 @@ namespace Fantasy
/// 创建频道响应
/// </summary>
[ProtoContract]
public partial class S2C_CreateChannelResponse : AMessage, ICustomRouteResponse
public partial class S2C_CreateChannelResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_CreateChannelResponse Create(Scene scene)
{
@@ -380,7 +379,7 @@ namespace Fantasy
/// 请求进入频道
/// </summary>
[ProtoContract]
public partial class C2S_JoinChannelRequest : AMessage, ICustomRouteRequest
public partial class C2S_JoinChannelRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_JoinChannelRequest Create(Scene scene)
{
@@ -405,7 +404,7 @@ namespace Fantasy
/// 进入频道响应
/// </summary>
[ProtoContract]
public partial class S2C_JoinChannelResponse : AMessage, ICustomRouteResponse
public partial class S2C_JoinChannelResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_JoinChannelResponse Create(Scene scene)
{
@@ -426,7 +425,7 @@ namespace Fantasy
/// 发送消息
/// </summary>
[ProtoContract]
public partial class C2S_SendMessageRequest : AMessage, ICustomRouteRequest
public partial class C2S_SendMessageRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_SendMessageRequest Create(Scene scene)
{
@@ -454,7 +453,7 @@ namespace Fantasy
/// 发送消息响应
/// </summary>
[ProtoContract]
public partial class S2C_SendMessageResponse : AMessage, ICustomRouteResponse
public partial class S2C_SendMessageResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_SendMessageResponse Create(Scene scene)
{
@@ -475,7 +474,7 @@ namespace Fantasy
/// 推送消息
/// </summary>
[ProtoContract]
public partial class S2C_Message : AMessage, ICustomRouteMessage
public partial class S2C_Message : AMessage, ICustomRouteMessage, IProto
{
public static S2C_Message Create(Scene scene)
{
@@ -498,7 +497,7 @@ namespace Fantasy
/// /////////// ******** 工会 *******/////////////
/// </summary>
[ProtoContract]
public partial class ClubInfo : AMessage
public partial class ClubInfo : AMessage, IProto
{
public static ClubInfo Create(Scene scene)
{
@@ -530,7 +529,7 @@ namespace Fantasy
/// 请求创建工会
/// </summary>
[ProtoContract]
public partial class C2S_CreateClubRequest : AMessage, ICustomRouteRequest
public partial class C2S_CreateClubRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_CreateClubRequest Create(Scene scene)
{
@@ -555,7 +554,7 @@ namespace Fantasy
/// 创建工会响应
/// </summary>
[ProtoContract]
public partial class S2C_CreateClubResponse : AMessage, ICustomRouteResponse
public partial class S2C_CreateClubResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_CreateClubResponse Create(Scene scene)
{
@@ -579,7 +578,7 @@ namespace Fantasy
/// 请求工会信息
/// </summary>
[ProtoContract]
public partial class C2S_GetClubInfoRequest : AMessage, ICustomRouteRequest
public partial class C2S_GetClubInfoRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_GetClubInfoRequest Create(Scene scene)
{
@@ -604,7 +603,7 @@ namespace Fantasy
/// 响应工会信息
/// </summary>
[ProtoContract]
public partial class S2C_GetClubInfoResponse : AMessage, ICustomRouteResponse
public partial class S2C_GetClubInfoResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_GetClubInfoResponse Create(Scene scene)
{
@@ -628,7 +627,7 @@ namespace Fantasy
/// 请求工会成员列表
/// </summary>
[ProtoContract]
public partial class C2S_GetMemberListRequest : AMessage, ICustomRouteRequest
public partial class C2S_GetMemberListRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_GetMemberListRequest Create(Scene scene)
{
@@ -653,7 +652,7 @@ namespace Fantasy
/// 响应工会成员列表
/// </summary>
[ProtoContract]
public partial class S2C_GetMemberListResponse : AMessage, ICustomRouteResponse
public partial class S2C_GetMemberListResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_GetMemberListResponse Create(Scene scene)
{
@@ -677,7 +676,7 @@ namespace Fantasy
/// 获取工会列表请求
/// </summary>
[ProtoContract]
public partial class C2S_GetClubListRequest : AMessage, ICustomRouteRequest
public partial class C2S_GetClubListRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_GetClubListRequest Create(Scene scene)
{
@@ -699,7 +698,7 @@ namespace Fantasy
/// 获取工会列表响应
/// </summary>
[ProtoContract]
public partial class S2C_GetClubListResponse : AMessage, ICustomRouteResponse
public partial class S2C_GetClubListResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_GetClubListResponse Create(Scene scene)
{
@@ -723,7 +722,7 @@ namespace Fantasy
/// 请求加入工会
/// </summary>
[ProtoContract]
public partial class C2S_JoinClubRequest : AMessage, ICustomRouteRequest
public partial class C2S_JoinClubRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_JoinClubRequest Create(Scene scene)
{
@@ -748,7 +747,7 @@ namespace Fantasy
/// 响应加入工会
/// </summary>
[ProtoContract]
public partial class S2C_JoinClubResponse : AMessage, ICustomRouteResponse
public partial class S2C_JoinClubResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_JoinClubResponse Create(Scene scene)
{
@@ -772,7 +771,7 @@ namespace Fantasy
/// 请求退出工会
/// </summary>
[ProtoContract]
public partial class C2S_LeaveClubRequest : AMessage, ICustomRouteRequest
public partial class C2S_LeaveClubRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_LeaveClubRequest Create(Scene scene)
{
@@ -797,7 +796,7 @@ namespace Fantasy
/// 响应退出工会
/// </summary>
[ProtoContract]
public partial class S2C_LeaveClubResponse : AMessage, ICustomRouteResponse
public partial class S2C_LeaveClubResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_LeaveClubResponse Create(Scene scene)
{
@@ -821,7 +820,7 @@ namespace Fantasy
/// 请求解散工会
/// </summary>
[ProtoContract]
public partial class C2S_DissolveClubRequest : AMessage, ICustomRouteRequest
public partial class C2S_DissolveClubRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_DissolveClubRequest Create(Scene scene)
{
@@ -846,7 +845,7 @@ namespace Fantasy
/// 响应解散工会
/// </summary>
[ProtoContract]
public partial class S2C_DissolveClubResponse : AMessage, ICustomRouteResponse
public partial class S2C_DissolveClubResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_DissolveClubResponse Create(Scene scene)
{
@@ -870,7 +869,7 @@ namespace Fantasy
/// 请求操作申请
/// </summary>
[ProtoContract]
public partial class C2S_DisposeJoinRequest : AMessage, ICustomRouteRequest
public partial class C2S_DisposeJoinRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_DisposeJoinRequest Create(Scene scene)
{
@@ -901,7 +900,7 @@ namespace Fantasy
/// 响应操作申请
/// </summary>
[ProtoContract]
public partial class S2C_DisposeJoinResponse : AMessage, ICustomRouteResponse
public partial class S2C_DisposeJoinResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_DisposeJoinResponse Create(Scene scene)
{
@@ -931,7 +930,7 @@ namespace Fantasy
/// 推送消息
/// </summary>
[ProtoContract]
public partial class S2C_ClubChange : AMessage, ICustomRouteMessage
public partial class S2C_ClubChange : AMessage, ICustomRouteMessage, IProto
{
public static S2C_ClubChange Create(Scene scene)
{
@@ -954,4 +953,3 @@ namespace Fantasy
public int ChangeType { get; set; }
}
}