Example #1
0
 public Item_(ItemGeneratorAsset item)
 {
     Item_Name      = item.name;
     Item_FullName  = item.GetNameKey();
     Item_Id        = item.GeneratorId;
     Item_ShortName = GetShortName(item.name);
     Item_Guid      = RuntimeHurtDB.Instance.GetGuid(item);
 }
Example #2
0
 private void GetItemList()
 {
     _config.ItemList.Clear();
     Dictionary <int, ItemGeneratorAsset> .Enumerator itemsEnumerator = GlobalItemManager.Instance.GetGenerators().GetEnumerator();
     while (itemsEnumerator.MoveNext())
     {
         ItemGeneratorAsset item = itemsEnumerator.Current.Value;
         Items newItemList       = new Items
         {
             itemId          = item.GeneratorId,
             itemName        = item.ToString(),
             itemFullNameKey = item.GetNameKey(),
             itemGuid        = RuntimeHurtDB.Instance.GetGuid(item)
         };
         _config.ItemList.Add(newItemList);
     }
     SaveConfig();
 }