Beispiel #1
0
        public static void SendWorkspaceSettings()
        {
#if !BEHAVIAC_RELEASE
            if (Config.IsSocketing)
            {
                if (!s_tracer.IsWorkspaceSent() && s_tracer.IsConnected())
                {
                    string wksAbsPath = Workspace.GetWorkspaceAbsolutePath();

                    if (!string.IsNullOrEmpty(wksAbsPath))
                    {
                        Workspace.EFileFormat format = Workspace.FileFormat;
                        string formatString          = (format == Workspace.EFileFormat.EFF_xml ? "xml" : "bson");

                        string msg = string.Format("[workspace] {0} \"{1}\"\n", formatString, wksAbsPath);
                        behaviac.Debug.Log(msg);

                        //behaviac.Socket.SendText(msg);
                        LogManager.LogWorkspace(msg);

                        s_tracer.SetWorkspaceSent(true);
                    }
                }
            }
#endif
        }