/// <description> /// Callback invoked when a ProximityMine is about to explode. /// </description> /// <param name="obj">The ProximityMine object</param> /// <param name="pos">The position of the mine explosion</param> /// <remarks> This callback is only invoked on the server. /// </remarks> /// <see cref="ProximityMine" /> public virtual void OnExplode(ProximityMine obj, Point3F pos) { pos.Alloc(); InternalUnsafeMethods.OnExplode__Args _args = new InternalUnsafeMethods.OnExplode__Args() { obj = obj.ObjectPtr, pos = pos.internalStructPtr, }; InternalUnsafeMethods.OnExplode()(ObjectPtr, _args); pos.Free(); }
/// <summary>Called when a projectile explodes.</summary> /// <description> /// This function is only called on server objects. /// </description> /// <param name="proj">The exploding projectile.</param> /// <param name="pos">The position of the explosion.</param> /// <param name="fade">The current fadeValue of the projectile, affects its visibility.</param> /// <see cref="Projectile" /> public virtual void OnExplode(Projectile proj, Point3F pos, float fade) { pos.Alloc(); InternalUnsafeMethods.OnExplode__Args _args = new InternalUnsafeMethods.OnExplode__Args() { proj = proj.ObjectPtr, pos = pos.internalStructPtr, fade = fade, }; InternalUnsafeMethods.OnExplode()(ObjectPtr, _args); pos.Free(); }