Exemplo n.º 1
0
 public void RemoveControlled(IControlled cntrld)
 {
     if (this.cntrld == cntrld)
     {
         this.cntrld = null;
     }
 }
Exemplo n.º 2
0
        public virtual ControlledParameterTemplate BuildTemplate(IControlled controlledParameter)
        {
            switch (controlledParameter.ControlledBasis)
            {
            case ControlledBasis.FloatingPoint:
                return(new ControlledDoubleParameterTemplate(controlledParameter));

            case ControlledBasis.Integer:
                return(new ControlledIntParameterTemplate(controlledParameter));

            case ControlledBasis.String:
                return(new ControlledStringParameterTemplate(controlledParameter));

            default:
                UnityEngine.Debug.LogError($"Unexpected ControlledBasis: {controlledParameter.ControlledBasis}");
                return(null);
            }
        }
Exemplo n.º 3
0
 public void SetView(IControlled view)
 {
     View = view;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MobileClientCommunication"/> class.
 /// </summary>
 /// <param name="view">The view.</param>
 /// <param name="ipaddress">The ipaddress.</param>
 public ClientCommunication(IControlled view, string ipaddress)
 {
     View    = view;
     IP      = ipaddress;
     _client = CreateClient();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientCommunication"/> class.
 /// </summary>
 /// <param name="view">The view.</param>
 public ClientCommunication(IControlled view)
 {
     View = view;
 }
 public ControlledDoubleParameterTemplate(IControlled controlledParameter)
     : base(controlledParameter)
 {
 }
 public ControlledParameterTemplate(IControlled controlledParameter)
 {
     this.controlledParameter = controlledParameter;
 }
 public ControlledStringParameterTemplate(IControlled controlledParameter)
     : base(controlledParameter)
 {
 }
Exemplo n.º 9
0
 public void SetControlled(IControlled cntrld)
 {
     this.cntrld = cntrld;
 }
Exemplo n.º 10
0
 public void SetView(IControlled view)
 {
     View = view;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MobileClientCommunication"/> class.
 /// </summary>
 /// <param name="view">The view.</param>
 /// <param name="ipaddress">The ipaddress.</param>
 public ClientCommunication(IControlled view, string ipaddress)
 {
     View = view;
     IP = ipaddress;
     _client = CreateClient();
 }
Exemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientCommunication"/> class.
 /// </summary>
 /// <param name="view">The view.</param>
 public ClientCommunication(IControlled view)
 {
     View = view;
 }