Rework misclibrary gettime to not segfault
This commit is contained in:
@@ -24,12 +24,17 @@ namespace PkmnLibSharpTests.Battling
|
||||
var scriptLibrary = new AngelScriptResolver();
|
||||
_cache = new BattleLibrary(BuildStatic(), new StatCalculator(), new DamageLibrary(),
|
||||
new ExperienceLibrary(),
|
||||
scriptLibrary, new MiscLibrary());
|
||||
scriptLibrary, new MiscLibrary(GetTime));
|
||||
scriptLibrary.Initialize(_cache);
|
||||
return _cache;
|
||||
}
|
||||
}
|
||||
|
||||
public static TimeOfDay GetTime()
|
||||
{
|
||||
return TimeOfDay.Morning;
|
||||
}
|
||||
|
||||
private static PokemonLibrary BuildStatic()
|
||||
{
|
||||
var settings = new LibrarySettings(100, 4, 4096);
|
||||
|
||||
Reference in New Issue
Block a user