Exemplo n.º 1
0
        protected Node m_Node; //[A]ddress

        #endregion Fields

        #region Constructors

        //used by conf
        protected EndPoint(IGlue glue)
        {
            if (glue == null)
                glue = ExecutionContext.Application.Glue;

            m_Glue = (IGlueImplementation)glue;
        }
Exemplo n.º 2
0
        protected EndPoint(IGlue glue, Node node, Binding binding)
        {
            if (glue == null)
                glue = ExecutionContext.Application.Glue;

            m_Glue = (IGlueImplementation)glue;

            m_Node = node;
            m_Binding = binding ?? m_Glue.GetNodeBinding(node);
        }
Exemplo n.º 3
0
 public JokeCalculatorClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 4
0
        public KerbulatorGUI(IGlue glue, bool inEditor, bool drawMainButton)
        {
            this.glue = glue;
            this.inEditor = inEditor;
            this.drawMainButton = drawMainButton;
            ChangeState(false);

            functionDir = Application.persistentDataPath + "/Kerbulator";

            // Sometimes, Application.persistentDataPath returns an empty string.
            // To not completely crash, create a KerbulatorFunctions directory in the users home dir
            if(functionDir == "/Kerbulator") {
                string homePath =
                    (Environment.OSVersion.Platform == PlatformID.Unix ||
                     Environment.OSVersion.Platform == PlatformID.MacOSX)
                     ? Environment.GetEnvironmentVariable("HOME")
                     : Environment.ExpandEnvironmentVariables("%HOMEDRIVE%%HOMEPATH%");
                functionDir = homePath +"/KerbulatorFunctions";
            }

            Debug.Log("Function dir: "+ functionDir);

            editFunctionContent = maneuverTemplate;

            if(!Directory.Exists(functionDir)) {
                Directory.CreateDirectory(functionDir);
            }

            // Load icons
            kerbulatorIcon = glue.GetTexture("kerbulator");
            editIcon = glue.GetTexture("edit");
            runIcon = glue.GetTexture("run");
            nodeIcon = glue.GetTexture("node");
            saveIcon = glue.GetTexture("save");
            deleteIcon = glue.GetTexture("delete");

            Scan();

            kalc = new Kerbulator(functionDir);
        }
Exemplo n.º 5
0
 public TelemetryReceiverClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 6
0
 public ClientEndPoint(IGlue glue, Node node, Binding binding = null) : base(glue, node, binding) { ctor(); }
Exemplo n.º 7
0
 public ClientEndPoint(IGlue glue, string node, Binding binding = null) : base(glue, new Node(node), binding) { ctor(); }
Exemplo n.º 8
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="glue"></param>
 /// <param name="node"></param>
 /// <param name="binding"></param>
 public AuthServiceClient(IGlue glue, string node, Binding binding = null) : base(glue, node, binding) { ctor(); }
Exemplo n.º 9
0
 public LoginServiceClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 10
0
 public JokeContractClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 11
0
 public TestContractAClient(IGlue glue, string node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 12
0
 public RegistrationServiceClient(IGlue glue, Node node, Binding binding = null)
     : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 13
0
 public MessageServiceClient(IGlue glue, string node, Binding binding = null) : base(glue, node, binding)
 {
     ctor();
 }
Exemplo n.º 14
0
 public ProcessController(IGlue glue, Node node, Binding binding = null) : base(glue, node, binding)
 {
     ctor();
 }