private static ChatMapper.Item ItemToCmp(DialogueSystem.Item item) { ChatMapper.Item cmpItem = new ChatMapper.Item(); cmpItem.ID = item.id; cmpItem.Fields = FieldsToCmp(item.fields); AddRequiredItemFields(cmpItem.Fields); Field entryCount = Field.Lookup(item.fields, "Entry Count"); if (entryCount != null) { maxEntryCount = Mathf.Max(maxEntryCount, Tools.StringToInt(entryCount.value)); } return(cmpItem); }
private static ChatMapper.Item ItemToCmp(DialogueSystem.Item item) { ChatMapper.Item cmpItem = new ChatMapper.Item(); cmpItem.ID = item.id; cmpItem.Fields = FieldsToCmp(item.fields); AddRequiredItemFields(cmpItem.Fields); Field entryCount = Field.Lookup(item.fields, "Entry Count"); if (entryCount != null) maxEntryCount = Mathf.Max(maxEntryCount, Tools.StringToInt(entryCount.value)); return cmpItem; }