CDN Integration
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user