MCPcopy Create free account
hub / github.com/cuberite/cuberite / InitBiomeView

Method InitBiomeView

Tools/BiomeVisualiser/BiomeViewWnd.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55void cBiomeViewWnd::InitBiomeView(void)
56{
57 cIniFile IniFile;
58 IniFile.ReadFile("world.ini");
59 int Seed = IniFile.GetValueSetI("Generator", "Seed", 0);
60 bool CacheOffByDefault = false;
61 m_BiomeGen = cBiomeGen::CreateBiomeGen(IniFile, Seed, CacheOffByDefault);
62 m_Renderer.SetSource(new cGeneratorBiomeSource(m_BiomeGen));
63 IniFile.WriteFile("world.ini");
64}
65
66
67

Callers

nothing calls this directly

Calls 4

ReadFileMethod · 0.80
GetValueSetIMethod · 0.80
WriteFileMethod · 0.80
SetSourceMethod · 0.45

Tested by

no test coverage detected