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

Method setModeType

source/game/StarPlayer.cpp:2127–2132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2125}
2126
2127void Player::setModeType(PlayerMode mode) {
2128 m_modeType = mode;
2129
2130 auto assets = Root::singleton().assets();
2131 m_modeConfig = PlayerModeConfig(assets->json("/playermodes.config").get(PlayerModeNames.getRight(mode)));
2132}
2133
2134PlayerModeConfig Player::modeConfig() const {
2135 return m_modeConfig;

Callers 3

makePlayerCallbacksMethod · 0.80
changedMethod · 0.80
TestUniverseMethod · 0.80

Calls 5

singletonClass · 0.85
PlayerModeConfigClass · 0.85
assetsMethod · 0.80
jsonMethod · 0.80
getMethod · 0.45

Tested by 1

TestUniverseMethod · 0.64