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_Buttons_TO_Microsoft_Robotics_Services_GameController_Proxy_Buttons(object transformFrom) { global::Microsoft.Robotics.Services.GameController.Proxy.Buttons target = new global::Microsoft.Robotics.Services.GameController.Proxy.Buttons(); global::Microsoft.Robotics.Services.GameController.Buttons from = ((global::Microsoft.Robotics.Services.GameController.Buttons)(transformFrom)); target.TimeStamp = from.TimeStamp; global::System.Collections.Generic.List <bool> tmp = from.Pressed; if ((tmp != null)) { int count = tmp.Count; global::System.Collections.Generic.List <bool> tmp0 = new global::System.Collections.Generic.List <bool>(count); tmp0.AddRange(tmp); target.Pressed = tmp0; } return(target); }