示例#1
0
        public static void PopulationIntents()
        {
            List <float> list = new List <float>();

            for (int i = 0; i < 30; i++)
            {
                list.Add((float)i);
            }
            List <float> list2 = new List <float>();

            for (int j = 0; j < 40; j += 2)
            {
                list2.Add((float)j);
            }
            DebugTables.MakeTablesDialog <float, float>(list2, (float ds) => "d-" + ds.ToString("F0"), list, (float rv) => rv.ToString("F2"), (float ds, float p) => StorytellerUtilityPopulation.CalculatePopulationIntent(StorytellerUtilityPopulation.StorytellerDef, p, (float)((int)ds)).ToString("F2"), "pop");
        }
示例#2
0
 private static string <PopulationIntents> m__2(float ds, float p)
 {
     return(StorytellerUtilityPopulation.CalculatePopulationIntent(StorytellerUtilityPopulation.StorytellerDef, p, (float)((int)ds)).ToString("F2"));
 }