Implement basic evolution check handling

This commit is contained in:
2026-05-25 18:51:03 +02:00
parent 8089a2ad94
commit e1029012bb
2 changed files with 90 additions and 0 deletions

View File

@@ -55,6 +55,11 @@ public interface IDynamicLibrary
/// <see cref="ExplicitAI"/> to make decisions.
/// </summary>
IReadOnlyExplicitAIHandlers ExplicitAIHandlers { get; }
/// <summary>
/// Library for handling of whether a Pokemon can evolve.
/// </summary>
IEvolutionLibrary EvolutionLibrary { get; }
}
/// <inheritdoc />
@@ -86,6 +91,7 @@ public class DynamicLibraryImpl : IDynamicLibrary
ExplicitAIHandlers = explicitAIHandlers;
ExperienceGainCalculator = experienceGainCalculator;
CaptureLibrary = captureLibrary;
EvolutionLibrary = new EvolutionLibrary(miscLibrary, staticLibrary.Species);
}
/// <inheritdoc />
@@ -111,4 +117,7 @@ public class DynamicLibraryImpl : IDynamicLibrary
/// <inheritdoc />
public IReadOnlyExplicitAIHandlers ExplicitAIHandlers { get; }
/// <inheritdoc />
public IEvolutionLibrary EvolutionLibrary { get; }
}