Jelajahi Sumber

[Atlas] various fixes
Readonly param from content
Remove new from MipmapsPerSprite
Remove Debugger.Launch()

Nikos Kastellanos 6 tahun lalu
induk
melakukan
870e7e4394

+ 1 - 3
Atlas/ContentReaders/TextureAtlasReader.cs

@@ -1,5 +1,5 @@
 #region License
-//   Copyright 2016 Kastellanos Nikolaos
+//   Copyright 2016-2019 Kastellanos Nikolaos
 //
 //   Licensed under the Apache License, Version 2.0 (the "License");
 //   you may not use this file except in compliance with the License.
@@ -26,8 +26,6 @@ namespace tainicom.Aether.Graphics.Content
     {
         protected override TextureAtlas Read(ContentReader input, TextureAtlas existingInstance)
         {
-            System.Diagnostics.Debugger.Launch();
-
             IGraphicsDeviceService graphicsDeviceService = (IGraphicsDeviceService)input.ContentManager.ServiceProvider.GetService(typeof(IGraphicsDeviceService));
             var device = graphicsDeviceService.GraphicsDevice;
 

+ 2 - 2
Content.Pipeline/AtlasImporter/Processors/TextureAtlasProcessor.cs

@@ -1,5 +1,5 @@
 #region License
-//   Copyright 2016 Kastellanos Nikolaos
+//   Copyright 2016-2019 Kastellanos Nikolaos
 //
 //   Licensed under the Apache License, Version 2.0 (the "License");
 //   you may not use this file except in compliance with the License.
@@ -43,7 +43,7 @@ namespace tainicom.Aether.Content.Pipeline
         
 
         [DefaultValue(true)]
-        public new bool MipmapsPerSprite
+        public bool MipmapsPerSprite
         {
             get { return _mipmapsPerSprite; }
             set { _mipmapsPerSprite = value; }

+ 0 - 3
Samples/AtlasContent/Samples.AtlasContent.mgcb

@@ -24,7 +24,6 @@
 #begin atlasMipmap.tmx
 /importer:AtlasImporter
 /processor:AtlasProcessor
-/processorParam:Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.InputType=tainicom.Aether.Content.Pipeline.Atlas.AtlasContent
 /processorParam:MipmapsPerSprite=False
 /processorParam:ColorKeyColor=255,0,255,255
 /processorParam:ColorKeyEnabled=False
@@ -38,7 +37,6 @@
 #begin atlasMipmapPerSprite.tmx
 /importer:AtlasImporter
 /processor:AtlasProcessor
-/processorParam:Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.InputType=tainicom.Aether.Content.Pipeline.Atlas.AtlasContent
 /processorParam:MipmapsPerSprite=True
 /processorParam:ColorKeyColor=255,0,255,255
 /processorParam:ColorKeyEnabled=False
@@ -52,7 +50,6 @@
 #begin atlasNoMipmap.tmx
 /importer:AtlasImporter
 /processor:AtlasProcessor
-/processorParam:Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.InputType=tainicom.Aether.Content.Pipeline.Atlas.AtlasContent
 /processorParam:MipmapsPerSprite=False
 /processorParam:ColorKeyColor=255,0,255,255
 /processorParam:ColorKeyEnabled=False