2025-11-16 19:33:01 +08:00

82 lines
2.4 KiB
C#

namespace XPrintServer.Api.Net
{
public static class NetEventKeys
{
/// <summary>
/// 心跳包
/// </summary>
public const string HEARTBEAT_SUCCESS = "HEARTBEAT_SUCCESS";
/// <summary>
/// 收到信息
/// </summary>
public const string RECEIVE_MSG = "RECEIVE_MSG";
/// <summary>
/// 收到对面的单发私发信息
/// </summary>
public const string RECEIVE_FACE_MSG = "RECEIVE_FACE_MSG";
/// <summary>
/// 收到对面的房间群发信息
/// </summary>
public const string RECEIVE_ROOM_MSG = "RECEIVE_ROOM_MSG";
/// <summary>
/// 游戏即将结束,倒计时指定秒数,秒数在服务端设置
/// </summary>
public const string GAME_WILLOVER = "GAME_WILLOVER";
/// <summary>
/// 游戏结束,到结算页面
/// </summary>
public const string GAME_OVER = "GAME_OVER";
/// <summary>
/// 获取房间列表
/// </summary>
public const string GET_ROOMLIST = "GET_ROOMLIST";
/// <summary>
/// 获取房间列表,带上所有房间的数量
/// </summary>
public const string GET_ROOMLIST_WITH_TOTALCOUNT = "GET_ROOMLIST_WITH_TOTALCOUNT";
/// <summary>
/// 登录房间成功
/// </summary>
public const string LOGIN_SUCCESS = "LOGIN_SUCCESS";
/// <summary>
/// 登录房间成功
/// </summary>
public const string USER_OFFLINE = "USER_OFFLINE";
/// <summary>
/// 进入自己创建的房间,或者他人建的,正在等待的房间
/// </summary>
public const string ENTER_ROOM = "ENTER_ROOM";
/// <summary>
/// 房间人数已满
/// </summary>
public const string IS_SET_MAX = "IS_SET_MAX";
/// <summary>
/// 获取分享房间的信息
/// </summary>
public const string GET_SHARE_ROOM = "GET_SHARE_ROOM";
///// <summary>
///// 房间开始游戏倒计时,倒计时完开始读取地图,准备进入游戏
///// </summary>
//public const string ROOM_START_TIME_DOWN = "roomStartTimeDown";
/// <summary>
/// 同步图片信息
/// </summary>
public const string SYNC_IMAGE = "SYNC_IMAGE";
}
}