Interface ICustomTraitReward<TTrait1>
Custom implementation of a reward modifier based on trait data
Namespace: Unity.AI.Planner.Traits
Syntax
public interface ICustomTraitReward<TTrait1>
where TTrait1 : struct, ITrait
Type Parameters
Name | Description |
---|---|
TTrait1 | Trait type |
Methods
RewardModifier(TTrait1)
Return the value of a reward for a given trait
Declaration
float RewardModifier(TTrait1 trait)
Parameters
Type | Name | Description |
---|---|---|
TTrait1 | trait | A trait from the action evaluated |
Returns
Type | Description |
---|---|
Single | Reward value modification |