/// public SimObject GetObject() { InternalUnsafeMethods.GetObject__Args _args = new InternalUnsafeMethods.GetObject__Args() { }; IntPtr _engineResult = InternalUnsafeMethods.GetObject()(ObjectPtr, _args); return(new SimObject(_engineResult)); }
/// <summary>Retrieve the requested object that is within the Trigger's bounds.</summary> /// <description> /// /// </description> /// <param name="index">Index of the object to get (range is 0 to getNumObjects()-1)</param> /// <returns>The SimObjectID of the object, or -1 if the requested index is invalid.</returns> /// <see cref="getNumObjects()" /> public int GetObject(int index) { InternalUnsafeMethods.GetObject__Args _args = new InternalUnsafeMethods.GetObject__Args() { index = index, }; int _engineResult = InternalUnsafeMethods.GetObject()(ObjectPtr, _args); return(_engineResult); }