Server: - Account.IsHiddenFromLeaderboard: filter bots/devs from leaderboard - AbilityAnimationDefinition: type, effect, dimensions, asset/sound URLs per ability - CardAnimationBinding: CastSoundCdnUrl + ImpactSoundCdnUrl per card action - GameAudioConfig entity: admin-configurable BGM tracks per context - GetGameAudioConfigHandler (content.get_audio_config) + ServiceRegistration - Admin pages: AccountDetail toggle, AudioConfig CRUD, CardEditor + AbilityBuilder UI - Migrations: AddLeaderboardHide, AddCardActionSounds, AddGameAudioConfig Client: - Music.gd autoload: fetches BGM config, crossfades between context tracks - InGameSettings overlay: audio sliders, camera follow toggle, concede with confirm - GameScreen: gear button opens settings; ConcedeBtn moved into settings panel - project.godot: Music autoload registered Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
43 lines
1.6 KiB
C#
43 lines
1.6 KiB
C#
namespace SOR.Database.Entities.Catalog;
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
public sealed class CardAnimationBinding
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid CardDefinitionId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Action identifier string as expected by the client renderer.
|
|
/// Examples: "idle", "attack", "death", "ability_0", "ascend".
|
|
/// </summary>
|
|
public string ActionName { get; set; } = string.Empty;
|
|
|
|
/// <summary>CDN URL to the animation file (glTF animation, Spine, etc.).</summary>
|
|
public string AnimationCdnUrl { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// True if this animation was generated by an AI tool.
|
|
/// Surfaced in the AI art tracker report in the admin portal.
|
|
/// </summary>
|
|
public bool IsAiGenerated { get; set; }
|
|
|
|
/// <summary>CDN URL to the sound played when this action begins (e.g. cast, attack swing).</summary>
|
|
public string? CastSoundCdnUrl { get; set; }
|
|
|
|
/// <summary>CDN URL to the sound played on impact or effect resolution.</summary>
|
|
public string? ImpactSoundCdnUrl { get; set; }
|
|
|
|
public CardDefinition CardDefinition { get; set; } = null!;
|
|
}
|