mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-14 07:55:01 +01:00
Begin moving things out of allmsgs.proto
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using ASodium;
|
||||
using EmbedIO;
|
||||
using Google.Protobuf;
|
||||
using nksrv.Net;
|
||||
using nksrv.Utils;
|
||||
using Swan.Logging;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using nksrv.Utils;
|
||||
using nksrv.Net;
|
||||
using nksrv.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Google.Protobuf;
|
||||
using nksrv.Net;
|
||||
using nksrv.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using nksrv.Utils;
|
||||
using nksrv.Net;
|
||||
using nksrv.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using nksrv.StaticInfo;
|
||||
using nksrv.Net;
|
||||
using nksrv.StaticInfo;
|
||||
using nksrv.Utils;
|
||||
using Swan.Logging;
|
||||
using System;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user