Exemplo n.º 1
0
    private void RegisterLowNeed(ENeedType needType)
    {
        int newNeedPriority = NeedsToolkit.GetNeedPriority(needType);
        int newIndex        = GetNewIndexInListBasedOnPriority(newNeedPriority);

        m_lowNeedsSortedLowToHigh.Insert(newIndex, needType);
    }
Exemplo n.º 2
0
    private bool IsNeedLowerInPriority(ENeedType needType, int priorityToCheckAgainst)
    {
        int currentNeedPriority = NeedsToolkit.GetNeedPriority(needType);

        return(currentNeedPriority < priorityToCheckAgainst);
    }