@inject IImmortalSelectionService FilterService

@implements IDisposable

<FormLayoutComponent>
    <InfoBodyComponent>
        <InfoQuestionComponent>
            What is this tool?
        </InfoQuestionComponent>
        <InfoAnswerComponent>
            This is a calculator to determine build timings. Mostly so someone can quickly try out a few build
            orders to see if they somewhat make sense.
        </InfoAnswerComponent>
    </InfoBodyComponent>

    <InfoBodyComponent>
        <InfoQuestionComponent>
            How does it work?
        </InfoQuestionComponent>
        <InfoAnswerComponent>
            The tool calculates every second of game time. So if you attempt to build a <b>Legion Hall</b> as
            your first action, the tool will scan every second, until you get to one where the request can be
            made. In this case, that is interval 58.
            <br/>
            <br/>
            If you then build 2 <b>Apostle of Bindings</b> a <b>Soul Foundry</b> and a 3 <b>Absolvers</b> you
            should see yourself roughly floating 500 alloy, with barely having any ether. Which means you could
            of gotten an <b>Acropolis</b> and a <b>Zentari</b> without hurting your build.
            <br/>
            <br/>
            Try building <b>Apostle of Bindings</b> before the <b>Legion Hall</b> and see how that changes the
            timing of your 3 <b>Absolvers</b>. (Spoiler:
            <SpoilerTextComponent> your <b>Absolvers</b> will be built much faster, and you won't be floating so
                much alloy.
            </SpoilerTextComponent>
            )
        </InfoAnswerComponent>
    </InfoBodyComponent>

    <InfoBodyComponent>
        <InfoQuestionComponent>
            What is CONTROL key for?
        </InfoQuestionComponent>
        <InfoAnswerComponent>
            Economy and tech related upgrades for townhalls.
        </InfoAnswerComponent>
    </InfoBodyComponent>

    <InfoBodyComponent>
        <InfoQuestionComponent>
            What is SHIFT key for?
        </InfoQuestionComponent>
        <InfoAnswerComponent>
            Misc building related upgrades. (Omnivores)
        </InfoAnswerComponent>
    </InfoBodyComponent>

    <InfoBodyComponent>
        <InfoQuestionComponent>
            What is 2 key for?
        </InfoQuestionComponent>
        <InfoAnswerComponent>
            It will be for Pyre camps. Currently not implemented.
        </InfoAnswerComponent>
    </InfoBodyComponent>
</FormLayoutComponent>

@code {

    protected override void OnInitialized()
    {
        base.OnInitialized();
        FilterService.Subscribe(StateHasChanged);
    }

    void IDisposable.Dispose()
    {
        FilterService.Unsubscribe(StateHasChanged);
    }


}