1
0

CloningEvents.cs 450 B

12345678910111213
  1. namespace Content.Shared.Cloning.Events;
  2. /// <summary>
  3. /// Raised before a mob is cloned. Cancel to prevent cloning.
  4. /// </summary>
  5. [ByRefEvent]
  6. public record struct CloningAttemptEvent(CloningSettingsPrototype Settings, bool Cancelled = false);
  7. /// <summary>
  8. /// Raised after a new mob got spawned when cloning a humanoid.
  9. /// </summary>
  10. [ByRefEvent]
  11. public record struct CloningEvent(CloningSettingsPrototype Settings, EntityUid CloneUid);