2using System.Collections.Generic;
7[JsonObject(MemberSerialization.OptOut)]
10 public List<CustomThingContent>
items =
new List<CustomThingContent>();
15 List<Thing> list =
new List<Thing>();
27 ModUtil.LogModError(
"can't create stock item '" +
item.id +
"' in '" + base.ContentId +
"'", base.Owner);
31 ModUtil.LogModError(
"can't create stock item '" +
item.id +
"' in '" + base.ContentId +
"'\n" + ex.Message, base.Owner);
32 Debug.LogException(ex);
40 var (fileInfo, eMod) = PackageIterator.GetFilesEx(
"Data/stock_" + stockId +
".json").LastOrDefault();
65 return $"{base.ContentId}/items({items.Count})";
static CustomMerchantStock CreateFromId(string stockId, ModPackage owner=null)
override string ToString()
List< Thing > Generate(Card owner)
override void LoadContent()
List< CustomThingContent > items