namespace SOR.Database.Entities.Catalog; /// /// Binds a named in-game action to an animation CDN asset for a specific card. /// /// ActionName is a free-form string matching the action identifiers used by the /// game engine and client renderer, e.g.: /// "idle", "attack", "defend", "death", "channel", /// "ability_0", "ability_1" (per ability index), /// "ascend", "transition" /// /// This keeps animation bindings flexible — adding new action types requires /// no schema change, only a new row per card. /// public sealed class CardAnimationBinding { public Guid Id { get; set; } = Guid.NewGuid(); public Guid CardDefinitionId { get; set; } /// /// Action identifier string as expected by the client renderer. /// Examples: "idle", "attack", "death", "ability_0", "ascend". /// public string ActionName { get; set; } = string.Empty; /// CDN URL to the animation file (glTF animation, Spine, etc.). public string AnimationCdnUrl { get; set; } = string.Empty; /// /// True if this animation was generated by an AI tool. /// Surfaced in the AI art tracker report in the admin portal. /// public bool IsAiGenerated { get; set; } /// CDN URL to the sound played when this action begins (e.g. cast, attack swing). public string? CastSoundCdnUrl { get; set; } /// CDN URL to the sound played on impact or effect resolution. public string? ImpactSoundCdnUrl { get; set; } public CardDefinition CardDefinition { get; set; } = null!; }