/src/away3d/library/naming/ErrorConflictStrategy.as
http://github.com/away3d/away3d-core-fp11 · ActionScript · 22 lines · 19 code · 3 blank · 0 comment · 1 complexity · 985b7e69dad899241719f829e4914a11 MD5 · raw file
- package away3d.library.naming
- {
- import away3d.library.assets.IAsset;
-
- public class ErrorConflictStrategy extends ConflictStrategyBase
- {
- public function ErrorConflictStrategy()
- {
- super();
- }
-
- public override function resolveConflict(changedAsset:IAsset, oldAsset:IAsset, assetsDictionary:Object, precedence:String):void
- {
- throw new Error('Asset name collision while AssetLibrary.namingStrategy set to AssetLibrary.THROW_ERROR. Asset path: ' + changedAsset.assetFullPath);
- }
-
- public override function create():ConflictStrategyBase
- {
- return new ErrorConflictStrategy();
- }
- }
- }