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_Proxy_GameControllerState_TO_Microsoft_Robotics_Services_GameController_GameControllerState(object transformFrom) { global::Microsoft.Robotics.Services.GameController.GameControllerState target = new global::Microsoft.Robotics.Services.GameController.GameControllerState(); global::Microsoft.Robotics.Services.GameController.Proxy.GameControllerState from = ((global::Microsoft.Robotics.Services.GameController.Proxy.GameControllerState)(transformFrom)); target.TimeStamp = from.TimeStamp; if ((from.Controller != null)) { target.Controller = ((global::Microsoft.Robotics.Services.GameController.Controller)(Microsoft_Robotics_Services_GameController_Proxy_Controller_TO_Microsoft_Robotics_Services_GameController_Controller(from.Controller))); } else { target.Controller = null; } if ((from.Axes != null)) { target.Axes = ((global::Microsoft.Robotics.Services.GameController.Axes)(Microsoft_Robotics_Services_GameController_Proxy_Axes_TO_Microsoft_Robotics_Services_GameController_Axes(from.Axes))); } else { target.Axes = null; } if ((from.Buttons != null)) { target.Buttons = ((global::Microsoft.Robotics.Services.GameController.Buttons)(Microsoft_Robotics_Services_GameController_Proxy_Buttons_TO_Microsoft_Robotics_Services_GameController_Buttons(from.Buttons))); } else { target.Buttons = null; } if ((from.Sliders != null)) { target.Sliders = ((global::Microsoft.Robotics.Services.GameController.Sliders)(Microsoft_Robotics_Services_GameController_Proxy_Sliders_TO_Microsoft_Robotics_Services_GameController_Sliders(from.Sliders))); } else { target.Sliders = null; } if ((from.PovHats != null)) { target.PovHats = ((global::Microsoft.Robotics.Services.GameController.PovHats)(Microsoft_Robotics_Services_GameController_Proxy_PovHats_TO_Microsoft_Robotics_Services_GameController_PovHats(from.PovHats))); } else { target.PovHats = null; } return(target); }