Begin moving things out of allmsgs.proto

This commit is contained in:
Mikhail
2024-07-15 11:13:02 -04:00
parent 702995bcfd
commit 56c526cec1
16 changed files with 89 additions and 105 deletions

View File

@@ -1,6 +1,7 @@
using ASodium;
using EmbedIO;
using Google.Protobuf;
using nksrv.Net;
using nksrv.Utils;
using Swan.Logging;

View File

@@ -1,4 +1,5 @@
using nksrv.Utils;
using nksrv.Net;
using nksrv.Utils;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@@ -1,9 +1,5 @@
using nksrv.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using nksrv.Net;
using nksrv.Utils;
namespace nksrv.LobbyServer.Msgs.Antibot
{

View File

@@ -1,9 +1,4 @@
using nksrv.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace nksrv.LobbyServer.Msgs.Archive
{

View File

@@ -1,4 +1,5 @@
using Google.Protobuf;
using nksrv.Net;
using nksrv.Utils;
using System;
using System.Collections.Generic;

View File

@@ -1,4 +1,5 @@
using nksrv.Utils;
using nksrv.Net;
using nksrv.Utils;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@@ -1,4 +1,5 @@
using nksrv.Utils;
using nksrv.Net;
using nksrv.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -13,8 +14,9 @@ namespace nksrv.LobbyServer.Msgs.Misc
protected override async Task HandleAsync()
{
var r = new SentryDataResponse();
// TODO check proper response from real server
await WriteDataAsync(r);
// TODO: figure out a way to disable sentry so that Shift Up devs wouldn't be annoyed by this server
await WriteDataAsync(r);
}
}
}

View File

@@ -1,10 +1,5 @@
using Google.Protobuf.WellKnownTypes;
using nksrv.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using nksrv.Utils;
using nksrv.Net;
namespace nksrv.LobbyServer.Msgs.Misc
{
@@ -13,7 +8,7 @@ namespace nksrv.LobbyServer.Msgs.Misc
{
protected override async Task HandleAsync()
{
var r = new ResGetServerInfo();
var r = new GetServerInfoResponse();
// todo: reimplement this as well
r.MatchUrl = "https://global-match.nikke-kr.com";

View File

@@ -1,4 +1,5 @@
using Google.Protobuf;
using nksrv.Net;
using nksrv.StaticInfo;
using nksrv.Utils;
@@ -14,7 +15,7 @@ namespace nksrv.LobbyServer.Msgs.Misc
var r = new StaticDataPackResponse();
r.Url = GameConfig.Root.StaticData.Url;
r.Version = GameConfig.Root.StaticData.Version;
r.Size = StaticDataParser.Instance.Size;
r.FileSize = StaticDataParser.Instance.Size;
r.Sha256Sum = ByteString.CopyFrom(StaticDataParser.Instance.Sha256Hash);
r.Salt1 = ByteString.CopyFrom(Convert.FromBase64String(GameConfig.Root.StaticData.Salt1));
r.Salt2 = ByteString.CopyFrom(Convert.FromBase64String(GameConfig.Root.StaticData.Salt2));

View File

@@ -1,4 +1,5 @@
using nksrv.StaticInfo;
using nksrv.Net;
using nksrv.StaticInfo;
using nksrv.Utils;
using Swan.Logging;
using System;

View File

@@ -1,12 +1,5 @@
using nksrv.Utils;
using Swan.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Google.Rpc.Context.AttributeContext.Types;
using static System.Net.Mime.MediaTypeNames;
using nksrv.Net;
using nksrv.Utils;
namespace nksrv.LobbyServer.Msgs.Stage
{

View File

@@ -1,4 +1,5 @@
using nksrv.Utils;
using nksrv.Net;
using nksrv.Utils;
namespace nksrv.LobbyServer.Msgs.System
{
@@ -9,9 +10,9 @@ namespace nksrv.LobbyServer.Msgs.System
{
var req = await ReadData<CheckVersionRequest>();
var response = new CheckVersionResponse();
response.Availability = 0; // None = 0, Available = 1, Mandatory = 2
response.VersionStatus = 0;
await WriteDataAsync(response);
await WriteDataAsync(response);
}
}
}