MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / randomize

Method randomize

source/frontend/StarCharCreation.cpp:172–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void CharCreationPane::randomize() {
173 RandomSource random;
174 m_bodyColor = random.randu32();
175 m_hairChoice = random.randu32();
176 m_alty = random.randu32();
177 m_heady = random.randu32();
178 m_shirtChoice = random.randu32();
179 m_shirtColor = random.randu32();
180 m_pantsChoice = random.randu32();
181 m_pantsColor = random.randu32();
182 m_personality = random.randu32();
183 changed();
184}
185
186void CharCreationPane::tick(float dt) {
187 Pane::tick(dt);

Callers

nothing calls this directly

Calls 1

randu32Method · 0.80

Tested by

no test coverage detected