internal static void CollectCommandLineFunctions()
 {
     foreach (string commandLineFunction in CommandLineFunctionality.CollectCommandLineFunctions())
     {
         Utilities.AddCommandLineFunction(commandLineFunction);
     }
 }
Esempio n. 2
0
        public static string RunTestOne()
        {
            try
            {
                string unused = "\n" + CommandLineFunctionality.CallFunction("campaign.fill_party", "10", out bool success);
                unused += "\n" + CommandLineFunctionality.CallFunction("campaign.add_prisoner", "5", out success);
                unused += "\n" + CommandLineFunctionality.CallFunction("captivity.fire_event", "CE_captor_male_escape", out success);

                return(success ? "Test One: Success" : "Test One: Failed\n" + unused);
            }
            catch (Exception e)
            {
                return("Test One: Failed - " + e);
            }
        }
Esempio n. 3
0
        public static string RunTestThree()
        {
            try
            {
                string unused = "\n" + CommandLineFunctionality.CallFunction("campaign.fill_party", "10", out bool success);
                unused += "\n" + CommandLineFunctionality.CallFunction("campaign.add_prisoner", "5 sword_sister", out success);
                unused += "\n" + CommandLineFunctionality.CallFunction("campaign.add_gold_to_hero", "10000", out success);

                return(success ? "Test Three: Success" : "Test Three: Failed\n" + unused);
            }
            catch (Exception e)
            {
                return("Test One: Failed - " + e);
            }
        }
Esempio n. 4
0
 internal static string CallCommandlineFunction(string functionName, string arguments) => CommandLineFunctionality.CallFunction(functionName, arguments, out bool _);