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

Method generateName

source/game/scripting/StarRootLuaBindings.cpp:386–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386String LuaBindings::RootCallbacks::generateName(Root* root, String const& rulesAsset, Maybe<uint64_t> seed) {
387 return root->nameGenerator()->generateName(rulesAsset, seed.value(Random::randu64()));
388}
389
390Json LuaBindings::RootCallbacks::questConfig(Root* root, String const& templateId) {
391 return root->questTemplateDatabase()->questTemplate(templateId)->config;

Callers

nothing calls this directly

Calls 3

randu64Function · 0.85
nameGeneratorMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected