refactor(player): 调整颜色矩阵数据类型为float32并优化NPC定时任务逻辑

This commit is contained in:
1
2025-12-17 06:56:55 +00:00
parent 1acf4edc1e
commit 09dad913fe
5 changed files with 12 additions and 14 deletions

View File

@@ -540,7 +540,7 @@ type GlowFilter struct {
Color uint32 `json:"color,omitempty"`
// Alpha 透明度0.0~1.0浮点型无法用uint8保留float64
Alpha float64 `json:"alpha,omitempty"`
Alpha float32 `json:"alpha,omitempty"`
// BlurX 水平模糊量0~255uint8默认值 6
BlurX uint8 `json:"blurX,omitempty"`
@@ -559,5 +559,5 @@ type GlowFilter struct {
// Knockout 是否挖空,默认 false
Knockout bool `json:"knockout,omitempty"`
ColorMatrixFilter [20]uint8 `json:"matrix,omitempty"`
ColorMatrixFilter [20]float32 `json:"matrix,omitempty"`
}