Beispiel #1
0
 public static void Initialize(string QueryName)
 {
     m_controller = new CurveFlowController();
     m_controller.InitializeLog(PrintToLog, (MessageType)7);
     m_controller.InitializeCurve(Expression);
     if (!Directory.Exists(folderPath))
     {
         Directory.CreateDirectory(folderPath);
     }
     if (!File.Exists(folderPath + "/" + WorldController.ProfileName + ".pfl"))
     {
         //Create and load a new profile if one does not already exist
         CreateAndLoadNewProfile();
     }
     else
     {
         //If a previous profile exists, load it
         m_controller.LoadProfile(File.ReadAllText(folderPath + "/" + WorldController.ProfileName + ".pfl"));
     }
     if (m_writeDebugFile)
     {
         m_valuesOverTime.Add("GrabSkill", new List <float>());
         m_valuesOverTime.Add("DodgeSkill", new List <float>());
     }
     m_query = new OutputQuery(Resources.Load <TextAsset>("QueryFiles/" + QueryName).text);
 }
Beispiel #2
0
 public static void LoadQuery(string QueryName)
 {
     Debug.Log(QueryName);
     m_query = new OutputQuery(Resources.Load <TextAsset>("QueryFiles/" + QueryName).text);
 }
 public override Expression <Func <Output, bool> > ToQuery()
 => OutputQuery.GetQuery(this);