コード例 #1
0
        /// <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;
        }
コード例 #2
0
ファイル: SkeletalData.cs プロジェクト: kguner/Components
        /// <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));
        }
コード例 #3
0
ファイル: SkeletonJson.cs プロジェクト: kguner/Components
 /// <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;
 }