コード例 #1
0
        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);
        }
コード例 #2
0
 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;
 }