feat: Phase 8 - VFX 和 AI 打赏反应系统

- Unity: 添加 VFXManager 实现金币雨和爱心爆炸特效
- Unity: NetworkManager 支持 GiftEffect 事件
- Unity: AgentVisual 支持自定义时长的 SpeechBubble
- Backend: LLMService 支持生成个性化感谢语
- Backend: Engine 统一处理礼物逻辑 (handle_gift)
- Backend: TwitchBot 接入新的礼物处理流程
This commit is contained in:
empty
2026-01-01 21:38:49 +08:00
parent 1f29010de6
commit d1b02b4dfd
12 changed files with 731 additions and 57 deletions

View File

@@ -240,6 +240,21 @@ namespace TheIsland.Models
public string dialogue;
}
/// <summary>
/// Gift effect event data (Twitch bits, subscriptions, etc.).
/// </summary>
[Serializable]
public class GiftEffectData
{
public string user;
public string gift_type; // "bits", "heart", "sub"
public int value;
public string message;
public string agent_name; // Target agent for the effect
public string gratitude; // AI-generated thank you message
public float duration; // How long to show the speech bubble (default 8s)
}
/// <summary>
/// Client message structure for sending to server.
/// </summary>
@@ -293,5 +308,8 @@ namespace TheIsland.Models
public const string SOCIAL_INTERACTION = "social_interaction";
public const string RELATIONSHIP_CHANGE = "relationship_change";
public const string AUTO_REVIVE = "auto_revive";
// Gift/Donation system (Phase 8)
public const string GIFT_EFFECT = "gift_effect";
}
}