use of org.terasology.config.PlayerConfig in project Terasology by MovingBlocks.
the class GameConfigurationMetric method fetchConfig.
private void fetchConfig() {
Config config = context.get(Config.class);
language = config.getSystem().getLocale().toString();
PlayerConfig playerConfig = config.getPlayer();
playerHeight = playerConfig.getHeight();
playerEyeHeight = playerConfig.getEyeHeight();
}
use of org.terasology.config.PlayerConfig in project Terasology by MovingBlocks.
the class SetupLocalPlayer method step.
@Override
public boolean step() {
PlayerConfig playerConfig = context.get(Config.class).getPlayer();
Client localClient = context.get(NetworkSystem.class).joinLocal(playerConfig.getName(), playerConfig.getColor());
context.get(LocalPlayer.class).setClientEntity(localClient.getEntity());
return true;
}
Aggregations