Пример #1
0
 /// <description>
 /// Callback invoked when an object triggers the ProximityMine.
 /// </description>
 /// <param name="obj">The ProximityMine object</param>
 /// <param name="target">The object that triggered the mine</param>
 /// <remarks> This callback is only invoked on the server.
 /// </remarks>
 /// <see cref="ProximityMine" />
 public virtual void OnTriggered(ProximityMine obj, SceneObject target)
 {
     InternalUnsafeMethods.OnTriggered__Args _args = new InternalUnsafeMethods.OnTriggered__Args()
     {
         obj    = obj.ObjectPtr,
         target = target.ObjectPtr,
     };
     InternalUnsafeMethods.OnTriggered()(ObjectPtr, _args);
 }
Пример #2
0
 /// <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();
 }