public CMagazine(CMagazineProfile Profile, CWeapon Weapon) : this(testPINVOKE.new_CMagazine(CMagazineProfile.getCPtr(Profile), CWeapon.getCPtr(Weapon)), true) { if (testPINVOKE.SWIGPendingException.Pending) { throw testPINVOKE.SWIGPendingException.Retrieve(); } }
internal static HandleRef getCPtr(CMagazineProfile obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }