예제 #1
0
        private static IEnumerable <DataStorage.WarewolfAtom> EvalAsListHelper(DataStorage.WarewolfRecordset recSetData)
        {
            var data       = recSetData.Data.ToArray();
            var listOfData = new List <DataStorage.WarewolfAtom>();

            foreach (var keyValuePair in data)
            {
                if (keyValuePair.Key == "WarewolfPositionColumn")
                {
                    continue;
                }
                listOfData.AddRange(keyValuePair.Value.ToList());
            }
            return(listOfData);
        }
예제 #2
0
        private static string WarewolfEvalResultToStringHelper(DataStorage.WarewolfRecordset recSetData)
        {
            var data       = recSetData.Data.ToArray();
            var listOfData = new List <string>();

            foreach (var keyValuePair in data)
            {
                if (keyValuePair.Key == "WarewolfPositionColumn")
                {
                    continue;
                }
                listOfData.AddRange(keyValuePair.Value.Select(WarewolfAtomToString).ToList());
            }
            return(string.Join(",", listOfData));
        }