1
0

PolymorphEvents.cs 512 B

12345678910
  1. namespace Content.Shared.Polymorph;
  2. /// <summary>
  3. /// Raised locally on an entity when it polymorphs into another entity
  4. /// </summary>
  5. /// <param name="OldEntity">EntityUid of the entity before the polymorph</param>
  6. /// <param name="NewEntity">EntityUid of the entity after the polymorph</param>
  7. /// <param name="IsRevert">Whether this polymorph event was a revert back to the original entity</param>
  8. [ByRefEvent]
  9. public record struct PolymorphedEvent(EntityUid OldEntity, EntityUid NewEntity, bool IsRevert);