2025-11-16 19:16:44 +08:00

72 lines
2.1 KiB
C#

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