/// <summary> /// Initializes a new instance of the <see cref="AtlasAttachmentLoader" /> class. /// </summary> /// <param name="atlas">The atlas.</param> /// <exception cref="System.ArgumentNullException">atlas cannot be null.</exception> public AtlasAttachmentLoader(Atlas atlas) { if (atlas == null) { throw new ArgumentNullException("atlas cannot be null."); } this.atlas = atlas; }
/// <summary> /// Performs further custom initialization for this instance. /// </summary> /// <remarks> /// By default this method does nothing. /// </remarks> protected override void Initialize() { base.Initialize(); this.atlas = new Atlas(this.atlasPath, new WaveTextureLoader(this.Assets)); }
/// <summary> /// Initializes a new instance of the <see cref="SkeletonJson" /> class. /// </summary> /// <param name="atlas">The atlas.</param> public SkeletonJson(Atlas atlas) { this.attachmentLoader = new AtlasAttachmentLoader(atlas); this.Scale = 1; }