resource stuff

This commit is contained in:
max
2026-04-28 19:17:23 +02:00
parent fec2cd8d24
commit 059638e6e0
9 changed files with 386 additions and 45 deletions
+30
View File
@@ -0,0 +1,30 @@
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;
}
}
}