55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using CommonDomain;
|
|
using CommonDomain.Enum;
|
|
using FishGameService.Services;
|
|
using RedisService.Param;
|
|
|
|
namespace FishGameService.GameService
|
|
{
|
|
public interface IFishingGameService
|
|
{
|
|
|
|
|
|
|
|
Task JoinRoom(string cid, string roomId, string userId, int posituin);
|
|
|
|
|
|
|
|
Task<int> UseProp(string cid, string roomId, string userId, string propNumber, int diamond = 0);
|
|
|
|
Task<long> UseTorpedo(string cid, string roomId, string userId, string propNumber);
|
|
|
|
Task<(List<string> bullets, long gold)> FireCannon(string cid, string roomId, string userId, long gold, int count, long timestamp, string sign, object extra = null);
|
|
|
|
Task<(long gold, long gainExp, long exp, int level, long expMax)> KillFish(string cid, string roomId, string userId, string fishNumber, string fihsId, long gold, long timespan, string bulletId, long timestamp, string sign);
|
|
|
|
Task LeaveRoom(string cid, string roomId, string userId);
|
|
|
|
Task ChangeGunMultiple(string cid, string roomId, string userId, int multiple);
|
|
|
|
Task GetPlayerInfo(string cid, string roomId, string userId);
|
|
|
|
Task CancelPendingDisconnect(string userId);
|
|
|
|
Task HandleDisconnect(string cid);
|
|
|
|
|
|
Task SendRoomChange(RedisGameRoom room);
|
|
|
|
Task SetPlayerAfk(string cid, string roomId, string userId);
|
|
Task CancelPlayerAfk(string cid, string roomId, string userId);
|
|
|
|
List<ActiveFish> GetActiveFishes(string roomId);
|
|
|
|
|
|
Task<List<string>> BotFireCannon(string cid, string roomId, string botUserId, long gold, int count);
|
|
|
|
Task BotKillFish(string cid, string roomId, string botUserId, string fishNumber, string fishId, long gold, string bulletId);
|
|
|
|
}
|
|
}
|