CDN Integration

This commit is contained in:
dingo
2025-12-19 10:12:17 -05:00
parent 351478fedb
commit 260e6fa072
11 changed files with 2316 additions and 63 deletions
+14
View File
@@ -64,6 +64,20 @@ public class DungeonItemDefinition
public int MaxStack { get; set; } = 1;
// Visuals
/// <summary>
/// Path to the item's sprite image on CDN (e.g., "textures/items/sword_iron.png")
/// If null/empty, client uses fallback placeholder based on item type
/// </summary>
[MaxLength(256)]
public string? SpritePath { get; set; }
/// <summary>
/// Optional color tint as hex (e.g., "#ff0000" for red tint)
/// </summary>
[MaxLength(16)]
public string? TintColor { get; set; }
// Legacy field - kept for backwards compatibility
public int SpriteId { get; set; } = 0;
public bool IsEnabled { get; set; } = true;