public TwoBitsComponentSolver(TwitchModule module) :
        base(module)
    {
        _c = module.BombComponent.GetComponent(ComponentSolverType);

        _submit  = (MonoBehaviour)SubmitButtonField.GetValue(_c);
        _query   = (MonoBehaviour)QueryButtonField.GetValue(_c);
        _buttons = (MonoBehaviour[])ButtonsField.GetValue(_c);
        ModInfo  = ComponentSolverFactory.GetModuleInfo(GetModuleType(), "Query the answer with !{0} press K T query. Submit the answer with !{0} press G Z submit.");
    }
示例#2
0
    public TranslatedPasswordComponentSolver(TwitchModule module) :
        base(module)
    {
        _component    = module.BombComponent.GetComponent(PasswordComponentType);
        _downButtons  = (KMSelectable[])DownButtonField.GetValue(_component);
        _submitButton = (MonoBehaviour)SubmitButtonField.GetValue(_component);
        _display      = (TextMesh[])DisplayField.GetValue(_component);
        ModInfo       = ComponentSolverFactory.GetModuleInfo(GetModuleType(), "!{0} cycle 1 3 5 [cycle through the letters in columns 1, 3, and 5] | !{0} toggle [move all columns down one letter] | !{0} world [try to submit a word]").Clone();

        LanguageCode = TranslatedModuleHelper.GetLanguageCode(_component, PasswordComponentType);
        ModInfo.moduleDisplayName = $"Passwords Translated{TranslatedModuleHelper.GetModuleDisplayNameAddon(_component, PasswordComponentType)}";
        Module.HeaderText         = ModInfo.moduleDisplayName;
    }
示例#3
0
    public TranslatedPasswordComponentSolver(TwitchModule module) :
        base(module)
    {
        _downButtons  = (KMSelectable[])DownButtonField.GetValue(module.BombComponent.GetComponent(PasswordComponentType));
        _submitButton = (MonoBehaviour)SubmitButtonField.GetValue(module.BombComponent.GetComponent(PasswordComponentType));
        _display      = (TextMesh[])DisplayField.GetValue(module.BombComponent.GetComponent(PasswordComponentType));
        ModInfo       = ComponentSolverFactory.GetModuleInfo(GetModuleType(), "!{0} cycle 1 3 5 [cycle through the letters in columns 1, 3, and 5] | !{0} cycle [cycle through all columns] | !{0} toggle [move all columns down one letter] | !{0} world [try to submit a word]").Clone();

        string language = TranslatedModuleHelper.GetManualCodeAddOn(module.BombComponent.GetComponent(PasswordComponentType), PasswordComponentType);

        if (language != null)
        {
            ManualCode = $"Password{language}";
        }
        ModInfo.moduleDisplayName = $"Passwords Translated{TranslatedModuleHelper.GetModuleDisplayNameAddon(module.BombComponent.GetComponent(PasswordComponentType), PasswordComponentType)}";
        module.Bomb.Bomb.StartCoroutine(SetHeaderText());
    }