From 728415902ba8451192bb53c45451c98af404a16c Mon Sep 17 00:00:00 2001 From: asesidaa <1061472754@qq.com> Date: Sun, 26 Feb 2023 00:57:03 +0800 Subject: [PATCH] Add entities for online matching --- Domain/Entities/OnlineMatch.cs | 8 +++++ Domain/Entities/OnlineMatchEntry.cs | 45 +++++++++++++++++++++++++++++ GCRelayServer/GCRelayServer.csproj | 9 +++--- 3 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 Domain/Entities/OnlineMatch.cs create mode 100644 Domain/Entities/OnlineMatchEntry.cs diff --git a/Domain/Entities/OnlineMatch.cs b/Domain/Entities/OnlineMatch.cs new file mode 100644 index 0000000..a2b407d --- /dev/null +++ b/Domain/Entities/OnlineMatch.cs @@ -0,0 +1,8 @@ +namespace Domain.Entities; + +public class OnlineMatch +{ + public long MatchId { get; set; } + + public List Entries { get; set; } = new(); +} \ No newline at end of file diff --git a/Domain/Entities/OnlineMatchEntry.cs b/Domain/Entities/OnlineMatchEntry.cs new file mode 100644 index 0000000..e17dad6 --- /dev/null +++ b/Domain/Entities/OnlineMatchEntry.cs @@ -0,0 +1,45 @@ +namespace Domain.Entities; + +public partial class OnlineMatchEntry +{ + public long MatchId { get; set; } + + public long EntryId { get; set; } + + public long MachineId { get; set; } + + public long EventId { get; set; } + + public DateTime StartTime { get; set; } + + public long Status { get; set; } + + public long CardId { get; set; } + + public string PlayerName { get; set; } = string.Empty; + + public long AvatarId { get; set; } + + public long TitleId { get; set; } + + public long ClassId { get; set; } + + public long GroupId { get; set; } + + public long TenpoId { get; set; } = 1337; + + public string TenpoName { get; set; } = "GCLocalServer"; + + public long PrefId { get; set; } + + public string Pref { get; set; } = "nesys"; + + public long MessageId { get; set; } + + public long MatchTimeout { get; set; } = 99; + + public long MatchWaitTime { get; set; } = 10; + + public long MatchRemainingTime { get; set; } = 89; + +} \ No newline at end of file diff --git a/GCRelayServer/GCRelayServer.csproj b/GCRelayServer/GCRelayServer.csproj index cff841b..1c5b3f7 100644 --- a/GCRelayServer/GCRelayServer.csproj +++ b/GCRelayServer/GCRelayServer.csproj @@ -2,15 +2,16 @@ Exe - net6.0 + net7.0 enable enable + 11 - - - + + +