public IUnitDef GetUnitDef(int deployedid) { IntPtr unitdefptr = ABICInterface.IAICallback_GetUnitDef(self, deployedid); if (unitdefptr == IntPtr.Zero) { return(null); } return(new UnitDef(unitdefptr)); }