public static object WiimoteLib_IRState_TO_WiimoteLib_Proxy_IRState(object transformFrom) { global::WiimoteLib.Proxy.IRState target = new global::WiimoteLib.Proxy.IRState(); global::WiimoteLib.IRState from = ((global::WiimoteLib.IRState)(transformFrom)); target.Mode = ((global::WiimoteLib.Proxy.IRMode)(((byte)(from.Mode)))); WiimoteLib.IRSensor[] tmp = from.IRSensors; if ((tmp != null)) { int count = tmp.Length; global::WiimoteLib.Proxy.IRSensor[] tmp0 = new global::WiimoteLib.Proxy.IRSensor[count]; for (int index = 0; (index < count); index = (index + 1)) { global::WiimoteLib.Proxy.IRSensor tmp1 = default(global::WiimoteLib.Proxy.IRSensor); global::WiimoteLib.IRSensor tmp2 = tmp[index]; tmp1 = ((global::WiimoteLib.Proxy.IRSensor)(WiimoteLib_IRSensor_TO_WiimoteLib_Proxy_IRSensor(tmp2))); tmp0[index] = tmp1; } target.IRSensors = tmp0; } global::WiimoteLib.Point tmp3 = from.RawMidpoint; target.RawMidpoint = ((global::WiimoteLib.Proxy.Point)(WiimoteLib_Point_TO_WiimoteLib_Proxy_Point(tmp3))); global::WiimoteLib.PointF tmp4 = from.Midpoint; target.Midpoint = ((global::WiimoteLib.Proxy.PointF)(WiimoteLib_PointF_TO_WiimoteLib_Proxy_PointF(tmp4))); return target; }
public static object WiimoteLib_IRSensor_TO_WiimoteLib_Proxy_IRSensor(object transformFrom) { global::WiimoteLib.Proxy.IRSensor target = new global::WiimoteLib.Proxy.IRSensor(); global::WiimoteLib.IRSensor from = ((global::WiimoteLib.IRSensor)(transformFrom)); global::WiimoteLib.Point tmp = from.RawPosition; target.RawPosition = ((global::WiimoteLib.Proxy.Point)(WiimoteLib_Point_TO_WiimoteLib_Proxy_Point(tmp))); global::WiimoteLib.PointF tmp0 = from.Position; target.Position = ((global::WiimoteLib.Proxy.PointF)(WiimoteLib_PointF_TO_WiimoteLib_Proxy_PointF(tmp0))); target.Size = from.Size; target.Found = from.Found; return target; }