feat: add npc info (level and aggro radius)

This commit is contained in:
k0t9i
2023-01-31 00:32:26 +04:00
parent a8734a4ca0
commit 89cec4f40f
11 changed files with 26504 additions and 20 deletions

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace Client.Application.Converters
{
public class CenterOfParentConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return (double)values[0] + (double)values[2] / 2 - (double)values[1] / 2;
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
}