Updated ItemEventRouterBase types to better match live

Added EventOutputHolder class + stubbed out some functions
This commit is contained in:
Chomp
2025-01-12 11:56:21 +00:00
parent 50d744e9d7
commit e512a83fa3
2 changed files with 108 additions and 9 deletions
@@ -1,4 +1,4 @@
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Ragfair;
using Core.Models.Enums;
@@ -12,11 +12,7 @@ public class ItemEventRouterBase
public List<Warning>? Warnings { get; set; }
[JsonPropertyName("profileChanges")]
public object ProfileChanges { get; set; } // TODO: Types given TProfileChanges | ""
}
public class TProfileChanges : Dictionary<string, ProfileChange>
{
public Dictionary<string, ProfileChange> ProfileChanges { get; set; }
}
public class Warning
@@ -40,7 +36,7 @@ public class ProfileChange
public string? Id { get; set; }
[JsonPropertyName("experience")]
public int? Experience { get; set; }
public double? Experience { get; set; }
[JsonPropertyName("quests")]
public List<Quest>? Quests { get; set; }
@@ -68,7 +64,7 @@ public class ProfileChange
public Skills? Skills { get; set; }
[JsonPropertyName("health")]
public Common.Health Health { get; set; }
public BotBaseHealth Health { get; set; }
[JsonPropertyName("traderRelations")]
public Dictionary<string, TraderData>? TraderRelations { get; set; }
@@ -187,4 +183,4 @@ public class Product
[JsonPropertyName("upd")]
public Upd? Upd { get; set; }
}
}