utils for JSON files and RNG/rolling, abstracted arg parsing for commands

This commit is contained in:
Kyle Belanger
2024-02-18 23:11:58 -05:00
parent d2552b74b7
commit 7445a1f5d8
9 changed files with 232 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
using BHXY.Server.Common.Proto.p10;
using BLHX.Server.Common.Proto;
using BLHX.Server.Common.Utils;
namespace BLHX.Server.Game.Handlers
{
@@ -11,11 +12,11 @@ namespace BLHX.Server.Game.Handlers
var req = packet.Decode<Cs10800>();
connection.Send(new Sc10801()
{
GatewayIp = "192.168.1.4",
GatewayPort = 20000,
Url = "http://192.168.1.4",
ProxyIp = "192.168.1.4",
ProxyPort = 20000,
GatewayIp = Config.Instance.Address,
GatewayPort = Config.Instance.Port,
Url = "http://" + Config.Instance.Address,
ProxyIp = Config.Instance.Address,
ProxyPort = Config.Instance.Port,
Versions = [
"$azhash$7$1$459$470aa097fec844d6",
"$cvhash$467$98edcdd4e7dac668",
@@ -48,10 +49,10 @@ namespace BLHX.Server.Game.Handlers
{
Ids = [0],
Name = "BLHX.Server",
Ip = "192.168.1.4",
Port = 20000,
ProxyIp = "192.168.1.4",
ProxyPort = 20000
Ip = Config.Instance.Address,
Port = Config.Instance.Port,
ProxyIp = Config.Instance.Address,
ProxyPort = Config.Instance.Port
}
],
ServerTicket = req.Arg3