Revert "提交修改"

This reverts commit 5750c4fe56.
This commit is contained in:
2025-10-29 22:41:47 +08:00
parent 5750c4fe56
commit 234b18d3f8
2148 changed files with 5550 additions and 13963 deletions

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class BaitConfig : ASerialize, IConfigTable
public sealed partial class BaitConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class BasicConfig : ASerialize, IConfigTable
public sealed partial class BasicConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class BobberConfig : ASerialize, IConfigTable
public sealed partial class BobberConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class FeederConfig : ASerialize, IConfigTable
public sealed partial class FeederConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class FishConfig : ASerialize, IConfigTable
public sealed partial class FishConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class HookConfig : ASerialize, IConfigTable
public sealed partial class HookConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class InitConfig : ASerialize, IConfigTable
public sealed partial class InitConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class ItemConfig : ASerialize, IConfigTable
public sealed partial class ItemConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class LineConfig : ASerialize, IConfigTable
public sealed partial class LineConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class LureConfig : ASerialize, IConfigTable
public sealed partial class LureConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class ReelConfig : ASerialize, IConfigTable
public sealed partial class ReelConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class RodConfig : ASerialize, IConfigTable
public sealed partial class RodConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using NBC.Serialize;
namespace NBF
{
[ProtoContract]
public sealed partial class RodRingConfig : ASerialize, IConfigTable
public sealed partial class RodRingConfig : ASerialize, IProto, IConfigTable
{
[ProtoMember(1)]

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;

View File

@@ -1,6 +1,6 @@
using System;
using ProtoBuf;
using NBC;
using Fantasy;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;

View File

@@ -1,7 +1,7 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using Fantasy;
using NBC;
using NBC.Network.Interface;
using NBC.Serialize;
@@ -13,7 +13,7 @@ namespace NBC
/// 角色基础信息
/// </summary>
[ProtoContract]
public partial class RoleBaseInfo : AMessage
public partial class RoleBaseInfo : AMessage, IProto
{
public static RoleBaseInfo Create(Scene scene)
{
@@ -45,7 +45,7 @@ namespace NBC
public VipInfo VipInfo { get; set; }
}
[ProtoContract]
public partial class KeyValueInt64 : AMessage
public partial class KeyValueInt64 : AMessage, IProto
{
public static KeyValueInt64 Create(Scene scene)
{
@@ -68,7 +68,7 @@ namespace NBC
/// 角色信息
/// </summary>
[ProtoContract]
public partial class RoleInfo : AMessage
public partial class RoleInfo : AMessage, IProto
{
public static RoleInfo Create(Scene scene)
{
@@ -115,7 +115,7 @@ namespace NBC
/// 角色信息
/// </summary>
[ProtoContract]
public partial class RoleSimpleInfo : AMessage
public partial class RoleSimpleInfo : AMessage, IProto
{
public static RoleSimpleInfo Create(Scene scene)
{
@@ -153,7 +153,7 @@ namespace NBC
/// VIP信息
/// </summary>
[ProtoContract]
public partial class VipInfo : AMessage
public partial class VipInfo : AMessage, IProto
{
public static VipInfo Create(Scene scene)
{
@@ -179,7 +179,7 @@ namespace NBC
/// 奖励信息
/// </summary>
[ProtoContract]
public partial class AwardInfo : AMessage
public partial class AwardInfo : AMessage, IProto
{
public static AwardInfo Create(Scene scene)
{
@@ -202,7 +202,7 @@ namespace NBC
/// 玩家当前使用钓组信息
/// </summary>
[ProtoContract]
public partial class ItemBindInfo : AMessage
public partial class ItemBindInfo : AMessage, IProto
{
public static ItemBindInfo Create(Scene scene)
{
@@ -225,7 +225,7 @@ namespace NBC
/// 物品信息
/// </summary>
[ProtoContract]
public partial class ItemInfo : AMessage
public partial class ItemInfo : AMessage, IProto
{
public static ItemInfo Create(Scene scene)
{
@@ -260,7 +260,7 @@ namespace NBC
/// fish信息
/// </summary>
[ProtoContract]
public partial class FishInfo : AMessage
public partial class FishInfo : AMessage, IProto
{
public static FishInfo Create(Scene scene)
{
@@ -289,7 +289,7 @@ namespace NBC
public long ExpirationTime { get; set; }
}
[ProtoContract]
public partial class ActivityInfo : AMessage
public partial class ActivityInfo : AMessage, IProto
{
public static ActivityInfo Create(Scene scene)
{
@@ -318,7 +318,7 @@ namespace NBC
/// 技能情况
/// </summary>
[ProtoContract]
public partial class SkillInfo : AMessage
public partial class SkillInfo : AMessage, IProto
{
public static SkillInfo Create(Scene scene)
{
@@ -341,4 +341,3 @@ namespace NBC
public int Exp { get; set; }
}
}

View File

@@ -1,7 +1,7 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using Fantasy;
using NBC;
using NBC.Network.Interface;
using NBC.Serialize;
@@ -16,7 +16,7 @@ namespace NBC
/// 请求背包列表
/// </summary>
[ProtoContract]
public partial class C2Game_GetItemsRequest : AMessage, ICustomRouteRequest
public partial class C2Game_GetItemsRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_GetItemsRequest Create(Scene scene)
{
@@ -38,7 +38,7 @@ namespace NBC
/// 请求背包列表响应
/// </summary>
[ProtoContract]
public partial class Game2C_GetItemsResponse : AMessage, ICustomRouteResponse
public partial class Game2C_GetItemsResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_GetItemsResponse Create(Scene scene)
{
@@ -65,7 +65,7 @@ namespace NBC
/// 请求使用物品
/// </summary>
[ProtoContract]
public partial class C2Game_UseItemRequest : AMessage, ICustomRouteRequest
public partial class C2Game_UseItemRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_UseItemRequest Create(Scene scene)
{
@@ -87,7 +87,7 @@ namespace NBC
/// 请求使用物品响应
/// </summary>
[ProtoContract]
public partial class Game2C_UseItemResponse : AMessage, ICustomRouteResponse
public partial class Game2C_UseItemResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_UseItemResponse Create(Scene scene)
{
@@ -108,7 +108,7 @@ namespace NBC
/// 物品变化
/// </summary>
[ProtoContract]
public partial class Game2C_ItemChange : AMessage, ICustomRouteMessage
public partial class Game2C_ItemChange : AMessage, ICustomRouteMessage, IProto
{
public static Game2C_ItemChange Create(Scene scene)
{
@@ -140,7 +140,7 @@ namespace NBC
/// 请求安装或取下配件
/// </summary>
[ProtoContract]
public partial class C2Game_RigChangeRequest : AMessage, ICustomRouteRequest
public partial class C2Game_RigChangeRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_RigChangeRequest Create(Scene scene)
{
@@ -171,7 +171,7 @@ namespace NBC
/// 请求安装配件响应
/// </summary>
[ProtoContract]
public partial class Game2C_RigChangeResponse : AMessage, ICustomRouteResponse
public partial class Game2C_RigChangeResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_RigChangeResponse Create(Scene scene)
{
@@ -198,7 +198,7 @@ namespace NBC
/// 请求鱼护列表
/// </summary>
[ProtoContract]
public partial class C2Game_GetFishsRequest : AMessage, ICustomRouteRequest
public partial class C2Game_GetFishsRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_GetFishsRequest Create(Scene scene)
{
@@ -220,7 +220,7 @@ namespace NBC
/// 请求鱼护列表响应
/// </summary>
[ProtoContract]
public partial class Game2C_GetFishsResponse : AMessage, ICustomRouteResponse
public partial class Game2C_GetFishsResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_GetFishsResponse Create(Scene scene)
{
@@ -244,7 +244,7 @@ namespace NBC
/// 鱼护变化
/// </summary>
[ProtoContract]
public partial class Game2C_FishChange : AMessage, ICustomRouteMessage
public partial class Game2C_FishChange : AMessage, ICustomRouteMessage, IProto
{
public static Game2C_FishChange Create(Scene scene)
{
@@ -273,7 +273,7 @@ namespace NBC
/// 请求出售
/// </summary>
[ProtoContract]
public partial class C2Game_SellFishRequest : AMessage, ICustomRouteRequest
public partial class C2Game_SellFishRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_SellFishRequest Create(Scene scene)
{
@@ -298,7 +298,7 @@ namespace NBC
/// 请求出售响应
/// </summary>
[ProtoContract]
public partial class Game2C_SellFishResponse : AMessage, ICustomRouteResponse
public partial class Game2C_SellFishResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_SellFishResponse Create(Scene scene)
{
@@ -325,7 +325,7 @@ namespace NBC
/// 请求购买
/// </summary>
[ProtoContract]
public partial class C2Game_BuyRequest : AMessage, ICustomRouteRequest
public partial class C2Game_BuyRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Game_BuyRequest Create(Scene scene)
{
@@ -347,7 +347,7 @@ namespace NBC
/// 请求购买响应
/// </summary>
[ProtoContract]
public partial class Game2C_BuyResponse : AMessage, ICustomRouteResponse
public partial class Game2C_BuyResponse : AMessage, ICustomRouteResponse, IProto
{
public static Game2C_BuyResponse Create(Scene scene)
{
@@ -368,4 +368,3 @@ namespace NBC
public uint ErrorCode { get; set; }
}
}

View File

@@ -1,7 +1,7 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using Fantasy;
using NBC;
using NBC.Network.Interface;
using NBC.Serialize;
@@ -13,7 +13,7 @@ namespace NBC
/// 请求创建房间
/// </summary>
[ProtoContract]
public partial class C2Map_CreateRoomRequest : AMessage, ICustomRouteRequest
public partial class C2Map_CreateRoomRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2Map_CreateRoomRequest Create(Scene scene)
{
@@ -38,7 +38,7 @@ namespace NBC
/// 请求创建房间成功
/// </summary>
[ProtoContract]
public partial class Map2C_CreateRoomResponse : AMessage, ICustomRouteResponse
public partial class Map2C_CreateRoomResponse : AMessage, ICustomRouteResponse, IProto
{
public static Map2C_CreateRoomResponse Create(Scene scene)
{
@@ -65,7 +65,7 @@ namespace NBC
/// 请求网关离开房间(离开房间,但是不离开地图)
/// </summary>
[ProtoContract]
public partial class C2G_ExitRoomRequest : AMessage, IRequest
public partial class C2G_ExitRoomRequest : AMessage, IRequest, IProto
{
public static C2G_ExitRoomRequest Create(Scene scene)
{
@@ -88,7 +88,7 @@ namespace NBC
/// 请求网关进入离开响应
/// </summary>
[ProtoContract]
public partial class G2C_ExitRoomResponse : AMessage, IResponse
public partial class G2C_ExitRoomResponse : AMessage, IResponse, IProto
{
public static G2C_ExitRoomResponse Create(Scene scene)
{
@@ -112,7 +112,7 @@ namespace NBC
/// 请求网关进入地图
/// </summary>
[ProtoContract]
public partial class C2G_EnterMapRequest : AMessage, IRequest
public partial class C2G_EnterMapRequest : AMessage, IRequest, IProto
{
public static C2G_EnterMapRequest Create(Scene scene)
{
@@ -138,7 +138,7 @@ namespace NBC
/// 请求网关进入房间响应
/// </summary>
[ProtoContract]
public partial class G2C_EnterMapResponse : AMessage, IResponse
public partial class G2C_EnterMapResponse : AMessage, IResponse, IProto
{
public static G2C_EnterMapResponse Create(Scene scene)
{
@@ -168,7 +168,7 @@ namespace NBC
/// 通知客户端切换地图
/// </summary>
[ProtoContract]
public partial class Map2C_ChangeMap : AMessage, ICustomRouteMessage
public partial class Map2C_ChangeMap : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_ChangeMap Create(Scene scene)
{
@@ -191,4 +191,3 @@ namespace NBC
public int Node { get; set; }
}
}

View File

@@ -1,7 +1,7 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using Fantasy;
using NBC;
using NBC.Network.Interface;
using NBC.Serialize;
@@ -10,7 +10,7 @@ using NBC.Serialize;
namespace NBC
{
[ProtoContract]
public partial class Vector3Info : AMessage
public partial class Vector3Info : AMessage, IProto
{
public static Vector3Info Create(Scene scene)
{
@@ -33,7 +33,7 @@ namespace NBC
public float z { get; set; }
}
[ProtoContract]
public partial class Vector2Info : AMessage
public partial class Vector2Info : AMessage, IProto
{
public static Vector2Info Create(Scene scene)
{
@@ -53,7 +53,7 @@ namespace NBC
public float y { get; set; }
}
[ProtoContract]
public partial class QuaternionInfo : AMessage
public partial class QuaternionInfo : AMessage, IProto
{
public static QuaternionInfo Create(Scene scene)
{
@@ -82,7 +82,7 @@ namespace NBC
/// 玩家当前使用钓组信息
/// </summary>
[ProtoContract]
public partial class GearInfo : AMessage
public partial class GearInfo : AMessage, IProto
{
public static GearInfo Create(Scene scene)
{
@@ -111,7 +111,7 @@ namespace NBC
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)
{
@@ -131,7 +131,7 @@ namespace NBC
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)
{
@@ -166,4 +166,3 @@ namespace NBC
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
}
}

View File

@@ -1,657 +0,0 @@
using System.Runtime.CompilerServices;
using NBC;
using NBC.Async;
using NBC.Network;
using System.Collections.Generic;
#pragma warning disable CS8618
namespace NBC
{
public static class NetworkProtocolHelper
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_GetItemsResponse> C2Game_GetItemsRequest(this Session session, C2Game_GetItemsRequest request)
{
return (Game2C_GetItemsResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_GetItemsResponse> C2Game_GetItemsRequest(this Session session)
{
using var request = Fantasy.C2Game_GetItemsRequest.Create(session.Scene);
return (Game2C_GetItemsResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_UseItemResponse> C2Game_UseItemRequest(this Session session, C2Game_UseItemRequest request)
{
return (Game2C_UseItemResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_UseItemResponse> C2Game_UseItemRequest(this Session session)
{
using var request = Fantasy.C2Game_UseItemRequest.Create(session.Scene);
return (Game2C_UseItemResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Game2C_ItemChange(this Session session, Game2C_ItemChange message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Game2C_ItemChange(this Session session, int type, List<ItemInfo> items, List<long> removes)
{
using var message = Fantasy.Game2C_ItemChange.Create(session.Scene);
message.Type = type;
message.Items = items;
message.Removes = removes;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_RigChangeResponse> C2Game_RigChangeRequest(this Session session, C2Game_RigChangeRequest request)
{
return (Game2C_RigChangeResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_RigChangeResponse> C2Game_RigChangeRequest(this Session session, long rodId, long rigId, bool isAdd)
{
using var request = Fantasy.C2Game_RigChangeRequest.Create(session.Scene);
request.RodId = rodId;
request.RigId = rigId;
request.IsAdd = isAdd;
return (Game2C_RigChangeResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_GetFishsResponse> C2Game_GetFishsRequest(this Session session, C2Game_GetFishsRequest request)
{
return (Game2C_GetFishsResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_GetFishsResponse> C2Game_GetFishsRequest(this Session session)
{
using var request = Fantasy.C2Game_GetFishsRequest.Create(session.Scene);
return (Game2C_GetFishsResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Game2C_FishChange(this Session session, Game2C_FishChange message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Game2C_FishChange(this Session session, int type, List<FishInfo> fishs, List<long> removes)
{
using var message = Fantasy.Game2C_FishChange.Create(session.Scene);
message.Type = type;
message.Fishs = fishs;
message.Removes = removes;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_SellFishResponse> C2Game_SellFishRequest(this Session session, C2Game_SellFishRequest request)
{
return (Game2C_SellFishResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_SellFishResponse> C2Game_SellFishRequest(this Session session, List<long> ids)
{
using var request = Fantasy.C2Game_SellFishRequest.Create(session.Scene);
request.Ids = ids;
return (Game2C_SellFishResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_GetFishsResponse> C2Game_BuyRequest(this Session session, C2Game_BuyRequest request)
{
return (Game2C_GetFishsResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_GetFishsResponse> C2Game_BuyRequest(this Session session)
{
using var request = Fantasy.C2Game_BuyRequest.Create(session.Scene);
return (Game2C_GetFishsResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Map2C_CreateRoomResponse> C2Map_CreateRoomRequest(this Session session, C2Map_CreateRoomRequest request)
{
return (Map2C_CreateRoomResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Map2C_CreateRoomResponse> C2Map_CreateRoomRequest(this Session session, int mapId)
{
using var request = Fantasy.C2Map_CreateRoomRequest.Create(session.Scene);
request.MapId = mapId;
return (Map2C_CreateRoomResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<G2C_ExitRoomResponse> C2G_ExitRoomRequest(this Session session, C2G_ExitRoomRequest request)
{
return (G2C_ExitRoomResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<G2C_ExitRoomResponse> C2G_ExitRoomRequest(this Session session, string roomCode)
{
using var request = Fantasy.C2G_ExitRoomRequest.Create(session.Scene);
request.RoomCode = roomCode;
return (G2C_ExitRoomResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<G2C_EnterMapResponse> C2G_EnterMapRequest(this Session session, C2G_EnterMapRequest request)
{
return (G2C_EnterMapResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<G2C_EnterMapResponse> C2G_EnterMapRequest(this Session session, string roomCode, int mapId)
{
using var request = Fantasy.C2G_EnterMapRequest.Create(session.Scene);
request.RoomCode = roomCode;
request.MapId = mapId;
return (G2C_EnterMapResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_ChangeMap(this Session session, Map2C_ChangeMap message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_ChangeMap(this Session session, int mapId, int node)
{
using var message = Fantasy.Map2C_ChangeMap.Create(session.Scene);
message.MapId = mapId;
message.Node = node;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<A2C_LoginResponse> C2A_LoginRequest(this Session session, C2A_LoginRequest request)
{
return (A2C_LoginResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<A2C_LoginResponse> C2A_LoginRequest(this Session session, string username, string password, int loginType, int region)
{
using var request = Fantasy.C2A_LoginRequest.Create(session.Scene);
request.Username = username;
request.Password = password;
request.LoginType = loginType;
request.Region = region;
return (A2C_LoginResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<G2C_LoginResponse> C2G_LoginRequest(this Session session, C2G_LoginRequest request)
{
return (G2C_LoginResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<G2C_LoginResponse> C2G_LoginRequest(this Session session, string toKen)
{
using var request = Fantasy.C2G_LoginRequest.Create(session.Scene);
request.ToKen = toKen;
return (G2C_LoginResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void G2C_RepeatLogin(this Session session, G2C_RepeatLogin message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void G2C_RepeatLogin(this Session session)
{
using var message = Fantasy.G2C_RepeatLogin.Create(session.Scene);
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_GetRoleInfoResponse> C2Game_GetRoleInfoRequest(this Session session, C2Game_GetRoleInfoRequest request)
{
return (Game2C_GetRoleInfoResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<Game2C_GetRoleInfoResponse> C2Game_GetRoleInfoRequest(this Session session)
{
using var request = Fantasy.C2Game_GetRoleInfoRequest.Create(session.Scene);
return (Game2C_GetRoleInfoResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_RoleEnterRoomNotify(this Session session, Map2C_RoleEnterRoomNotify message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_RoleEnterRoomNotify(this Session session, MapUnitInfo info)
{
using var message = Fantasy.Map2C_RoleEnterRoomNotify.Create(session.Scene);
message.Info = info;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_RoleExitRoomNotify(this Session session, Map2C_RoleExitRoomNotify message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_RoleExitRoomNotify(this Session session, long id)
{
using var message = Fantasy.Map2C_RoleExitRoomNotify.Create(session.Scene);
message.Id = id;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void C2Map_RolePropertyChange(this Session session, C2Map_RolePropertyChange message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void C2Map_RolePropertyChange(this Session session, List<KeyValueInt64> propertys)
{
using var message = Fantasy.C2Map_RolePropertyChange.Create(session.Scene);
message.Propertys = propertys;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_RoleStateNotify(this Session session, Map2C_RoleStateNotify message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_RoleStateNotify(this Session session, long id, UnitStateInfo state)
{
using var message = Fantasy.Map2C_RoleStateNotify.Create(session.Scene);
message.Id = id;
message.State = state;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_RoleGearChangeNotify(this Session session, Map2C_RoleGearChangeNotify message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_RoleGearChangeNotify(this Session session, long id, List<GearInfo> gears)
{
using var message = Fantasy.Map2C_RoleGearChangeNotify.Create(session.Scene);
message.Id = id;
message.Gears = gears;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_RolePropertyChangeNotify(this Session session, Map2C_RolePropertyChangeNotify message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_RolePropertyChangeNotify(this Session session, long id, List<KeyValueInt64> propertys)
{
using var message = Fantasy.Map2C_RolePropertyChangeNotify.Create(session.Scene);
message.Id = id;
message.Propertys = propertys;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void C2Map_Move(this Session session, C2Map_Move message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void C2Map_Move(this Session session, Vector3Info position, Vector3Info rotation, Vector3Info direction, bool isStop, bool isRun, long timestamp)
{
using var message = Fantasy.C2Map_Move.Create(session.Scene);
message.Position = position;
message.Rotation = rotation;
message.Direction = direction;
message.IsStop = isStop;
message.IsRun = isRun;
message.Timestamp = timestamp;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void C2Map_Look(this Session session, C2Map_Look message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void C2Map_Look(this Session session, Vector3Info rotation, long timestamp)
{
using var message = Fantasy.C2Map_Look.Create(session.Scene);
message.Rotation = rotation;
message.Timestamp = timestamp;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_MoveNotify(this Session session, Map2C_MoveNotify message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_MoveNotify(this Session session, long id, Vector3Info position, Vector3Info rotation, Vector3Info direction, bool isStop, bool isRun, long timestamp)
{
using var message = Fantasy.Map2C_MoveNotify.Create(session.Scene);
message.Id = id;
message.Position = position;
message.Rotation = rotation;
message.Direction = direction;
message.IsStop = isStop;
message.IsRun = isRun;
message.Timestamp = timestamp;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_LookeNotify(this Session session, Map2C_LookeNotify message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Map2C_LookeNotify(this Session session, long id, Vector3Info rotation, long timestamp)
{
using var message = Fantasy.Map2C_LookeNotify.Create(session.Scene);
message.Id = id;
message.Rotation = rotation;
message.Timestamp = timestamp;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_GetConversationsResponse> C2S_GetConversationsRequest(this Session session, C2S_GetConversationsRequest request)
{
return (S2C_GetConversationsResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_GetConversationsResponse> C2S_GetConversationsRequest(this Session session)
{
using var request = Fantasy.C2S_GetConversationsRequest.Create(session.Scene);
return (S2C_GetConversationsResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_SendMailResponse> C2S_SendMailRequest(this Session session, C2S_SendMailRequest request)
{
return (S2C_SendMailResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_SendMailResponse> C2S_SendMailRequest(this Session session, long target, string content, List<AwardInfo> items)
{
using var request = Fantasy.C2S_SendMailRequest.Create(session.Scene);
request.Target = target;
request.Content = content;
request.Items = items;
return (S2C_SendMailResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_DeleteMailResponse> C2S_DeleteMailRequest(this Session session, C2S_DeleteMailRequest request)
{
return (S2C_DeleteMailResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_DeleteMailResponse> C2S_DeleteMailRequest(this Session session, long id)
{
using var request = Fantasy.C2S_DeleteMailRequest.Create(session.Scene);
request.Id = id;
return (S2C_DeleteMailResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void S2C_HaveMail(this Session session, S2C_HaveMail message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void S2C_HaveMail(this Session session, MailInfo mail, string key)
{
using var message = Fantasy.S2C_HaveMail.Create(session.Scene);
message.Mail = mail;
message.Key = key;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void S2C_MailState(this Session session, S2C_MailState message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void S2C_MailState(this Session session, int mailState, long mailId)
{
using var message = Fantasy.S2C_MailState.Create(session.Scene);
message.MailState = mailState;
message.MailId = mailId;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_CreateChannelResponse> C2S_CreateChannelRequest(this Session session, C2S_CreateChannelRequest request)
{
return (S2C_CreateChannelResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_CreateChannelResponse> C2S_CreateChannelRequest(this Session session, string name)
{
using var request = Fantasy.C2S_CreateChannelRequest.Create(session.Scene);
request.Name = name;
return (S2C_CreateChannelResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_JoinChannelResponse> C2S_JoinChannelRequest(this Session session, C2S_JoinChannelRequest request)
{
return (S2C_JoinChannelResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_JoinChannelResponse> C2S_JoinChannelRequest(this Session session, long target)
{
using var request = Fantasy.C2S_JoinChannelRequest.Create(session.Scene);
request.Target = target;
return (S2C_JoinChannelResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_SendMessageResponse> C2S_SendMessageRequest(this Session session, C2S_SendMessageRequest request)
{
return (S2C_SendMessageResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_SendMessageResponse> C2S_SendMessageRequest(this Session session, string message, long target)
{
using var request = Fantasy.C2S_SendMessageRequest.Create(session.Scene);
request.Message = message;
request.Target = target;
return (S2C_SendMessageResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void S2C_Message(this Session session, S2C_Message message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void S2C_Message(this Session session, ChatMessageInfo message)
{
using var message = Fantasy.S2C_Message.Create(session.Scene);
message.Message = message;
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_CreateClubResponse> C2S_CreateClubRequest(this Session session, C2S_CreateClubRequest request)
{
return (S2C_CreateClubResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_CreateClubResponse> C2S_CreateClubRequest(this Session session, string name)
{
using var request = Fantasy.C2S_CreateClubRequest.Create(session.Scene);
request.Name = name;
return (S2C_CreateClubResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_GetClubInfoResponse> C2S_GetClubInfoRequest(this Session session, C2S_GetClubInfoRequest request)
{
return (S2C_GetClubInfoResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_GetClubInfoResponse> C2S_GetClubInfoRequest(this Session session, long clubId)
{
using var request = Fantasy.C2S_GetClubInfoRequest.Create(session.Scene);
request.ClubId = clubId;
return (S2C_GetClubInfoResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_GetMemberListResponse> C2S_GetMemberListRequest(this Session session, C2S_GetMemberListRequest request)
{
return (S2C_GetMemberListResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_GetMemberListResponse> C2S_GetMemberListRequest(this Session session, long clubId)
{
using var request = Fantasy.C2S_GetMemberListRequest.Create(session.Scene);
request.ClubId = clubId;
return (S2C_GetMemberListResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_GetClubListResponse> C2S_GetClubListRequest(this Session session, C2S_GetClubListRequest request)
{
return (S2C_GetClubListResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_GetClubListResponse> C2S_GetClubListRequest(this Session session)
{
using var request = Fantasy.C2S_GetClubListRequest.Create(session.Scene);
return (S2C_GetClubListResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_JoinClubResponse> C2S_JoinClubRequest(this Session session, C2S_JoinClubRequest request)
{
return (S2C_JoinClubResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_JoinClubResponse> C2S_JoinClubRequest(this Session session, long clubId)
{
using var request = Fantasy.C2S_JoinClubRequest.Create(session.Scene);
request.ClubId = clubId;
return (S2C_JoinClubResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_LeaveClubResponse> C2S_LeaveClubRequest(this Session session, C2S_LeaveClubRequest request)
{
return (S2C_LeaveClubResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_LeaveClubResponse> C2S_LeaveClubRequest(this Session session, long clubId)
{
using var request = Fantasy.C2S_LeaveClubRequest.Create(session.Scene);
request.ClubId = clubId;
return (S2C_LeaveClubResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_DissolveClubResponse> C2S_DissolveClubRequest(this Session session, C2S_DissolveClubRequest request)
{
return (S2C_DissolveClubResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_DissolveClubResponse> C2S_DissolveClubRequest(this Session session, long clubId)
{
using var request = Fantasy.C2S_DissolveClubRequest.Create(session.Scene);
request.ClubId = clubId;
return (S2C_DissolveClubResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_DisposeJoinResponse> C2S_DisposeJoinRequest(this Session session, C2S_DisposeJoinRequest request)
{
return (S2C_DisposeJoinResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static async FTask<S2C_DisposeJoinResponse> C2S_DisposeJoinRequest(this Session session, long clubId, long applicantId, int agree)
{
using var request = Fantasy.C2S_DisposeJoinRequest.Create(session.Scene);
request.ClubId = clubId;
request.ApplicantId = applicantId;
request.Agree = agree;
return (S2C_DisposeJoinResponse)await session.Call(request);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void S2C_ClubChange(this Session session, S2C_ClubChange message)
{
session.Send(message);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void S2C_ClubChange(this Session session, ClubInfo club, int changeType)
{
using var message = Fantasy.S2C_ClubChange.Create(session.Scene);
message.Club = club;
message.ChangeType = changeType;
session.Send(message);
}
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: bb560e77a377e5e48871dc9494a3c0d3

View File

@@ -1,7 +1,7 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using Fantasy;
using NBC;
using NBC.Network.Interface;
using NBC.Serialize;
@@ -10,7 +10,7 @@ using NBC.Serialize;
namespace NBC
{
[ProtoContract]
public partial class C2A_LoginRequest : AMessage, IRequest
public partial class C2A_LoginRequest : AMessage, IRequest, IProto
{
public static C2A_LoginRequest Create(Scene scene)
{
@@ -39,7 +39,7 @@ namespace NBC
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)
{
@@ -63,7 +63,7 @@ namespace NBC
/// 客户端登录到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)
{
@@ -83,7 +83,7 @@ namespace NBC
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)
{
@@ -107,7 +107,7 @@ namespace NBC
/// 通知客户端重复登录
/// </summary>
[ProtoContract]
public partial class G2C_RepeatLogin : AMessage, IMessage
public partial class G2C_RepeatLogin : AMessage, IMessage, IProto
{
public static G2C_RepeatLogin Create(Scene scene)
{
@@ -122,7 +122,7 @@ namespace NBC
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)
{
@@ -141,7 +141,7 @@ namespace NBC
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)
{
@@ -165,4 +165,3 @@ namespace NBC
public uint ErrorCode { get; set; }
}
}

View File

@@ -1,4 +1,4 @@
namespace NBC
namespace Fantasy
{
public static partial class OuterOpcode
{

View File

@@ -1,5 +1,5 @@
using System.Collections.Generic;
namespace NBC
namespace Fantasy
{
// Roaming协议定义(需要定义10000以上、因为10000以内的框架预留)
public static class RoamingType

View File

@@ -1,7 +1,7 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using Fantasy;
using NBC;
using NBC.Network.Interface;
using NBC.Serialize;
@@ -13,7 +13,7 @@ namespace NBC
/// 用户进入地图
/// </summary>
[ProtoContract]
public partial class Map2C_RoleEnterRoomNotify : AMessage, ICustomRouteMessage
public partial class Map2C_RoleEnterRoomNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_RoleEnterRoomNotify Create(Scene scene)
{
@@ -36,7 +36,7 @@ namespace NBC
/// 用户离开地图
/// </summary>
[ProtoContract]
public partial class Map2C_RoleExitRoomNotify : AMessage, ICustomRouteMessage
public partial class Map2C_RoleExitRoomNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_RoleExitRoomNotify Create(Scene scene)
{
@@ -56,7 +56,7 @@ namespace NBC
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)
{
@@ -79,7 +79,7 @@ namespace NBC
/// 玩家状态变化同步
/// </summary>
[ProtoContract]
public partial class Map2C_RoleStateNotify : AMessage, ICustomRouteMessage
public partial class Map2C_RoleStateNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_RoleStateNotify Create(Scene scene)
{
@@ -105,7 +105,7 @@ namespace NBC
/// 玩家钓组变化
/// </summary>
[ProtoContract]
public partial class Map2C_RoleGearChangeNotify : AMessage, ICustomRouteMessage
public partial class Map2C_RoleGearChangeNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_RoleGearChangeNotify Create(Scene scene)
{
@@ -128,7 +128,7 @@ namespace NBC
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)
{
@@ -151,7 +151,7 @@ namespace NBC
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)
{
@@ -186,7 +186,7 @@ namespace NBC
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)
{
@@ -212,7 +212,7 @@ namespace NBC
/// 玩家移动推送
/// </summary>
[ProtoContract]
public partial class Map2C_MoveNotify : AMessage, ICustomRouteMessage
public partial class Map2C_MoveNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_MoveNotify Create(Scene scene)
{
@@ -253,7 +253,7 @@ namespace NBC
/// 玩家旋转推送
/// </summary>
[ProtoContract]
public partial class Map2C_LookeNotify : AMessage, ICustomRouteMessage
public partial class Map2C_LookeNotify : AMessage, ICustomRouteMessage, IProto
{
public static Map2C_LookeNotify Create(Scene scene)
{
@@ -279,4 +279,3 @@ namespace NBC
public long Timestamp { get; set; }
}
}

View File

@@ -1,4 +1,4 @@
namespace NBC
namespace Fantasy
{
// Route协议定义(需要定义1000以上、因为1000以内的框架预留)
public static class RouteType

View File

@@ -1,7 +1,7 @@
using ProtoBuf;
using System;
using System.Collections.Generic;
using Fantasy;
using NBC;
using NBC.Network.Interface;
using NBC.Serialize;
@@ -16,7 +16,7 @@ namespace NBC
/// 会话信息
/// </summary>
[ProtoContract]
public partial class ConversationInfo : AMessage
public partial class ConversationInfo : AMessage, IProto
{
public static ConversationInfo Create(Scene scene)
{
@@ -36,7 +36,7 @@ namespace NBC
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)
{
@@ -74,7 +74,7 @@ namespace NBC
/// 请求会话列表
/// </summary>
[ProtoContract]
public partial class C2S_GetConversationsRequest : AMessage, ICustomRouteRequest
public partial class C2S_GetConversationsRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_GetConversationsRequest Create(Scene scene)
{
@@ -96,7 +96,7 @@ namespace NBC
/// 请求会话列表响应
/// </summary>
[ProtoContract]
public partial class S2C_GetConversationsResponse : AMessage, ICustomRouteResponse
public partial class S2C_GetConversationsResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_GetConversationsResponse Create(Scene scene)
{
@@ -120,7 +120,7 @@ namespace NBC
/// 发送邮件消息
/// </summary>
[ProtoContract]
public partial class C2S_SendMailRequest : AMessage, ICustomRouteRequest
public partial class C2S_SendMailRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_SendMailRequest Create(Scene scene)
{
@@ -151,7 +151,7 @@ namespace NBC
/// 发送邮件消息响应
/// </summary>
[ProtoContract]
public partial class S2C_SendMailResponse : AMessage, ICustomRouteResponse
public partial class S2C_SendMailResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_SendMailResponse Create(Scene scene)
{
@@ -172,7 +172,7 @@ namespace NBC
/// 发送删除会话消息
/// </summary>
[ProtoContract]
public partial class C2S_DeleteMailRequest : AMessage, ICustomRouteRequest
public partial class C2S_DeleteMailRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_DeleteMailRequest Create(Scene scene)
{
@@ -197,7 +197,7 @@ namespace NBC
/// 发送删除会话消息响应
/// </summary>
[ProtoContract]
public partial class S2C_DeleteMailResponse : AMessage, ICustomRouteResponse
public partial class S2C_DeleteMailResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_DeleteMailResponse Create(Scene scene)
{
@@ -221,7 +221,7 @@ namespace NBC
/// 新邮件推送
/// </summary>
[ProtoContract]
public partial class S2C_HaveMail : AMessage, ICustomRouteMessage
public partial class S2C_HaveMail : AMessage, ICustomRouteMessage, IProto
{
public static S2C_HaveMail Create(Scene scene)
{
@@ -244,7 +244,7 @@ namespace NBC
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)
{
@@ -270,7 +270,7 @@ namespace NBC
/// /////////// ******** 频道聊天 *******/////////////
/// </summary>
[ProtoContract]
public partial class ChatUserInfo : AMessage
public partial class ChatUserInfo : AMessage, IProto
{
public static ChatUserInfo Create(Scene scene)
{
@@ -290,7 +290,7 @@ namespace NBC
public long Name { get; set; }
}
[ProtoContract]
public partial class ChatMessageInfo : AMessage
public partial class ChatMessageInfo : AMessage, IProto
{
public static ChatMessageInfo Create(Scene scene)
{
@@ -322,7 +322,7 @@ namespace NBC
/// 创建频道
/// </summary>
[ProtoContract]
public partial class C2S_CreateChannelRequest : AMessage, ICustomRouteRequest
public partial class C2S_CreateChannelRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_CreateChannelRequest Create(Scene scene)
{
@@ -347,7 +347,7 @@ namespace NBC
/// 创建频道响应
/// </summary>
[ProtoContract]
public partial class S2C_CreateChannelResponse : AMessage, ICustomRouteResponse
public partial class S2C_CreateChannelResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_CreateChannelResponse Create(Scene scene)
{
@@ -371,7 +371,7 @@ namespace NBC
/// 请求进入频道
/// </summary>
[ProtoContract]
public partial class C2S_JoinChannelRequest : AMessage, ICustomRouteRequest
public partial class C2S_JoinChannelRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_JoinChannelRequest Create(Scene scene)
{
@@ -396,7 +396,7 @@ namespace NBC
/// 进入频道响应
/// </summary>
[ProtoContract]
public partial class S2C_JoinChannelResponse : AMessage, ICustomRouteResponse
public partial class S2C_JoinChannelResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_JoinChannelResponse Create(Scene scene)
{
@@ -417,7 +417,7 @@ namespace NBC
/// 发送消息
/// </summary>
[ProtoContract]
public partial class C2S_SendMessageRequest : AMessage, ICustomRouteRequest
public partial class C2S_SendMessageRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_SendMessageRequest Create(Scene scene)
{
@@ -445,7 +445,7 @@ namespace NBC
/// 发送消息响应
/// </summary>
[ProtoContract]
public partial class S2C_SendMessageResponse : AMessage, ICustomRouteResponse
public partial class S2C_SendMessageResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_SendMessageResponse Create(Scene scene)
{
@@ -466,7 +466,7 @@ namespace NBC
/// 推送消息
/// </summary>
[ProtoContract]
public partial class S2C_Message : AMessage, ICustomRouteMessage
public partial class S2C_Message : AMessage, ICustomRouteMessage, IProto
{
public static S2C_Message Create(Scene scene)
{
@@ -489,7 +489,7 @@ namespace NBC
/// /////////// ******** 工会 *******/////////////
/// </summary>
[ProtoContract]
public partial class ClubInfo : AMessage
public partial class ClubInfo : AMessage, IProto
{
public static ClubInfo Create(Scene scene)
{
@@ -521,7 +521,7 @@ namespace NBC
/// 请求创建工会
/// </summary>
[ProtoContract]
public partial class C2S_CreateClubRequest : AMessage, ICustomRouteRequest
public partial class C2S_CreateClubRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_CreateClubRequest Create(Scene scene)
{
@@ -546,7 +546,7 @@ namespace NBC
/// 创建工会响应
/// </summary>
[ProtoContract]
public partial class S2C_CreateClubResponse : AMessage, ICustomRouteResponse
public partial class S2C_CreateClubResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_CreateClubResponse Create(Scene scene)
{
@@ -570,7 +570,7 @@ namespace NBC
/// 请求工会信息
/// </summary>
[ProtoContract]
public partial class C2S_GetClubInfoRequest : AMessage, ICustomRouteRequest
public partial class C2S_GetClubInfoRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_GetClubInfoRequest Create(Scene scene)
{
@@ -595,7 +595,7 @@ namespace NBC
/// 响应工会信息
/// </summary>
[ProtoContract]
public partial class S2C_GetClubInfoResponse : AMessage, ICustomRouteResponse
public partial class S2C_GetClubInfoResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_GetClubInfoResponse Create(Scene scene)
{
@@ -619,7 +619,7 @@ namespace NBC
/// 请求工会成员列表
/// </summary>
[ProtoContract]
public partial class C2S_GetMemberListRequest : AMessage, ICustomRouteRequest
public partial class C2S_GetMemberListRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_GetMemberListRequest Create(Scene scene)
{
@@ -644,7 +644,7 @@ namespace NBC
/// 响应工会成员列表
/// </summary>
[ProtoContract]
public partial class S2C_GetMemberListResponse : AMessage, ICustomRouteResponse
public partial class S2C_GetMemberListResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_GetMemberListResponse Create(Scene scene)
{
@@ -668,7 +668,7 @@ namespace NBC
/// 获取工会列表请求
/// </summary>
[ProtoContract]
public partial class C2S_GetClubListRequest : AMessage, ICustomRouteRequest
public partial class C2S_GetClubListRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_GetClubListRequest Create(Scene scene)
{
@@ -690,7 +690,7 @@ namespace NBC
/// 获取工会列表响应
/// </summary>
[ProtoContract]
public partial class S2C_GetClubListResponse : AMessage, ICustomRouteResponse
public partial class S2C_GetClubListResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_GetClubListResponse Create(Scene scene)
{
@@ -714,7 +714,7 @@ namespace NBC
/// 请求加入工会
/// </summary>
[ProtoContract]
public partial class C2S_JoinClubRequest : AMessage, ICustomRouteRequest
public partial class C2S_JoinClubRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_JoinClubRequest Create(Scene scene)
{
@@ -739,7 +739,7 @@ namespace NBC
/// 响应加入工会
/// </summary>
[ProtoContract]
public partial class S2C_JoinClubResponse : AMessage, ICustomRouteResponse
public partial class S2C_JoinClubResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_JoinClubResponse Create(Scene scene)
{
@@ -763,7 +763,7 @@ namespace NBC
/// 请求退出工会
/// </summary>
[ProtoContract]
public partial class C2S_LeaveClubRequest : AMessage, ICustomRouteRequest
public partial class C2S_LeaveClubRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_LeaveClubRequest Create(Scene scene)
{
@@ -788,7 +788,7 @@ namespace NBC
/// 响应退出工会
/// </summary>
[ProtoContract]
public partial class S2C_LeaveClubResponse : AMessage, ICustomRouteResponse
public partial class S2C_LeaveClubResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_LeaveClubResponse Create(Scene scene)
{
@@ -812,7 +812,7 @@ namespace NBC
/// 请求解散工会
/// </summary>
[ProtoContract]
public partial class C2S_DissolveClubRequest : AMessage, ICustomRouteRequest
public partial class C2S_DissolveClubRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_DissolveClubRequest Create(Scene scene)
{
@@ -837,7 +837,7 @@ namespace NBC
/// 响应解散工会
/// </summary>
[ProtoContract]
public partial class S2C_DissolveClubResponse : AMessage, ICustomRouteResponse
public partial class S2C_DissolveClubResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_DissolveClubResponse Create(Scene scene)
{
@@ -861,7 +861,7 @@ namespace NBC
/// 请求操作申请
/// </summary>
[ProtoContract]
public partial class C2S_DisposeJoinRequest : AMessage, ICustomRouteRequest
public partial class C2S_DisposeJoinRequest : AMessage, ICustomRouteRequest, IProto
{
public static C2S_DisposeJoinRequest Create(Scene scene)
{
@@ -892,7 +892,7 @@ namespace NBC
/// 响应操作申请
/// </summary>
[ProtoContract]
public partial class S2C_DisposeJoinResponse : AMessage, ICustomRouteResponse
public partial class S2C_DisposeJoinResponse : AMessage, ICustomRouteResponse, IProto
{
public static S2C_DisposeJoinResponse Create(Scene scene)
{
@@ -922,7 +922,7 @@ namespace NBC
/// 推送消息
/// </summary>
[ProtoContract]
public partial class S2C_ClubChange : AMessage, ICustomRouteMessage
public partial class S2C_ClubChange : AMessage, ICustomRouteMessage, IProto
{
public static S2C_ClubChange Create(Scene scene)
{
@@ -945,4 +945,3 @@ namespace NBC
public int ChangeType { get; set; }
}
}

View File

@@ -125,8 +125,8 @@ namespace NBF
{
await Task.Delay(100);
CommonTopPanel.Show();
LoginPanel.Show();
// PreviewPanel.Show();
// LoginPanel.Show();
PreviewPanel.Show();
}
#region New

Some files were not shown because too many files have changed in this diff Show More