static public int CopyFrom(IntPtr l) { try { GameFramework.KdTreeObject self = (GameFramework.KdTreeObject)checkSelf(l); GameFramework.EntityInfo a1; checkType(l, 2, out a1); self.CopyFrom(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }