ValidationResolveAddDiff
Callable
Parameters
newItem: Item
The new item to equip
params: AppearanceUpdateParameters
The appearance update parameters that apply to the diff
Returns ItemDiffResolution
- The diff resolution - a wrapper object containing the final item and a flag indicating whether or not the change was valid.
Resolves an appearance diff where an item is being added (i.e. there was no previous item in the asset group). Add diffs are handled as the composite of two operations: item addition, followed by property modification. First we check whether the base item can be added, and then we check that any added properties are permitted.