コード例 #1
0
        /// TODO On property changed?
        private void UpdateLists()
        {
            Nodes.Clear();

            List <Node> nodes = testsLogic.GetListForTree();

            foreach (Node node in nodes)
            {
                Nodes.Add(node);
            }

            TestsNames.Clear();

            List <string> testsNames = testsLogic.ShowTestsNames();

            foreach (string name in testsNames)
            {
                TestsNames.Add(name);
            }
        }
コード例 #2
0
	public int RollTest(TestsNames pmName)
	{
		return DiceRoller.RollDice (20, 1) + mAbilities [mTestAbilities [pmName]].Modifier;
	}