public void Init() { fakeTimer = new FakeCacheTimer(); fakeTimer.IsCacheValid = true; IConfiguration config = new BlockCorpseDisintigrationFixConfig(5, WORLD_HEIGHT, 0, CACHE_PERSISTANCE, true, false); fakeWorld = new FakeWorld(config); groundFinder = new GroundFinder(config, location => fakeWorld.GetBlockAt(location).IsCollideMovement, new GroundPositionCache(fakeTimer)); }
public void Init() { fakeTimer = new FakeCacheTimer(); cache = new GroundPositionCache(fakeTimer); }