提交测试代码
This commit is contained in:
@@ -903,7 +903,7 @@ namespace Fantasy
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 奖励推送
|
||||
/// 活动奖励推送
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
@@ -2839,7 +2839,398 @@ namespace Fantasy
|
||||
[ProtoMember(2)]
|
||||
public long MailId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送一个聊天消息给Chat服务器,中间是经过Gate中转的
|
||||
/// </summary>
|
||||
////////// ******** 频道聊天 *******/////////////
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class C2Chat_SendMessageRequest : AMessage, ICustomRouteRequest
|
||||
{
|
||||
public static C2Chat_SendMessageRequest Create(bool autoReturn = true)
|
||||
{
|
||||
var c2Chat_SendMessageRequest = MessageObjectPool<C2Chat_SendMessageRequest>.Rent();
|
||||
c2Chat_SendMessageRequest.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
c2Chat_SendMessageRequest.SetIsPool(false);
|
||||
}
|
||||
|
||||
return c2Chat_SendMessageRequest;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
if (ChatInfoTree != null)
|
||||
{
|
||||
ChatInfoTree.Dispose();
|
||||
ChatInfoTree = null;
|
||||
}
|
||||
MessageObjectPool<C2Chat_SendMessageRequest>.Return(this);
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2Chat_SendMessageRequest; }
|
||||
[ProtoIgnore]
|
||||
public Chat2C_SendMessageResponse ResponseType { get; set; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public ChatInfoTree ChatInfoTree { get; set; }
|
||||
}
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class Chat2C_SendMessageResponse : AMessage, ICustomRouteResponse
|
||||
{
|
||||
public static Chat2C_SendMessageResponse Create(bool autoReturn = true)
|
||||
{
|
||||
var chat2C_SendMessageResponse = MessageObjectPool<Chat2C_SendMessageResponse>.Rent();
|
||||
chat2C_SendMessageResponse.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chat2C_SendMessageResponse.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chat2C_SendMessageResponse;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
ErrorCode = 0;
|
||||
MessageObjectPool<Chat2C_SendMessageResponse>.Return(this);
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Chat2C_SendMessageResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class Chat2C_Message : AMessage, ICustomRouteMessage
|
||||
{
|
||||
public static Chat2C_Message Create(bool autoReturn = true)
|
||||
{
|
||||
var chat2C_Message = MessageObjectPool<Chat2C_Message>.Rent();
|
||||
chat2C_Message.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chat2C_Message.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chat2C_Message;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
if (ChatInfoTree != null)
|
||||
{
|
||||
ChatInfoTree.Dispose();
|
||||
ChatInfoTree = null;
|
||||
}
|
||||
MessageObjectPool<Chat2C_Message>.Return(this);
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Chat2C_Message; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.SocialRoute;
|
||||
[ProtoMember(1)]
|
||||
public ChatInfoTree ChatInfoTree { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 聊天消息树
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatInfoTree : AMessage, IDisposable
|
||||
{
|
||||
public static ChatInfoTree Create(bool autoReturn = true)
|
||||
{
|
||||
var chatInfoTree = MessageObjectPool<ChatInfoTree>.Rent();
|
||||
chatInfoTree.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chatInfoTree.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chatInfoTree;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
ChatChannelType = default;
|
||||
ChatChannelId = default;
|
||||
UnitId = default;
|
||||
UserName = default;
|
||||
Target.Clear();
|
||||
Node.Clear();
|
||||
MessageObjectPool<ChatInfoTree>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public int ChatChannelType { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long ChatChannelId { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public long UnitId { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public string UserName { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public List<long> Target { get; set; } = new List<long>();
|
||||
[ProtoMember(6)]
|
||||
public List<ChatInfoNode> Node { get; set; } = new List<ChatInfoNode>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 聊天信息节点
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatInfoNode : AMessage, IDisposable
|
||||
{
|
||||
public static ChatInfoNode Create(bool autoReturn = true)
|
||||
{
|
||||
var chatInfoNode = MessageObjectPool<ChatInfoNode>.Rent();
|
||||
chatInfoNode.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chatInfoNode.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chatInfoNode;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
ChatNodeType = default;
|
||||
ChatNodeEvent = default;
|
||||
Content = default;
|
||||
Color = default;
|
||||
Data = null;
|
||||
MessageObjectPool<ChatInfoNode>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public int ChatNodeType { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public int ChatNodeEvent { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public string Content { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public string Color { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public byte[] Data { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 聊天位置信息节点
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatPositionNode : AMessage, IDisposable
|
||||
{
|
||||
public static ChatPositionNode Create(bool autoReturn = true)
|
||||
{
|
||||
var chatPositionNode = MessageObjectPool<ChatPositionNode>.Rent();
|
||||
chatPositionNode.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chatPositionNode.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chatPositionNode;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
MapName = default;
|
||||
PosX = default;
|
||||
PosY = default;
|
||||
PosZ = default;
|
||||
MessageObjectPool<ChatPositionNode>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public string MapName { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public float PosX { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public float PosY { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public float PosZ { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 聊天位置信息节点
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatOpenUINode : AMessage, IDisposable
|
||||
{
|
||||
public static ChatOpenUINode Create(bool autoReturn = true)
|
||||
{
|
||||
var chatOpenUINode = MessageObjectPool<ChatOpenUINode>.Rent();
|
||||
chatOpenUINode.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chatOpenUINode.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chatOpenUINode;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
UIName = default;
|
||||
MessageObjectPool<ChatOpenUINode>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public string UIName { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 聊天连接信息节点
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatLinkNode : AMessage, IDisposable
|
||||
{
|
||||
public static ChatLinkNode Create(bool autoReturn = true)
|
||||
{
|
||||
var chatLinkNode = MessageObjectPool<ChatLinkNode>.Rent();
|
||||
chatLinkNode.AutoReturn = autoReturn;
|
||||
|
||||
if (!autoReturn)
|
||||
{
|
||||
chatLinkNode.SetIsPool(false);
|
||||
}
|
||||
|
||||
return chatLinkNode;
|
||||
}
|
||||
|
||||
public void Return()
|
||||
{
|
||||
if (!AutoReturn)
|
||||
{
|
||||
SetIsPool(true);
|
||||
AutoReturn = true;
|
||||
}
|
||||
else if (!IsPool())
|
||||
{
|
||||
return;
|
||||
}
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (!IsPool()) return;
|
||||
Link = default;
|
||||
MessageObjectPool<ChatLinkNode>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public string Link { get; set; }
|
||||
}
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
public partial class ChatUserInfo : AMessage, IDisposable
|
||||
@@ -4485,7 +4876,7 @@ namespace Fantasy
|
||||
MessageObjectPool<AwardInfo>.Return(this);
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public int ConfigId { get; set; }
|
||||
public long ConfigId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
@@ -4646,7 +5037,7 @@ namespace Fantasy
|
||||
[ProtoMember(4)]
|
||||
public uint Sort { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public string Tag { get; set; }
|
||||
public uint Tag { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// fish信息
|
||||
|
||||
Reference in New Issue
Block a user