Пример #1
0
        public Loot(SerializableLootContent serializable, Database database)
            : this()
        {
            if (serializable == null)
            {
                return;
            }

            Type    = (LootItemType)serializable.Type;
            Content = LootFactory.CreateLoot(Type);
            Content.Load(serializable, database);
        }
Пример #2
0
 private void OnTypeChanged()
 {
     Content = LootFactory.CreateLoot(Type);
     DataChangedEvent?.Invoke();
     LayoutChangedEvent?.Invoke();
 }
Пример #3
0
 public Loot()
 {
     Type    = LootItemType.None;
     Content = LootFactory.CreateLoot(Type);
 }