fix: fix toggle soulshot method

This commit is contained in:
k0t9i
2023-02-10 19:00:56 +04:00
parent 81e26a7e52
commit 7276b24249
22 changed files with 261 additions and 70 deletions

View File

@@ -11,9 +11,9 @@ using System.Threading.Tasks;
namespace Client.Infrastructure.Factories
{
public class ItemFactory : EntityFactoryInterface<BaseItem>
public class ItemFactory : EntityFactoryInterface<ItemInterface>
{
public BaseItem? Create(string data)
public ItemInterface? Create(string data)
{
var type = JsonConvert.DeserializeObject<ItemType>(data, settings);
@@ -33,7 +33,7 @@ namespace Client.Infrastructure.Factories
throw new ArgumentException("Invalid item type " + type.Type.ToString());
}
public void Update(BaseItem entity, string data)
public void Update(ItemInterface entity, string data)
{
JsonConvert.PopulateObject(data, entity, settings);
}