Example #1
0
        public void Run()
        {
            if (server == null)
            {
                server = new ServerCommunicator();
            }
            Osc.Tree.ServerScripts.Endpoints.Clear();

            var result = compiler.Run(server);

            if (result != string.Empty)
            {
                Log.Log.Handle.AddEntry("Server Script Error: " + result);
            }
        }
Example #2
0
        public bool Run()
        {
            if (client == null)
            {
                client = new ClientCommunicator();
            }
            Osc.Tree.ClientScripts.Endpoints.Clear();

            var result = compiler.Run(client);

            if (result != string.Empty)
            {
                Log.Log.Handle.AddEntry("Client Script Error: " + result);
                return(false);
            }
            return(true);
        }