示例#1
0
 /// <summary>
 /// Return a list of all resources in this folder and all sub-folders.
 /// The result of this method is cached, so subsequent calls will have very low performance cost.
 /// </summary>
 /// <returns>A list of resource objects in this folder and sub-folders.</returns>
 public static global::System.Collections.Generic.IList <global::TypeSafe.IResource> GetContentsRecursive()
 {
     if ((__ts_internal_recursiveLookupCache != null))
     {
         return(__ts_internal_recursiveLookupCache);
     }
     global::System.Collections.Generic.List <global::TypeSafe.IResource> tmp = new global::System.Collections.Generic.List <global::TypeSafe.IResource>();
     tmp.AddRange(GetContents());
     tmp.AddRange(SRDebugger.GetContentsRecursive());
     __ts_internal_recursiveLookupCache = tmp;
     return(__ts_internal_recursiveLookupCache);
 }
示例#2
0
 /// <summary>
 /// Return a list of all resources in this folder and all sub-folders.
 /// The result of this method is cached, so subsequent calls will have very low performance cost.
 /// </summary>
 /// <returns>A list of resource objects in this folder and sub-folders.</returns>
 public static global::System.Collections.Generic.IList <global::TypeSafe.IResource> GetContentsRecursive()
 {
     if ((@__ts_internal_recursiveLookupCache != null))
     {
         return(@__ts_internal_recursiveLookupCache);
     }
     global::System.Collections.Generic.List <global::TypeSafe.IResource> tmp = new global::System.Collections.Generic.List <global::TypeSafe.IResource>();
     tmp.AddRange(GetContents());
     tmp.AddRange(Textures.GetContentsRecursive());
     tmp.AddRange(Materials.GetContentsRecursive());
     tmp.AddRange(Animator.GetContentsRecursive());
     @__ts_internal_recursiveLookupCache = tmp;
     return(@__ts_internal_recursiveLookupCache);
 }
 /// <summary>
 ///Copies the data member values of the current ServiceTutorial7State to the specified target object
 ///</summary>
 ///<param name="target">target object (must be an instance of)</param>
 public virtual void CopyTo(Microsoft.Dss.Core.IDssSerializable target)
 {
     global::RoboticsServiceTutorial7.Proxy.ServiceTutorial7State typedTarget = ((global::RoboticsServiceTutorial7.Proxy.ServiceTutorial7State)(target));
     if ((this._Clocks != null))
     {
         int count = this._Clocks.Count;
         global::System.Collections.Generic.List <string> tmp = new global::System.Collections.Generic.List <string>(count);
         tmp.AddRange(this._Clocks);
         typedTarget._Clocks = tmp;
     }
     if ((this._TickCounts != null))
     {
         int count0 = this._TickCounts.Count;
         global::System.Collections.Generic.List <global::RoboticsServiceTutorial7.Proxy.TickCount> tmp0 = new global::System.Collections.Generic.List <global::RoboticsServiceTutorial7.Proxy.TickCount>(count0);
         for (int index = 0; (index < count0); index = (index + 1))
         {
             global::RoboticsServiceTutorial7.Proxy.TickCount tmp1 = default(global::RoboticsServiceTutorial7.Proxy.TickCount);
             if ((this._TickCounts[index] != null))
             {
                 global::RoboticsServiceTutorial7.Proxy.TickCount tmp2 = new global::RoboticsServiceTutorial7.Proxy.TickCount();
                 ((Microsoft.Dss.Core.IDssSerializable)(this._TickCounts[index])).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp2)));
                 tmp1 = tmp2;
             }
             tmp0.Add(tmp1);
         }
         typedTarget._TickCounts = tmp0;
     }
 }
 public static object RoboticsServiceTutorial7_ServiceTutorial7State_TO_RoboticsServiceTutorial7_Proxy_ServiceTutorial7State(object transformFrom)
 {
     global::RoboticsServiceTutorial7.Proxy.ServiceTutorial7State target = new global::RoboticsServiceTutorial7.Proxy.ServiceTutorial7State();
     global::RoboticsServiceTutorial7.ServiceTutorial7State       from   = ((global::RoboticsServiceTutorial7.ServiceTutorial7State)(transformFrom));
     global::System.Collections.Generic.List <string>             tmp    = from.Clocks;
     if ((tmp != null))
     {
         int count = tmp.Count;
         global::System.Collections.Generic.List <string> tmp0 = new global::System.Collections.Generic.List <string>(count);
         tmp0.AddRange(tmp);
         target.Clocks = tmp0;
     }
     global::System.Collections.Generic.List <global::RoboticsServiceTutorial7.TickCount> tmp1 = from.TickCounts;
     if ((tmp1 != null))
     {
         int count0 = tmp1.Count;
         global::System.Collections.Generic.List <global::RoboticsServiceTutorial7.Proxy.TickCount> tmp2 = new global::System.Collections.Generic.List <global::RoboticsServiceTutorial7.Proxy.TickCount>(count0);
         for (int index = 0; (index < count0); index = (index + 1))
         {
             global::RoboticsServiceTutorial7.Proxy.TickCount tmp3 = default(global::RoboticsServiceTutorial7.Proxy.TickCount);
             global::RoboticsServiceTutorial7.TickCount       tmp4 = tmp1[index];
             if ((tmp4 != null))
             {
                 tmp3 = ((global::RoboticsServiceTutorial7.Proxy.TickCount)(RoboticsServiceTutorial7_TickCount_TO_RoboticsServiceTutorial7_Proxy_TickCount(tmp4)));
             }
             tmp2.Add(tmp3);
         }
         target.TickCounts = tmp2;
     }
     return(target);
 }
示例#5
0
 private global::System.Collections.Generic.List <string> method_4(string string_0)
 {
     global::System.Collections.Generic.List <string> list = new global::System.Collections.Generic.List <string>();
     foreach (string item in global::System.IO.Directory.GetFiles(string_0))
     {
         list.Add(item);
     }
     foreach (string string_ in global::System.IO.Directory.GetDirectories(string_0))
     {
         list.AddRange(this.method_4(string_));
     }
     return(list);
 }
示例#6
0
 public static object Microsoft_Robotics_Services_MultiDeviceWebCam_PipeServerOutput_TO_Microsoft_Robotics_Services_MultiDeviceWebCam_Proxy_PipeServerOutput(object transformFrom)
 {
     global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.PipeServerOutput target = new global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.PipeServerOutput();
     global::Microsoft.Robotics.Services.MultiDeviceWebCam.PipeServerOutput       from   = ((global::Microsoft.Robotics.Services.MultiDeviceWebCam.PipeServerOutput)(transformFrom));
     global::System.Collections.Generic.List <string> tmp = from.Output;
     if ((tmp != null))
     {
         int count = tmp.Count;
         global::System.Collections.Generic.List <string> tmp0 = new global::System.Collections.Generic.List <string>(count);
         tmp0.AddRange(tmp);
         target.Output = tmp0;
     }
     return(target);
 }
 public static object Microsoft_Robotics_Services_GameController_PovHats_TO_Microsoft_Robotics_Services_GameController_Proxy_PovHats(object transformFrom)
 {
     global::Microsoft.Robotics.Services.GameController.Proxy.PovHats target = new global::Microsoft.Robotics.Services.GameController.Proxy.PovHats();
     global::Microsoft.Robotics.Services.GameController.PovHats       from   = ((global::Microsoft.Robotics.Services.GameController.PovHats)(transformFrom));
     target.TimeStamp = from.TimeStamp;
     global::System.Collections.Generic.List <int> tmp = from.Direction;
     if ((tmp != null))
     {
         int count = tmp.Count;
         global::System.Collections.Generic.List <int> tmp0 = new global::System.Collections.Generic.List <int>(count);
         tmp0.AddRange(tmp);
         target.Direction = tmp0;
     }
     return(target);
 }
 public static object Microsoft_Robotics_Services_GameController_Proxy_Sliders_TO_Microsoft_Robotics_Services_GameController_Sliders(object transformFrom)
 {
     global::Microsoft.Robotics.Services.GameController.Sliders       target = new global::Microsoft.Robotics.Services.GameController.Sliders();
     global::Microsoft.Robotics.Services.GameController.Proxy.Sliders from   = ((global::Microsoft.Robotics.Services.GameController.Proxy.Sliders)(transformFrom));
     target.TimeStamp = from.TimeStamp;
     if ((from.Position != null))
     {
         int count = from.Position.Count;
         global::System.Collections.Generic.List <int> tmp = new global::System.Collections.Generic.List <int>(count);
         tmp.AddRange(from.Position);
         target.Position = tmp;
     }
     else
     {
         target.Position = null;
     }
     return(target);
 }
 public static object Microsoft_Robotics_Services_GameController_Proxy_Buttons_TO_Microsoft_Robotics_Services_GameController_Buttons(object transformFrom)
 {
     global::Microsoft.Robotics.Services.GameController.Buttons       target = new global::Microsoft.Robotics.Services.GameController.Buttons();
     global::Microsoft.Robotics.Services.GameController.Proxy.Buttons from   = ((global::Microsoft.Robotics.Services.GameController.Proxy.Buttons)(transformFrom));
     target.TimeStamp = from.TimeStamp;
     if ((from.Pressed != null))
     {
         int count = from.Pressed.Count;
         global::System.Collections.Generic.List <bool> tmp = new global::System.Collections.Generic.List <bool>(count);
         tmp.AddRange(from.Pressed);
         target.Pressed = tmp;
     }
     else
     {
         target.Pressed = null;
     }
     return(target);
 }
 public static object Microsoft_Robotics_Technologies_Speech_TextToSpeech_TextToSpeechState_TO_Microsoft_Robotics_Technologies_Speech_TextToSpeech_Proxy_TextToSpeechState(object transformFrom)
 {
     global::Microsoft.Robotics.Technologies.Speech.TextToSpeech.Proxy.TextToSpeechState target = new global::Microsoft.Robotics.Technologies.Speech.TextToSpeech.Proxy.TextToSpeechState();
     global::Microsoft.Robotics.Technologies.Speech.TextToSpeech.TextToSpeechState       from   = ((global::Microsoft.Robotics.Technologies.Speech.TextToSpeech.TextToSpeechState)(transformFrom));
     global::System.Collections.Generic.List <string> tmp = from.Voices;
     if ((tmp != null))
     {
         int count = tmp.Count;
         global::System.Collections.Generic.List <string> tmp0 = new global::System.Collections.Generic.List <string>(count);
         tmp0.AddRange(tmp);
         target.Voices = tmp0;
     }
     target.Voice              = from.Voice;
     target.Volume             = from.Volume;
     target.Rate               = from.Rate;
     target.SpeechText         = from.SpeechText;
     target.DisableAudioOutput = from.DisableAudioOutput;
     return(target);
 }
 public static object RoboticsServiceTutorial7_Proxy_ServiceTutorial7State_TO_RoboticsServiceTutorial7_ServiceTutorial7State(object transformFrom)
 {
     global::RoboticsServiceTutorial7.ServiceTutorial7State       target = new global::RoboticsServiceTutorial7.ServiceTutorial7State();
     global::RoboticsServiceTutorial7.Proxy.ServiceTutorial7State from   = ((global::RoboticsServiceTutorial7.Proxy.ServiceTutorial7State)(transformFrom));
     if ((from.Clocks != null))
     {
         int count = from.Clocks.Count;
         global::System.Collections.Generic.List <string> tmp = new global::System.Collections.Generic.List <string>(count);
         tmp.AddRange(from.Clocks);
         target.Clocks = tmp;
     }
     else
     {
         target.Clocks = null;
     }
     if ((from.TickCounts != null))
     {
         int count0 = from.TickCounts.Count;
         global::System.Collections.Generic.List <global::RoboticsServiceTutorial7.TickCount> tmp0 = new global::System.Collections.Generic.List <global::RoboticsServiceTutorial7.TickCount>(count0);
         for (int index = 0; (index < count0); index = (index + 1))
         {
             global::RoboticsServiceTutorial7.TickCount tmp1 = default(global::RoboticsServiceTutorial7.TickCount);
             if ((from.TickCounts[index] != null))
             {
                 tmp1 = ((global::RoboticsServiceTutorial7.TickCount)(RoboticsServiceTutorial7_Proxy_TickCount_TO_RoboticsServiceTutorial7_TickCount(from.TickCounts[index])));
             }
             else
             {
                 tmp1 = null;
             }
             tmp0.Add(tmp1);
         }
         target.TickCounts = tmp0;
     }
     else
     {
         target.TickCounts = null;
     }
     return(target);
 }
 public static object Microsoft_Robotics_Simulation_Engine_Proxy_VisualEntity_TO_Microsoft_Robotics_Simulation_Engine_Proxy_VisualEntity0(object transformFrom)
 {
     global::Microsoft.Robotics.Simulation.Engine.Proxy.VisualEntity target = new global::Microsoft.Robotics.Simulation.Engine.Proxy.VisualEntity();
     global::Microsoft.Robotics.Simulation.Engine.VisualEntity from = ((global::Microsoft.Robotics.Simulation.Engine.VisualEntity)(transformFrom));
     target.Flags = ((global::Microsoft.Robotics.Simulation.Engine.Proxy.VisualEntityProperties)(((int)(from.Flags))));
     target.ChildCount = from.ChildCount;
     global::Microsoft.Robotics.PhysicalModel.Joint tmp = from.ParentJoint;
     if ((tmp != null)) {
         target.ParentJoint = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Joint)(Microsoft_Robotics_PhysicalModel_Proxy_Joint_TO_Microsoft_Robotics_PhysicalModel_Proxy_Joint0(tmp)));
     }
     target.ReferenceFrame = ((global::Microsoft.Robotics.Simulation.Engine.Proxy.VisualEntity.ReferenceFrames)(((int)(from.ReferenceFrame))));
     target.ServiceContract = from.ServiceContract;
     global::System.Collections.Generic.List<string> tmp0 = from.EmbeddedResourceAssemblies;
     if ((tmp0 != null)) {
         int count = tmp0.Count;
         global::System.Collections.Generic.List<string> tmp1 = new global::System.Collections.Generic.List<string>(count);
         tmp1.AddRange(tmp0);
         target.EmbeddedResourceAssemblies = tmp1;
     }
     global::Microsoft.Robotics.PhysicalModel.Vector3 tmp2 = from.MeshScale;
     target.MeshScale = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector30(tmp2)));
     global::Microsoft.Robotics.PhysicalModel.Vector3 tmp3 = from.MeshRotation;
     target.MeshRotation = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector30(tmp3)));
     global::Microsoft.Robotics.PhysicalModel.Vector3 tmp4 = from.MeshTranslation;
     target.MeshTranslation = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector30(tmp4)));
     global::Microsoft.Robotics.Simulation.EntityState tmp5 = from.State;
     if ((tmp5 != null)) {
         target.State = ((global::Microsoft.Robotics.Simulation.Proxy.EntityState)(Microsoft_Robotics_Simulation_Proxy_EntityState_TO_Microsoft_Robotics_Simulation_Proxy_EntityState0(tmp5)));
     }
     return target;
 }
 public static object Microsoft_Robotics_Simulation_Engine_Proxy_VisualEntity_TO_Microsoft_Robotics_Simulation_Engine_Proxy_VisualEntity(object transformFrom)
 {
     global::Microsoft.Robotics.Simulation.Engine.VisualEntity target = new global::Microsoft.Robotics.Simulation.Engine.VisualEntity();
     global::Microsoft.Robotics.Simulation.Engine.Proxy.VisualEntity from = ((global::Microsoft.Robotics.Simulation.Engine.Proxy.VisualEntity)(transformFrom));
     target.Flags = ((global::Microsoft.Robotics.Simulation.Engine.VisualEntityProperties)(((int)(from.Flags))));
     target.ChildCount = from.ChildCount;
     if ((from.ParentJoint != null)) {
         target.ParentJoint = ((global::Microsoft.Robotics.PhysicalModel.Joint)(Microsoft_Robotics_PhysicalModel_Proxy_Joint_TO_Microsoft_Robotics_PhysicalModel_Proxy_Joint(from.ParentJoint)));
     }
     else {
         target.ParentJoint = null;
     }
     target.ReferenceFrame = ((global::Microsoft.Robotics.Simulation.Engine.VisualEntity.ReferenceFrames)(((int)(from.ReferenceFrame))));
     target.ServiceContract = from.ServiceContract;
     if ((from.EmbeddedResourceAssemblies != null)) {
         int count = from.EmbeddedResourceAssemblies.Count;
         global::System.Collections.Generic.List<string> tmp = new global::System.Collections.Generic.List<string>(count);
         tmp.AddRange(from.EmbeddedResourceAssemblies);
         target.EmbeddedResourceAssemblies = tmp;
     }
     else {
         target.EmbeddedResourceAssemblies = null;
     }
     target.MeshScale = ((global::Microsoft.Robotics.PhysicalModel.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector3(from.MeshScale)));
     target.MeshRotation = ((global::Microsoft.Robotics.PhysicalModel.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector3(from.MeshRotation)));
     target.MeshTranslation = ((global::Microsoft.Robotics.PhysicalModel.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector3(from.MeshTranslation)));
     if ((from.State != null)) {
         target.State = ((global::Microsoft.Robotics.Simulation.EntityState)(Microsoft_Robotics_Simulation_Proxy_EntityState_TO_Microsoft_Robotics_Simulation_Proxy_EntityState(from.State)));
     }
     else {
         target.State = null;
     }
     return target;
 }
 public static object QuadrupedRobot_SingleShapeSegmentEntity_TO_QuadrupedRobot_Proxy_SingleShapeSegmentEntity(object transformFrom)
 {
     global::QuadrupedRobot.Proxy.SingleShapeSegmentEntity target = new global::QuadrupedRobot.Proxy.SingleShapeSegmentEntity();
     global::QuadrupedRobot.SingleShapeSegmentEntity from = ((global::QuadrupedRobot.SingleShapeSegmentEntity)(transformFrom));
     global::Microsoft.Robotics.PhysicalModel.Joint tmp = from.CustomJoint;
     if ((tmp != null)) {
         target.CustomJoint = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Joint)(Microsoft_Robotics_PhysicalModel_Proxy_Joint_TO_Microsoft_Robotics_PhysicalModel_Proxy_Joint0(tmp)));
     }
     global::Microsoft.Robotics.Simulation.Physics.BoxShape tmp0 = from.BoxShape;
     if ((tmp0 != null)) {
         target.BoxShape = ((global::Microsoft.Robotics.Simulation.Physics.Proxy.BoxShape)(Microsoft_Robotics_Simulation_Physics_Proxy_BoxShape_TO_Microsoft_Robotics_Simulation_Physics_Proxy_BoxShape0(tmp0)));
     }
     global::Microsoft.Robotics.Simulation.Physics.SphereShape tmp1 = from.SphereShape;
     if ((tmp1 != null)) {
         target.SphereShape = ((global::Microsoft.Robotics.Simulation.Physics.Proxy.SphereShape)(Microsoft_Robotics_Simulation_Physics_Proxy_SphereShape_TO_Microsoft_Robotics_Simulation_Physics_Proxy_SphereShape0(tmp1)));
     }
     global::Microsoft.Robotics.Simulation.Physics.CapsuleShape tmp2 = from.CapsuleShape;
     if ((tmp2 != null)) {
         target.CapsuleShape = ((global::Microsoft.Robotics.Simulation.Physics.Proxy.CapsuleShape)(Microsoft_Robotics_Simulation_Physics_Proxy_CapsuleShape_TO_Microsoft_Robotics_Simulation_Physics_Proxy_CapsuleShape0(tmp2)));
     }
     target.Flags = ((global::Microsoft.Robotics.Simulation.Engine.Proxy.VisualEntityProperties)(((int)(from.Flags))));
     target.ChildCount = from.ChildCount;
     global::Microsoft.Robotics.PhysicalModel.Joint tmp3 = from.ParentJoint;
     if ((tmp3 != null)) {
         target.ParentJoint = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Joint)(Microsoft_Robotics_PhysicalModel_Proxy_Joint_TO_Microsoft_Robotics_PhysicalModel_Proxy_Joint0(tmp3)));
     }
     target.ReferenceFrame = ((global::Microsoft.Robotics.Simulation.Engine.Proxy.VisualEntity.ReferenceFrames)(((int)(from.ReferenceFrame))));
     target.ServiceContract = from.ServiceContract;
     global::System.Collections.Generic.List<string> tmp4 = from.EmbeddedResourceAssemblies;
     if ((tmp4 != null)) {
         int count = tmp4.Count;
         global::System.Collections.Generic.List<string> tmp5 = new global::System.Collections.Generic.List<string>(count);
         tmp5.AddRange(tmp4);
         target.EmbeddedResourceAssemblies = tmp5;
     }
     global::Microsoft.Robotics.PhysicalModel.Vector3 tmp6 = from.MeshScale;
     target.MeshScale = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector30(tmp6)));
     global::Microsoft.Robotics.PhysicalModel.Vector3 tmp7 = from.MeshRotation;
     target.MeshRotation = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector30(tmp7)));
     global::Microsoft.Robotics.PhysicalModel.Vector3 tmp8 = from.MeshTranslation;
     target.MeshTranslation = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector30(tmp8)));
     global::Microsoft.Robotics.Simulation.EntityState tmp9 = from.State;
     if ((tmp9 != null)) {
         target.State = ((global::Microsoft.Robotics.Simulation.Proxy.EntityState)(Microsoft_Robotics_Simulation_Proxy_EntityState_TO_Microsoft_Robotics_Simulation_Proxy_EntityState0(tmp9)));
     }
     return target;
 }