예제 #1
0
        public static LootContentData Deserialize(LootContentSerializable serializable, Database database)
        {
            var data = new LootContentData(serializable, database);

            data.CreateContent(serializable, database);
            return(data);
        }
예제 #2
0
 public Content_HaveItem(RequirementSerializable serializable, Database database)
 {
     if (serializable == null || database == null)
     {
         return;
     }
     Loot = LootContentData.Deserialize(serializable.Loot, database);
 }
예제 #3
0
 private LootItemData(LootItemSerializable serializable, Database database)
 {
     Weight = new NumericValue <float>(serializable.Weight, -2.147484E+09f, 2.147484E+09f);
     Loot   = LootContentData.Deserialize(serializable.Loot, database);
 }
예제 #4
0
 private LootData(LootSerializable serializable, Database database)
 {
     ItemId = new ItemId <LootData>(serializable.Id, serializable.FileName);
     Loot   = LootContentData.Deserialize(serializable.Loot, database);
 }