Exemple #1
0
        public static TBot_Brain tbot_Brain(this TM_Proxy tmProxy)
        {
            if (tmProxy.isNull())
            {
                return(null);
            }
            var tbotBrain = tmProxy.invoke_Static <TBot_Brain>(typeof(TBot_Brain), "Create");

            if (tmProxy.tbot_Brain_TBotScriptsFolder().folder_Not_Exists())
            {
                var path_TBotScripts = tmProxy.apiCassini.webRoot().pathCombine("Tbot");
                tmProxy.tbot_Brain_TBotScriptsFolder(path_TBotScripts);
                tmProxy.tbot_Brain_SetAvailableScripts();
            }
            return(tbotBrain);
        }