added convenience constructor for texture atlas data, as well as changed standard extension for texture atlas to ".tatlas".

This commit is contained in:
Harrison Deng 2018-12-08 17:04:33 -06:00
parent 7718a98d1a
commit 34ef18f682
2 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,12 @@ namespace RecrownedAthenaeum.Pipeline.TextureAtlas
public TextureAtlasRegion[] regions;
public string textureName;
public TextureAtlasData(string textureName, TextureAtlasRegion[] regions)
{
this.regions = regions;
this.textureName = textureName;
}
public class TextureAtlasRegion
{
public string name;

View File

@ -11,7 +11,7 @@ using System.Xml.Serialization;
namespace RecrownedAthenaeum.Pipeline.TextureAtlas
{
[ContentImporter(".atlas", DisplayName = "Texture Atlas Importer")]
[ContentImporter(".tatlas", DisplayName = "Texture Atlas Importer")]
internal class TextureAtlasImporter : ContentImporter<TextureAtlasData>
{
public override TextureAtlasData Import(string filename, ContentImporterContext context)