Exemple #1
0
    public void Reset()
    {
        for (Fact.E_FactType i = 0; i < Fact.E_FactType.E_COUNT; i++)
        {
            if (m_Facts[(int)i] == null)
            {
                continue;
            }

            while (m_Facts[(int)i].Count > 0)
            {
                RemoveFact(m_Facts[(int)i][0]);
            }
        }
    }
Exemple #2
0
    static public Fact Create(Fact.E_FactType type)
    {
        Fact o;

        if (m_Unused.Count > 0)
        {
            o          = m_Unused.Dequeue();
            o.FactType = type;
        }
        else
        {
            o = new Fact(type);
        }

        m_InAction.Add(o);
        return(o);
    }