class ConflictStrategyBase
package away3d.library.naming
extended by ErrorConflictStrategy, IgnoreConflictStrategy, NumSuffixConflictStrategy
Available on all platforms
Abstract base class for naming conflict resolution classes. Extend this to create a strategy class which the asset library can use to resolve asset naming conflicts, or use one of the bundled concrete strategy classes:
- IgnoreConflictStrategy (ConflictStrategy.IGNORE)
- ErrorConflictStrategy (ConflictStrategy.THROW_ERROR)
- NumSuffixConflictStrategy (ConflictStrategy.APPEND_NUM_SUFFIX)
See also:
away3d.library.Asset3DLibrary.conflictStrategy
away3d.library.naming.ConflictStrategy
away3d.library.naming.IgnoreConflictStrategy
away3d.library.naming.ErrorConflictStrategy
away3d.library.naming.NumSuffixConflictStrategy
Constructor
Methods
create():ConflictStrategyBase
Create instance of this conflict strategy. Used internally by the Asset3DLibrary to make sure the same strategy instance is not used in all Asset3DLibrary instances, which would break any state caching that happens inside the strategy class.
resolveConflict(changedAsset:IAsset, oldAsset:IAsset, assetsDictionary:Dynamic, precedence:String):Void
Resolve a naming conflict between two assets. Must be implemented by concrete strategy classes.