Implement basic evolution check handling
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user