eqip notifs

This commit is contained in:
rfi
2024-02-23 09:51:01 +07:00
parent bdc8785fe1
commit c560bd8d7b
3 changed files with 33 additions and 1 deletions

View File

@@ -100,6 +100,7 @@ public static class CommandHandlerFactory
static readonly Dictionary<string, Action<Dictionary<string, string>>> commandFunctions; static readonly Dictionary<string, Action<Dictionary<string, string>>> commandFunctions;
static readonly Dictionary<string, Action<Dictionary<string, string>, Connection>> commandFunctionsConn; static readonly Dictionary<string, Action<Dictionary<string, string>, Connection>> commandFunctionsConn;
private static readonly char[] separator = new[] { ' ' };
static CommandHandlerFactory() static CommandHandlerFactory()
{ {
@@ -133,7 +134,7 @@ public static class CommandHandlerFactory
public static void HandleCommand(string commandLine, Connection? connection = null) public static void HandleCommand(string commandLine, Connection? connection = null)
{ {
var parts = commandLine.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); var parts = commandLine.Split(separator, StringSplitOptions.RemoveEmptyEntries);
if (parts.Length == 0) if (parts.Length == 0)
return; return;

View File

@@ -166,6 +166,8 @@ namespace BLHX.Server.Game
this.NotifyShopMonthData(); this.NotifyShopMonthData();
this.NotifyChapterData(); this.NotifyChapterData();
this.NotifyBagData(); this.NotifyBagData();
this.NotifyEquipList();
this.NotifyEquipSkinList();
this.NotifyBuildShipData(); this.NotifyBuildShipData();
this.NotifyActivityData(); this.NotifyActivityData();
this.NotifyDormData(); this.NotifyDormData();

View File

@@ -0,0 +1,29 @@
using BLHX.Server.Common.Proto.p14;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLHX.Server.Game.Handlers
{
internal class P14
{
}
static class P14ConnectionNotifyExtensions
{
public static void NotifyEquipList(this Connection connection)
{
connection.Send(new Sc14001()
{
SpweaponBagSize = 150
});
}
public static void NotifyEquipSkinList(this Connection connection)
{
connection.Send(new Sc14101());
}
}
}