Style cleanup

This commit is contained in:
2025-03-02 17:19:57 +01:00
parent c0bc905c46
commit 284ab3079c
175 changed files with 588 additions and 650 deletions

View File

@@ -13,7 +13,7 @@ public class CaptureAttemptEvent : IEventData
public IPokemon Target { get; init; }
public CaptureResult Result { get; init; }
/// <inheritdoc />
public EventBatchId BatchId { get; init; }
}

View File

@@ -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; }
}

View File

@@ -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; }
}

View File

@@ -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();
}

View File

@@ -13,7 +13,7 @@ public class FormChangeEvent : IEventData
Pokemon = pokemon;
Form = form;
}
/// <inheritdoc />
public EventBatchId BatchId { get; init; }
}

View File

@@ -14,7 +14,7 @@ public readonly record struct EventBatchId
{
Id = Guid.NewGuid();
}
/// <summary>
/// The unique identifier for this batch of events.
/// </summary>

View File

@@ -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>

View File

@@ -30,7 +30,6 @@ public class HealEvent : IEventData
/// </summary>
public uint NewHealth { get; }
/// <inheritdoc />
public EventBatchId BatchId { get; init; } = new();
}

View File

@@ -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; }
}

View File

@@ -17,7 +17,7 @@ public class MoveUseEvent : IEventData
{
ExecutingMove = executingMove;
}
/// <inheritdoc />
public EventBatchId BatchId { get; init; }
}

View File

@@ -15,7 +15,7 @@ public class SpeciesChangeEvent : IEventData
Species = species;
Form = form;
}
/// <inheritdoc />
public EventBatchId BatchId { get; init; }
}