added convenience constructor for texture atlas data, as well as changed standard extension for texture atlas to ".tatlas".
This commit is contained in:
parent
7718a98d1a
commit
34ef18f682
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user