Example #1
0
    public CMagazine GetMagazine()
    {
        IntPtr    cPtr = testPINVOKE.CWeapon_GetMagazine(swigCPtr);
        CMagazine ret  = (cPtr == IntPtr.Zero) ? null : new CMagazine(cPtr, false);

        return(ret);
    }
Example #2
0
 protected virtual void Start()
 {
     magazine = GetComponent <CMagazine>();
 }
Example #3
0
 public void SetMagazine(CMagazine m)
 {
     testPINVOKE.CWeapon_SetMagazine(swigCPtr, CMagazine.getCPtr(m));
 }
Example #4
0
 internal static HandleRef getCPtr(CMagazine obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }