Feature: GLB animation playback, model facing, CDN animation preview
Server: - CardAnimationBinding.AnimationTrackName: nullable override for GLB track name (blank = case-insensitive convention match; Idle/Attack/Damaged/Moving/Dying) - CardAnimationBindingDto: includes AnimationTrackName in content sync - CardEditor: GLB Track Name column in animation bindings table - CdnBrowser: model-viewer animation list + playback (JS interop on load event) - Migration: AddAnimationTrackName applied to production Client: - ContentCache.get_anim_track(): resolves GLB track name from binding override or falls back to convention with case-insensitive aliases - game_screen.gd: - _find_animation_player(): recursive search in loaded GLB scene tree - _resolve_anim_track(): case-insensitive + alias resolution - _play_unit_anim(): plays track, returns to Idle when one-shot finishes - _play_damage_animations(): detects HP drops and unit deaths before rebuild - Model facing: P1 units rotated 180deg Y to face opponent across board - Idle loop starts automatically after real model loads - Attack animation fires immediately on attack input (before ACK) 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>
This commit is contained in:
@@ -108,6 +108,7 @@ public sealed record CardAnimationBindingDto(
|
||||
string ActionName,
|
||||
string AnimationCdnUrl,
|
||||
bool IsAiGenerated,
|
||||
string? AnimationTrackName,
|
||||
string? CastSoundCdnUrl,
|
||||
string? ImpactSoundCdnUrl);
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ internal static class ContentDtoMapper
|
||||
b.ActionName,
|
||||
b.AnimationCdnUrl,
|
||||
b.IsAiGenerated,
|
||||
b.AnimationTrackName,
|
||||
b.CastSoundCdnUrl,
|
||||
b.ImpactSoundCdnUrl)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user