feat(plugins): 迁移非 1.13c 原版「光照预设 (Lighting Presets)」至 plugins/lighting-presets #715
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
Diablo II v1.13c 原版环境光由关卡与昼夜循环(
auto)决定。当前仓库中的手动光照预设(noon | dusk | night | torch | cold | fullbright)属于非 1.13c 原版的客户端视觉增强功能。当前核心代码位置
src/client/scene/lighting-presets.ts/src/client/settings/client-settings.ts:ClientLightingPresetsrc/client/toolbar/toolbar.ts:工具栏#d2-toolbar-lighting-select下拉框src/client/render/world-renderer.ts&src/client/main.ts:光照预设应用逻辑迁移目标
plugins/插件框架与PluginHost落地后,将手动光照预设拆分为独立插件plugins/lighting-presets/。auto);启用后可在插件配置菜单中选择预设。验收标准
plugins/lighting-presets/index.ts实现D2WebPlugin契约并通过tests/arch/boundaries.test.ts插件边界检查auto原版光照npm run typecheck与npx vitest run100% 通过Fixed in commit
fdde06b(origin/main): migrated the non-1.13c manual Lighting Presets (auto | noon | dusk | night | torch | cold | fullbright) selector out of coresrc/client/toolbar/toolbar.tsintoplugins/lighting-presets/index.ts. Whenlighting-presetsis disabled,PluginHostreleases the capability claim and strictly enforces 1.13c native level lighting (lightingPreset = "auto") while removing#d2-toolbar-lighting-selectfrom the toolbar.