public Loot(SerializableLootContent serializable, Database database) : this() { if (serializable == null) { return; } Type = (LootItemType)serializable.Type; Content = LootFactory.CreateLoot(Type); Content.Load(serializable, database); }
private void OnTypeChanged() { Content = LootFactory.CreateLoot(Type); DataChangedEvent?.Invoke(); LayoutChangedEvent?.Invoke(); }
public Loot() { Type = LootItemType.None; Content = LootFactory.CreateLoot(Type); }