public static object Microsoft_Robotics_Services_GameController_GameControllerState_TO_Microsoft_Robotics_Services_GameController_Proxy_GameControllerState(object transformFrom) { global::Microsoft.Robotics.Services.GameController.Proxy.GameControllerState target = new global::Microsoft.Robotics.Services.GameController.Proxy.GameControllerState(); global::Microsoft.Robotics.Services.GameController.GameControllerState from = ((global::Microsoft.Robotics.Services.GameController.GameControllerState)(transformFrom)); target.TimeStamp = from.TimeStamp; global::Microsoft.Robotics.Services.GameController.Controller tmp = from.Controller; if ((tmp != null)) { target.Controller = ((global::Microsoft.Robotics.Services.GameController.Proxy.Controller)(Microsoft_Robotics_Services_GameController_Controller_TO_Microsoft_Robotics_Services_GameController_Proxy_Controller(tmp))); } global::Microsoft.Robotics.Services.GameController.Axes tmp0 = from.Axes; if ((tmp0 != null)) { target.Axes = ((global::Microsoft.Robotics.Services.GameController.Proxy.Axes)(Microsoft_Robotics_Services_GameController_Axes_TO_Microsoft_Robotics_Services_GameController_Proxy_Axes(tmp0))); } global::Microsoft.Robotics.Services.GameController.Buttons tmp1 = from.Buttons; if ((tmp1 != null)) { target.Buttons = ((global::Microsoft.Robotics.Services.GameController.Proxy.Buttons)(Microsoft_Robotics_Services_GameController_Buttons_TO_Microsoft_Robotics_Services_GameController_Proxy_Buttons(tmp1))); } global::Microsoft.Robotics.Services.GameController.Sliders tmp2 = from.Sliders; if ((tmp2 != null)) { target.Sliders = ((global::Microsoft.Robotics.Services.GameController.Proxy.Sliders)(Microsoft_Robotics_Services_GameController_Sliders_TO_Microsoft_Robotics_Services_GameController_Proxy_Sliders(tmp2))); } global::Microsoft.Robotics.Services.GameController.PovHats tmp3 = from.PovHats; if ((tmp3 != null)) { target.PovHats = ((global::Microsoft.Robotics.Services.GameController.Proxy.PovHats)(Microsoft_Robotics_Services_GameController_PovHats_TO_Microsoft_Robotics_Services_GameController_Proxy_PovHats(tmp3))); } 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); }