package com.replaymod.recording;

import com.replaymod.core.SettingsRegistry;

public final class Setting<T> extends SettingsRegistry.SettingKeys<T> {
    public static final Setting<Boolean> RECORD_SINGLEPLAYER = make("recordSingleplayer", "recordsingleplayer", true);
    public static final Setting<Boolean> RECORD_SERVER = make("recordServer", "recordserver", true);
    public static final Setting<Boolean> INDICATOR = make("indicator", "indicator", true);

    private static <T> Setting<T> make(String key, String displayName, T defaultValue) {
        return new Setting<>(key, displayName, defaultValue);
    }

    public Setting(String key, String displayString, T defaultValue) {
        super("recording", key, "replaymod.gui.settings." + displayString, defaultValue);
    }
}
