ship skin comamnd and changing skin

This commit is contained in:
rfi
2024-02-23 14:35:50 +07:00
parent c560bd8d7b
commit 529d404c12
15 changed files with 232033 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
using BLHX.Server.Common.Utils;
using BLHX.Server.Game.Handlers;
using System.Reflection;
namespace BLHX.Server.Game.Commands;
@@ -77,6 +78,11 @@ public abstract class Command
Execute(args);
}
public virtual void NotifySuccess(Connection connection)
{
connection.SendSystemMsg($"{GetType().Name} success!");
}
protected T Parse<T>(string? value, T fallback = default!)
{
var tryParseMethod = typeof(T).GetMethod("TryParse", [typeof(string), typeof(T).MakeByRefType()]);