mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-13 23:14:53 +01:00
remove tcp GameServer and rename SDKServer
This commit is contained in:
@@ -5,10 +5,10 @@ using Serilog;
|
||||
using Novaria.Common.Core;
|
||||
using Proto;
|
||||
using Google.Protobuf;
|
||||
using Novaria.SDKServer.Controllers.Api.ProtocolHandlers;
|
||||
using Novaria.GameServer.Controllers.Api.ProtocolHandlers;
|
||||
using Novaria.Common.Util;
|
||||
|
||||
namespace Novaria.SDKServer.Controllers.Api
|
||||
namespace Novaria.GameServer.Controllers.Api
|
||||
{
|
||||
[Route("/agent-zone-1")]
|
||||
public class GatewayController : ControllerBase
|
||||
|
||||
@@ -4,7 +4,7 @@ using Proto;
|
||||
using Serilog;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Novaria.SDKServer.Controllers.Api.ProtocolHandlers
|
||||
namespace Novaria.GameServer.Controllers.Api.ProtocolHandlers
|
||||
{
|
||||
public class Login : ProtocolHandlerBase
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Proto;
|
||||
using Serilog;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Novaria.SDKServer.Controllers.Api.ProtocolHandlers
|
||||
namespace Novaria.GameServer.Controllers.Api.ProtocolHandlers
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
||||
internal class ProtocolHandlerAttribute : Attribute
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Serilog;
|
||||
|
||||
namespace Novaria.SDKServer.CoNovariaollers
|
||||
namespace Novaria.GameServer.CoNovariaollers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("/health-game")]
|
||||
|
||||
@@ -5,7 +5,7 @@ using Novaria.Common.Util;
|
||||
using Pb;
|
||||
using Serilog;
|
||||
|
||||
namespace Novaria.SDKServer.CoNovariaollers
|
||||
namespace Novaria.GameServer.CoNovariaollers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("/meta")]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Serilog;
|
||||
|
||||
namespace Novaria.SDKServer.CoNovariaollers
|
||||
namespace Novaria.GameServer.CoNovariaollers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("/user")]
|
||||
|
||||
@@ -5,15 +5,15 @@ using Novaria.Common.Core;
|
||||
using Proto;
|
||||
using Serilog;
|
||||
|
||||
using Novaria.SDKServer.Controllers.Api.ProtocolHandlers;
|
||||
using Novaria.GameServer.Controllers.Api.ProtocolHandlers;
|
||||
using Novaria.Common.Util;
|
||||
using System.Numerics;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using System.Text;
|
||||
|
||||
namespace Novaria.SDKServer
|
||||
namespace Novaria.GameServer
|
||||
{
|
||||
public class SDKServer
|
||||
public class GameServer
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
@@ -29,7 +29,7 @@ namespace Novaria.SDKServer
|
||||
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddProtocolHandlerFactory();
|
||||
builder.Services.AddControllers().AddApplicationPart(Assembly.GetAssembly(typeof(SDKServer)));
|
||||
builder.Services.AddControllers().AddApplicationPart(Assembly.GetAssembly(typeof(GameServer)));
|
||||
|
||||
// Add all Handler Groups
|
||||
var handlerGroups = Assembly.GetAssembly(typeof(ProtocolHandlerFactory))
|
||||
Reference in New Issue
Block a user