2026-02-26 11:05:56 +08:00
|
|
|
using Assets.MyGame.Scripts.Net;
|
|
|
|
|
using Assets.MyGame.Scripts.Net.WebResponses.ChineseChess;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public partial class WebSocketSendList
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// SignalR 消息类型,客户端调用服务器永远是 1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int type = 1;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 调用 ID(字符串也可以)
|
|
|
|
|
/// 用来区分不同请求,可随便填
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string invocationId;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 要调用的服务器方法名,例如:JoinRoom、KillFish、Fire
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string target;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 参数数组(SignalR 要求必须是数组)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<object> arguments;
|
2026-03-09 09:25:01 +08:00
|
|
|
public WebSocketSendList() { }
|
2026-02-26 11:05:56 +08:00
|
|
|
public WebSocketSendList(string target, params object[] param)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
invocationId = "1";
|
|
|
|
|
this.target = target;
|
|
|
|
|
arguments = param.ToList();
|
|
|
|
|
}
|
|
|
|
|
}
|