Example #1
0
 /// <summary>Informs the TurretData object that it is now sticking to another object.</summary>
 /// <description>
 /// This callback is only called if the TurretData::sticky property for this Turret is true.
 /// </description>
 /// <param name="obj">The Turret object that is colliding.</param>
 /// <remarks> Server side only.
 /// </remarks>
 /// <see cref="TurretShape, TurretData" />
 public virtual void OnStickyCollision(TurretShape obj)
 {
     InternalUnsafeMethods.OnStickyCollision__Args _args = new InternalUnsafeMethods.OnStickyCollision__Args()
     {
         obj = obj.ObjectPtr,
     };
     InternalUnsafeMethods.OnStickyCollision()(ObjectPtr, _args);
 }
Example #2
0
 /// <summary>Informs the Item object that it is now sticking to another object.</summary>
 /// <description>
 /// This callback is only called if the ItemData::sticky property for this Item is true.
 /// </description>
 /// <param name="objID">Object ID this Item object.</param>
 /// <remarks> Server side only.
 /// </remarks>
 /// <see cref="Item, ItemData" />
 public virtual void OnStickyCollision(string objID)
 {
     InternalUnsafeMethods.OnStickyCollision__Args _args = new InternalUnsafeMethods.OnStickyCollision__Args()
     {
         objID = objID,
     };
     InternalUnsafeMethods.OnStickyCollision()(ObjectPtr, _args);
 }