Feature: leaderboard hide, ability animations, card sounds, BGM, in-game settings
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>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
namespace SOR.Database.Migrations.Catalog;
|
||||
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
public partial class AddCardActionSounds : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "CastSoundCdnUrl",
|
||||
schema: "catalog",
|
||||
table: "card_animation_bindings",
|
||||
type: "text",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ImpactSoundCdnUrl",
|
||||
schema: "catalog",
|
||||
table: "card_animation_bindings",
|
||||
type: "text",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(name: "CastSoundCdnUrl", schema: "catalog", table: "card_animation_bindings");
|
||||
migrationBuilder.DropColumn(name: "ImpactSoundCdnUrl", schema: "catalog", table: "card_animation_bindings");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
namespace SOR.Database.Migrations.Catalog;
|
||||
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
public partial class AddGameAudioConfig : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "game_audio_configs",
|
||||
schema: "catalog",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Context = table.Column<string>(type: "text", nullable: false),
|
||||
TrackName = table.Column<string>(type: "text", nullable: false),
|
||||
TrackCdnUrl = table.Column<string>(type: "text", nullable: false),
|
||||
IsActive = table.Column<bool>(type: "boolean", nullable: false, defaultValue: true),
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_game_audio_configs", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_game_audio_configs_Context",
|
||||
schema: "catalog",
|
||||
table: "game_audio_configs",
|
||||
column: "Context");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_game_audio_configs_IsActive",
|
||||
schema: "catalog",
|
||||
table: "game_audio_configs",
|
||||
column: "IsActive");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(name: "game_audio_configs", schema: "catalog");
|
||||
}
|
||||
}
|
||||
@@ -23,6 +23,36 @@ namespace SOR.Database.Migrations.Catalog
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("SOR.Database.Entities.Catalog.GameAudioConfig", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Context")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("TrackCdnUrl")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TrackName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Context");
|
||||
|
||||
b.HasIndex("IsActive");
|
||||
|
||||
b.ToTable("game_audio_configs", "catalog");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SOR.Database.Entities.Catalog.CardAnimationBinding", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@@ -40,6 +70,12 @@ namespace SOR.Database.Migrations.Catalog
|
||||
b.Property<Guid>("CardDefinitionId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("CastSoundCdnUrl")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("ImpactSoundCdnUrl")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("IsAiGenerated")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user