8e8b61cbb77ac33452aae413c1c7c0a9b0f683e5
SERVER - CardAsset gains ModelFacingDirection (string?), ModelScale (float?), ModelTintColor (string?), ModelTintMaskUrl (string?) columns. - CardAssetDto and ContentDtoMapper updated to expose them. - EF migration AddModelConfig applied to pg-forge-01 / SOR DB. CLIENT (game_screen.gd) Animation loop: - GLB standard: first 5 frames (ANIM_TRANSITION_SECS = 5/30s) are entry frames that blend from idle into the action. Looping animations now skip those frames on every iteration after the first, eliminating the bind-pose flash at the loop seam. - Manual loop management via animation_finished + CONNECT_ONE_SHOT replaces LOOP_LINEAR so the seek-past-transition trick works. - _idle_callbacks tracks active loop callables so they can be disconnected when a one-shot animation interrupts idle. - _idle_entry_done reset when a one-shot starts so the transition frames play correctly when returning to idle after the action. Model config: - _find_model3d_asset() replaces _find_model3d_url() — returns the full asset dict including the new fields. - ModelFacingDirection → _facing_to_base_angle() → rotation.y applied at load; stored in _model_base_angles for movement / idle reset. - ModelScale applied uniformly to model_node.scale on load. - ModelTintColor applied as multiplicative albedo_color tint to all StandardMaterial3D surfaces (materials duplicated per-instance). - ModelTintMaskUrl stored in DB/DTO; per-texel shader not yet wired. Movement facing: - _animate_unit_move pre-computes a facing angle per BFS step and snaps model_node.rotation.y at the start of each step so units face the direction they walk. - On movement end, rotation resets to the idle/team direction. Cleanup: - _rebuild_units removal loop erases _idle_entry_done, _idle_callbacks, _model_base_angles, _needs_face_rot for freed units. 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>
Description
No description provided
53 MiB
Languages
C#
52.7%
HTML
24.9%
GDScript
21.2%
CSS
0.8%
Python
0.3%
Other
0.1%