From c0e6cb2a0ce840bd594d05c7e2cf0a185c312fa0 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期四, 20 十一月 2025 21:27:48 +0800
Subject: [PATCH] 262 幻境阁系统-客户端
---
Main/System/Chat/ChatBubbleManager.cs | 95 +++++++++++++++++++++++------------------------
1 files changed, 47 insertions(+), 48 deletions(-)
diff --git a/Main/System/Chat/ChatBubbleManager.cs b/Main/System/Chat/ChatBubbleManager.cs
index fbfd584..df138fb 100644
--- a/Main/System/Chat/ChatBubbleManager.cs
+++ b/Main/System/Chat/ChatBubbleManager.cs
@@ -1,5 +1,4 @@
锘縰sing System;
-using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@@ -78,51 +77,51 @@
public Dictionary<int, BubbleBox> bubblesIfo = new Dictionary<int, BubbleBox>();
- public void UpdateBubbleState(HA717_tagMCChatBubbleBoxState package)
- {
- List<int> list = null;
- if (serverInited)
- {
- list = new List<int>();
- foreach (var id in chatBubbles.Keys)
- {
- if (!IsBubbleGot(id))
- {
- list.Add(id);
- }
- }
- }
+ // public void UpdateBubbleState(HA717_tagMCChatBubbleBoxState package)
+ // {
+ // List<int> list = null;
+ // if (serverInited)
+ // {
+ // list = new List<int>();
+ // foreach (var id in chatBubbles.Keys)
+ // {
+ // if (!IsBubbleGot(id))
+ // {
+ // list.Add(id);
+ // }
+ // }
+ // }
- for (int i = 0; i < package.Count; i++)
- {
- var info = package.BoxList[i];
- bubblesIfo[info.BoxID] = new BubbleBox()
- {
- State = info.State,
- EndTime = (int)info.EndTime,
- Star = info.Star,
- };
- }
+ // for (int i = 0; i < package.Count; i++)
+ // {
+ // var info = package.BoxList[i];
+ // bubblesIfo[info.BoxID] = new BubbleBox()
+ // {
+ // State = info.State,
+ // EndTime = (int)info.EndTime,
+ // Star = info.Star,
+ // };
+ // }
- if (serverInited)
- {
- if (list != null)
- {
- for (int i = 0; i < list.Count; i++)
- {
- if (IsBubbleGot(list[i]))
- {
- SendUseBubble(list[i]);
- break;
- }
- }
- }
- }
- if (chatBubbleStateRefresh != null)
- {
- chatBubbleStateRefresh();
- }
- }
+ // if (serverInited)
+ // {
+ // if (list != null)
+ // {
+ // for (int i = 0; i < list.Count; i++)
+ // {
+ // if (IsBubbleGot(list[i]))
+ // {
+ // SendUseBubble(list[i]);
+ // break;
+ // }
+ // }
+ // }
+ // }
+ // if (chatBubbleStateRefresh != null)
+ // {
+ // chatBubbleStateRefresh();
+ // }
+ // }
public void SendUseBubble(int id)
{
@@ -130,13 +129,13 @@
{
return;
}
- if (id == PlayerDatas.Instance.baseData.bubbleId)
+ if (id == PlayerDatas.Instance.baseData.chatBox)
{
return;
}
- CA230_tagCMSetChatBubbleBox pak = new CA230_tagCMSetChatBubbleBox();
- pak.BubbleBoxType = (byte)id;
- GameNetSystem.Instance.SendInfo(pak);
+ // CA230_tagCMSetChatBubbleBox pak = new CA230_tagCMSetChatBubbleBox();
+ // pak.BubbleBoxType = (byte)id;
+ // GameNetSystem.Instance.SendInfo(pak);
}
#endregion
--
Gitblit v1.8.0