multi clearing reward handling

This commit is contained in:
rfi 2023-12-07 18:37:38 +07:00
parent 6d226c5fca
commit 5824edbf4f
3 changed files with 79 additions and 47 deletions

View File

@ -0,0 +1,19 @@
using AscNet.Common.MsgPack;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AscNet.GameServer.Game
{
public class Fight
{
public PreFightRequest PreFight { get; set; }
public Fight(PreFightRequest preFight)
{
PreFight = preFight;
}
}
}

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@ using System.Net.Sockets;
using AscNet.Common;
using AscNet.Common.Database;
using AscNet.Common.Util;
using AscNet.GameServer.Game;
using AscNet.Logging;
using MessagePack;
using Newtonsoft.Json;
@ -17,6 +18,7 @@ namespace AscNet.GameServer
public Player player = default!;
public Character character = default!;
public Stage stage = default!;
public Fight? fight;
public Inventory inventory = default!;
public readonly Logger log;
private long lastPacketTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();