- Directory.Build.props: 生成 XML 注释供 Swagger 展示中文说明 - AdminHost/FishGameHost: 接入 Swashbuckle,路由 adminswagger / roomswagger - 后台前端 config.js 改为同源相对地址,适配反向代理 - socket.html(SignalR 协议文档)纳入仓库 - deploy/: 本机构建(容器内编译,规避杀软)、服务器替换脚本、Nginx 配置
66 lines
2.2 KiB
C#
66 lines
2.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using FishGameService.Services;
|
|
using RedisService.Param;
|
|
|
|
namespace FishGameService.GameSend
|
|
{
|
|
public interface IFishingSendService
|
|
{
|
|
|
|
void BindSuccess(string cid);
|
|
void ErrorMessage(string cid, int code, string msg);
|
|
|
|
|
|
|
|
void SyncGameData(string roomId, object data);
|
|
|
|
void RoomKillNotice(string roomId, string fishNumber, string userId, long gold, string fishId, long timespan, double beishu = 1,long skillsGold = 0,int fishScore = 1, object param = null, object drop = null, long gainExp = 0, long exp = 0, int level = 0, long expMax = 0);
|
|
|
|
void RoomJoinNotice(string roomId, RedisGamePlayer player);
|
|
|
|
Task SendRoomInfo(string cid, RedisGameRoom roomInfo, List<ActiveFish> activeFishes = null);
|
|
|
|
void RoomLeaveNotice(string roomId, string userId);
|
|
|
|
void BotLeaveRoomNotice(string roomId, string userId);
|
|
|
|
void RoomDisconnectNotice(string roomId, string userId);
|
|
|
|
|
|
|
|
void ChangeControllerUser(string roomId, string userId);
|
|
|
|
void HostDisconnectNotice(string roomId);
|
|
void UsePropNotice(string roomId, string userId, string propNumber);
|
|
|
|
void TorpedoResultNotice(string roomId, string userId, string propNumber, long gold, string color);
|
|
void ChangeGunMultipleNotice(string roomId, string userId, int multiple);
|
|
|
|
void RoomFireNotice(string roomId, string userId, List<string> bulletIds, long gold, int count, object extra = null, bool isBot = false);
|
|
|
|
Task RoomFireNoticeAsync(string roomId, string callerCid, string userId, List<string> bulletIds, long gold, int count, object extra = null, bool isBot = false);
|
|
|
|
|
|
void SyncPlayerGold(string cid, long gold);
|
|
|
|
void SendPlayerInfo(string cid, RedisGamePlayer player);
|
|
|
|
void PlayerAfkNotice(string roomId, string userId);
|
|
void PlayerCancelAfkNotice(string roomId, string userId);
|
|
|
|
|
|
|
|
|
|
|
|
void KillNotice(string fishNumber, string userName, long gold);
|
|
void KillNotice(string fishNumber, string userName, long gold, string fishName, long multiplier,
|
|
string gameTypeName, string roomName, long timestamp);
|
|
|
|
|
|
}
|
|
}
|