예제 #1
0
    void LoadEatDecision(Creature creature)
    {
        Decisions decisions = creature.DecisionsLookup [Creature.DecisionTypes.Eat];

        decisions.ClearTransientValues();
        decisions.LoadTransientValue(new Value(creature.Energy, "Current Energy"));

        _eatDecisionText.Buffer.Text = decisions.GetDecisionProvider(creature.DecisionPredicateIndex_Eat).Describe();
    }