mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-13 04:45:03 +01:00
multi clearing reward handling
This commit is contained in:
19
AscNet.GameServer/Game/Fight.cs
Normal file
19
AscNet.GameServer/Game/Fight.cs
Normal 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
@@ -3,6 +3,7 @@ using System.Net.Sockets;
|
|||||||
using AscNet.Common;
|
using AscNet.Common;
|
||||||
using AscNet.Common.Database;
|
using AscNet.Common.Database;
|
||||||
using AscNet.Common.Util;
|
using AscNet.Common.Util;
|
||||||
|
using AscNet.GameServer.Game;
|
||||||
using AscNet.Logging;
|
using AscNet.Logging;
|
||||||
using MessagePack;
|
using MessagePack;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
@@ -17,6 +18,7 @@ namespace AscNet.GameServer
|
|||||||
public Player player = default!;
|
public Player player = default!;
|
||||||
public Character character = default!;
|
public Character character = default!;
|
||||||
public Stage stage = default!;
|
public Stage stage = default!;
|
||||||
|
public Fight? fight;
|
||||||
public Inventory inventory = default!;
|
public Inventory inventory = default!;
|
||||||
public readonly Logger log;
|
public readonly Logger log;
|
||||||
private long lastPacketTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
|
private long lastPacketTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
|
||||||
|
|||||||
Reference in New Issue
Block a user