mirror of
https://github.com/rafi1212122/BLHX.Server.git
synced 2025-12-12 14:34:39 +01:00
eqip notifs
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
29
BLHX.Server.Game/Handlers/P14.cs
Normal file
29
BLHX.Server.Game/Handlers/P14.cs
Normal 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());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user