mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-28 19:43:55 +00:00
26 lines
992 B
C#
26 lines
992 B
C#
namespace MiraAPI.Events.Vanilla.Map;
|
|
|
|
/// <summary>
|
|
/// <see cref="MiraCancelableEvent"/> that is invoked before a system is updated. Usually used for sabotage events.
|
|
/// </summary>
|
|
/// <param name="systemType">The <see cref="SystemTypes"/> being updated.</param>
|
|
/// <param name="player">The <see cref="PlayerControl"/> that is updating the system.</param>
|
|
/// <param name="amount">Amount to update System to.</param>
|
|
public class UpdateSystemEvent(SystemTypes systemType, PlayerControl player, byte amount) : MiraCancelableEvent
|
|
{
|
|
/// <summary>
|
|
/// Gets the type of system that will be updated.
|
|
/// </summary>
|
|
public SystemTypes SystemType { get; } = systemType;
|
|
|
|
/// <summary>
|
|
/// Gets the <see cref="PlayerControl"/> that is updating the system.
|
|
/// </summary>
|
|
public PlayerControl Player { get; } = player;
|
|
|
|
/// <summary>
|
|
/// Gets the byte amount the system is being updated by.
|
|
/// </summary>
|
|
public byte Amount { get; } = amount;
|
|
}
|