31 lines
1001 B
C#
31 lines
1001 B
C#
using System;
|
|
|
|
namespace Nerfed.Builder.Meta
|
|
{
|
|
/// <summary>
|
|
/// Foundation for JSON-serialized metadata files (e.g. hero.png.meta)
|
|
/// </summary>
|
|
public class AssetMeta
|
|
{
|
|
/// <summary>
|
|
/// The universally unique identifier for this asset, generated on first import.
|
|
/// </summary>
|
|
public Guid Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// The importer version. Useful to force re-imports if your engine updates how it parses textures.
|
|
/// </summary>
|
|
public int ImporterVersion { get; set; } = 1;
|
|
|
|
/// <summary>
|
|
/// Base constructor needed for JSON deserialization
|
|
/// </summary>
|
|
public AssetMeta() { }
|
|
|
|
public AssetMeta(Guid id)
|
|
{
|
|
Id = id;
|
|
}
|
|
}
|
|
}
|