public TranslatedMorseCodeComponentSolver(TwitchModule module) : base(module) { _component = module.BombComponent.GetComponent(MorseCodeComponentType); _upButton = (MonoBehaviour)UpButtonField.GetValue(_component); _downButton = (MonoBehaviour)DownButtonField.GetValue(_component); _transmitButton = (MonoBehaviour)TransmitButtonField.GetValue(_component); ModInfo = ComponentSolverFactory.GetModuleInfo(GetModuleType(), "!{0} transmit 3.573, !{0} trans 573, !{0} transmit 3.573 MHz, !{0} tx 573 [transmit frequency 3.573]").Clone(); LanguageCode = TranslatedModuleHelper.GetLanguageCode(_component, MorseCodeComponentType); ModInfo.moduleDisplayName = $"Morse Code Translated{TranslatedModuleHelper.GetModuleDisplayNameAddon(_component, MorseCodeComponentType)}"; Module.HeaderText = ModInfo.moduleDisplayName; }
public TranslatedMorseCodeComponentSolver(TwitchModule module) : base(module) { _component = module.BombComponent.GetComponent(MorseCodeComponentType); _upButton = (MonoBehaviour)UpButtonField.GetValue(_component); _downButton = (MonoBehaviour)DownButtonField.GetValue(_component); _transmitButton = (MonoBehaviour)TransmitButtonField.GetValue(_component); ModInfo = ComponentSolverFactory.GetModuleInfo(GetModuleType(), "!{0} transmit 3.573, !{0} trans 573, !{0} transmit 3.573 MHz, !{0} tx 573 [transmit frequency 3.573]").Clone(); string language = TranslatedModuleHelper.GetManualCodeAddOn(_component, MorseCodeComponentType); if (language != null) { ManualCode = $"Morse%20Code{language}"; } ModInfo.moduleDisplayName = $"Morse Code Translated{TranslatedModuleHelper.GetModuleDisplayNameAddon(_component, MorseCodeComponentType)}"; module.BombComponent.StartCoroutine(SetHeaderText()); }