Skip to content
Snippets Groups Projects
Select Git revision
  • 72685af67364d7ad57e4d5f1158c2d28a1382766
  • master default
  • dependabot/nuget/source/Sample/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/MasterDevs.ChromeDevTools.Tests/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ProtocolGenerator/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ChromeDevTools/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ChromeDevTools/System.Net.Http-4.3.4
  • revert-29-revert-24-protocol_62
  • revert-24-protocol_62
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0.0.40915
13 results

Event.cs

Blame
  • MMTInterface.cs 1.43 KiB
    using System;
    using System.Diagnostics;
    using System.ComponentModel;
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    
    public class MMTInterface : MonoBehaviour
    {
        private Process mmtServerProcess;
        private ProcessStartInfo mmtServerProcessInfo;
    
        // Start is called before the first frame update
    
        
        void Start()
        {
            //Start the mmt.bat for carrying out http-Requests
            //TODO: Putting the absolute path to mmt.bat here should soon be changed
            /*mmtServerProcessInfo = new ProcessStartInfo("cmd.exe", "/c " + "C:\\Users\\John\\Downloads\\Program_Downloads\\For_FAU_PROJECT_MA_MMT\\MMT\\deploy\\mmt.bat");
            //CreateNoWindow = flase -> For now only for testing purposes
            mmtServerProcessInfo.CreateNoWindow = false;
            mmtServerProcessInfo.UseShellExecute = false;
            mmtServerProcessInfo.RedirectStandardError = true;
            mmtServerProcessInfo.RedirectStandardOutput = true;
    
            mmtServerProcess = Process.Start(mmtServerProcessInfo);
            */
    
         //   CommunicationEvents.AddPointEvent.AddListener(AddFactToMMT);
          //  CommunicationEvents.RemoveEvent.AddListener(RemoveFactFromMMT);   
            
    
        }
        /*
        void AddFactToMMT(RaycastHit hit, int id )
        {
            //send new fact to MMT
            UnityEngine.Debug.Log("add fact"+ id);
        }
    
        void RemoveFactFromMMT( int id)
        {
            UnityEngine.Debug.Log("remove fact"+ id);
        }
        */
     
    }