| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using Robust.Shared.Serialization;
- namespace Content.Shared.Gibbing.Events;
- /// <summary>
- /// Called just before we actually gib the target entity
- /// </summary>
- /// <param name="Target">The entity being gibed</param>
- /// <param name="GibType">What type of gibbing is occuring</param>
- /// <param name="AllowedContainers">Containers we are allow to gib</param>
- /// <param name="ExcludedContainers">Containers we are allow not allowed to gib</param>
- [ByRefEvent] public record struct AttemptEntityContentsGibEvent(
- EntityUid Target,
- GibContentsOption GibType,
- List<string>? AllowedContainers,
- List<string>? ExcludedContainers
- );
- /// <summary>
- /// Called just before we actually gib the target entity
- /// </summary>
- /// <param name="Target">The entity being gibed</param>
- /// <param name="GibletCount">how many giblets to spawn</param>
- /// <param name="GibType">What type of gibbing is occuring</param>
- [ByRefEvent] public record struct AttemptEntityGibEvent(EntityUid Target, int GibletCount, GibType GibType);
- /// <summary>
- /// Called immediately after we gib the target entity
- /// </summary>
- /// <param name="Target">The entity being gibbed</param>
- /// <param name="DroppedEntities">Any entities that are spilled out (if any)</param>
- [ByRefEvent] public record struct EntityGibbedEvent(EntityUid Target, List<EntityUid> DroppedEntities);
- [Serializable, NetSerializable]
- public enum GibType : byte
- {
- Skip,
- Drop,
- Gib,
- }
- public enum GibContentsOption : byte
- {
- Skip,
- Drop,
- Gib
- }
|