Skip to content
Snippets Groups Projects
Forked from pregmodfan / fc-pregmod
22516 commits behind the upstream repository.
  • ezsh's avatar
    d5313483
    Refactor slave summary implementation · d5313483
    ezsh authored
    The SlaveSummary function was a long-long sheet of if's and it was
    practically unmaintainable. Refactor it into a list of rendering
    delgates, where delegates are set once and called without branching.
    
    Now we set delegates for each summary render call, but it can be done
    on game start and game loading.
    d5313483
    History
    Refactor slave summary implementation
    ezsh authored
    The SlaveSummary function was a long-long sheet of if's and it was
    practically unmaintainable. Refactor it into a list of rendering
    delgates, where delegates are set once and called without branching.
    
    Now we set delegates for each summary render call, but it can be done
    on game start and game loading.
slaveSummaryHelpers.js 78.48 KiB