Style cleanup
This commit is contained in:
@@ -13,7 +13,7 @@ public class CaptureAttemptEvent : IEventData
|
||||
|
||||
public IPokemon Target { get; init; }
|
||||
public CaptureResult Result { get; init; }
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; }
|
||||
}
|
||||
@@ -4,7 +4,7 @@ public class DialogEvent : IEventData
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; } = new();
|
||||
|
||||
|
||||
public DialogEvent(string message, Dictionary<string, object>? parameters = null)
|
||||
{
|
||||
Message = message;
|
||||
@@ -12,6 +12,6 @@ public class DialogEvent : IEventData
|
||||
}
|
||||
|
||||
public string Message { get; set; }
|
||||
|
||||
|
||||
public Dictionary<string, object>? Parameters { get; set; }
|
||||
}
|
||||
@@ -10,12 +10,11 @@ public class ExperienceGainEvent : IEventData
|
||||
PreviousExperience = previousExperience;
|
||||
NewExperience = newExperience;
|
||||
}
|
||||
|
||||
|
||||
public IPokemon Pokemon { get; set; }
|
||||
public uint PreviousExperience { get; }
|
||||
public uint NewExperience { get; }
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; }
|
||||
}
|
||||
@@ -17,7 +17,7 @@ public class FaintEvent : IEventData
|
||||
/// The Pokemon that fainted.
|
||||
/// </summary>
|
||||
public IPokemon Pokemon { get; init; }
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; } = new();
|
||||
}
|
||||
@@ -13,7 +13,7 @@ public class FormChangeEvent : IEventData
|
||||
Pokemon = pokemon;
|
||||
Form = form;
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; }
|
||||
}
|
||||
@@ -14,7 +14,7 @@ public readonly record struct EventBatchId
|
||||
{
|
||||
Id = Guid.NewGuid();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The unique identifier for this batch of events.
|
||||
/// </summary>
|
||||
|
||||
@@ -10,7 +10,7 @@ public class EventHook
|
||||
/// The event handler that is called when the event is triggered.
|
||||
/// </summary>
|
||||
public event EventHandler<IEventData>? Handler;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Triggers the event, calling the handler with the given data.
|
||||
/// </summary>
|
||||
|
||||
@@ -30,7 +30,6 @@ public class HealEvent : IEventData
|
||||
/// </summary>
|
||||
public uint NewHealth { get; }
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; } = new();
|
||||
}
|
||||
@@ -17,7 +17,7 @@ public class MoveMissEvent : IEventData
|
||||
/// Data about the move that missed.
|
||||
/// </summary>
|
||||
public IExecutingMove ExecutingMove { get; }
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; }
|
||||
}
|
||||
@@ -17,7 +17,7 @@ public class MoveUseEvent : IEventData
|
||||
{
|
||||
ExecutingMove = executingMove;
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; }
|
||||
}
|
||||
@@ -15,7 +15,7 @@ public class SpeciesChangeEvent : IEventData
|
||||
Species = species;
|
||||
Form = form;
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public EventBatchId BatchId { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user