Files
test/Assets/Scripts/chat_search.txt
T
2026-03-24 10:58:19 +07:00

119 lines
34 KiB
Plaintext

c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.cs: EC_Game.GetGameRun()?.AddFixedChannelMsg(msgId, (int)ChatChannel.GP_CHAT_FIGHT, (int)dwNum);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.cs: EC_Game.GetGameRun()?.AddFixedChannelMsg((int)FixedMsg.FIXMSG_GOTSP, (int)ChatChannel.GP_CHAT_FIGHT, (int)dwNum);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.cs: EC_Game.GetGameRun()?.AddFixedChannelMsg((int)FixedMsg.FIXMSG_GOT_REALMEXP, (int)ChatChannel.GP_CHAT_FIGHT, (int)dwNum);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.cs: // pSession.SendPrivateChatData(pFriend.GetName(),
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.cs: // pGameUI.AddChatMessage(pGameUI.GetStringFromTable(9638), GP_CHAT_SYSTEM);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.Inventory.cs: (int)ChatChannel.GP_CHAT_FIGHT);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.Inventory.cs: pGameRun.AddChatMessage(pStrTab.GetWideString((int)FixedMsg.FIXMSG_NOTARGET),
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.Inventory.cs: (int)ChatChannel.GP_CHAT_SYSTEM);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.Inventory.cs: pGameRun.AddChatMessage(pStrTab.GetWideString((int)FixedMsg.FIXMSG_TARGETISFAR),
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.Inventory.cs: (int)ChatChannel.GP_CHAT_SYSTEM);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.Skill.cs: //EC_Game.GetGameRun().AddFixedChannelMsg(FIXMSG_TARGETWRONG, GP_CHAT_FIGHT);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECHostPlayer.Skill.cs: // EC_Game.GetGameRun().AddFixedChannelMsg(iMsg, GP_CHAT_FIGHT);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECUIManager.cs:using BrewMonster.PerfectWorld.Scripts.Utility.ChatFilter;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECUIManager.cs: AddChatMessage(GetStringFromTable(270), GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECUIManager.cs: AddChatMessage(GetStringFromTable(527), GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECUIManager.cs: AddChatMessage(GetStringFromTable(541), GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECUIManager.cs: AddChatMessage(GetStringFromTable(271), GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECUIManager.cs: AddChatMessage(GetStringFromTable(556), GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECUIManager.cs: AddChatMessage(GetStringFromTable(557), GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECUIManager.cs: AddChatMessage(GetStringFromTable(11168), GP_CHAT_MISC);*/
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\CECUIManager.cs: str = ChatFilterService.Filter(str, out var isValidWord);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs:namespace BrewMonster.Scripts.ChatUI
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: public class ChatCommandProcessor
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: private struct ChatHistoryEntry
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: public ChatChannel channel;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: private static List<ChatHistoryEntry> _history = new List<ChatHistoryEntry>();
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: public ChatChannel channel;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: channel = ChatChannel.GP_CHAT_LOCAL,
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: if (entry.channel != ChatChannel.GP_CHAT_WHISPER &&
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: ChatChannel channel = ChatChannel.GP_CHAT_LOCAL;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: channel = ChatChannel.GP_CHAT_TEAM;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: channel = ChatChannel.GP_CHAT_FACTION;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: channel = ChatChannel.GP_CHAT_FARCRY;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: channel = ChatChannel.GP_CHAT_SUPERFARCRY;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: channel = ChatChannel.GP_CHAT_COUNTRY;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: channel = ChatChannel.GP_CHAT_TRADE;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: channel = ChatChannel.GP_CHAT_WHISPER;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: channel = HasCountryWarChannel() ? ChatChannel.GP_CHAT_BATTLE : ChatChannel.GP_CHAT_LOCAL;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: _history.Add(new ChatHistoryEntry { channel = channel, time = now, message = text });
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: if (channel == ChatChannel.GP_CHAT_FARCRY) _lastFarCryTime = now;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatCommandProcessor.cs: if (channel == ChatChannel.GP_CHAT_SUPERFARCRY) _lastSuperFarCryTime = now;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs:namespace BrewMonster.Scripts.ChatUI
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: public class ChatInputHandler : MonoBehaviour
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: public ChatSystemSO chatSystem;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: public ChatChannel channel;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: private ChatChannel m_currentChannel = ChatChannel.GP_CHAT_LOCAL;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: private struct ChatMsg
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: public ChatChannel channel;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: private List<ChatMsg> m_vecHistory = new();
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: ChatChannel ch = mapping.channel; // Capture variable for closure
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: // PORT C++: CDlgChat::OnCommand_speakmode
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: // Sets the chat input prefix based on the selected channel from SO.
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: private void OnCommand_speakmode(ChatChannel channel)
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: if (chatSystem == null) return;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: // Update button visual states using sprites from ChatSystemSO
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: mapping.button.image.sprite = chatSystem.selectedSprite;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: mapping.button.image.sprite = chatSystem.unselectedSprite;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: var config = chatSystem.channelIcons.Find(c => c.channel == channel);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: // PORT C++: CDlgChat::OnCommand_speak
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: ChatChannel resolvedChannel = ParseAndSendMessage(strText, nPack, nSlot);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: AddChatMessage(CECUIManager.Instance.GameUI.GetStringFromTable(731), ChatChannel.GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: AddChatMessage(CECUIManager.Instance.GameUI.GetStringFromTable(730), ChatChannel.GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: AddChatMessage(CECUIManager.Instance.GameUI.GetStringFromTable(8531), ChatChannel.GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: AddChatMessage(CECUIManager.Instance.GameUI.GetStringFromTable(8530), ChatChannel.GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: AddChatMessage(CECUIManager.Instance.GameUI.GetStringFromTable(272), ChatChannel.GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: if (cm.channel != ChatChannel.GP_CHAT_WHISPER &&
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: AddChatMessage(CECUIManager.Instance.GameUI.GetStringFromTable(273), ChatChannel.GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: private ChatChannel ParseAndSendMessage(string text, int nPack, int nSlot)
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: ChatChannel channel = m_currentChannel;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: channel = ChatChannel.GP_CHAT_TEAM;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: channel = ChatChannel.GP_CHAT_FACTION;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: channel = ChatChannel.GP_CHAT_FARCRY;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: channel = ChatChannel.GP_CHAT_SUPERFARCRY;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: channel = ChatChannel.GP_CHAT_TRADE;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: return ChatChannel.GP_CHAT_WHISPER;
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: SendChat(channel, pszMsg, nPack, nSlot);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: AddChatMessage(CECUIManager.Instance.GameUI.GetStringFromTable(234), ChatChannel.GP_CHAT_MISC);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: SendPrivateChat(player, msg, nPack, nSlot);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: // SEND CHAT
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: private void SendChat(ChatChannel channel, string msg, int pack, int slot)
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: UnityGameSession.SendChatData((byte)channel, msg, pack, slot);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: private void SendPrivateChat(string target, string msg, int pack, int slot)
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: // [Port] C++: CDlgChat::OnCommand_speak → privatechat branch
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: UnityGameSession.Instance.GameSession.SendPrivateChatData(target, msg, 0, 0, pack, slot);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: EventBus.Publish(new GameSession.ChatMessageEvent(localEcho, (byte)ChatChannel.GP_CHAT_WHISPER));
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: private void SaveHistory(ChatChannel channel, string msg, int pack, int slot, float now)
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: m_vecHistory.Add(new ChatMsg
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: private void AddChatMessage(string msg, ChatChannel channel, int idPlayer = -1, string pszPlayer = "", byte byFlag = 0)
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: if (channel is not ChatChannel.GP_CHAT_MISC)
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: // 3. Flag handling (Friend chat routing)
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: EventBus.Publish(new GameSession.ChatMessageEvent(finalMsg, (byte)channel));
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: Debug.Log("[Cuong] AddChatMessage" + finalMsg);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: private string GetChannelColorHex(ChatChannel channel)
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: ChatChannel.GP_CHAT_TEAM => "00FFFF", // Cyan
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: ChatChannel.GP_CHAT_FACTION => "00FF00", // Green
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: ChatChannel.GP_CHAT_FARCRY => "FFFF00", // Yellow
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: ChatChannel.GP_CHAT_WHISPER => "FF00FF", // Magenta
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: private string GetChannelPrefix(ChatChannel channel)
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: ChatChannel.GP_CHAT_TEAM => "[Team] ",
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: ChatChannel.GP_CHAT_FACTION => "[Faction] ",
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: ChatChannel.GP_CHAT_FARCRY => "[World] ",
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\ChatInputHandler.cs: ChatChannel.GP_CHAT_WHISPER => "[Whisper] ",
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: /// Add a fixed message to chat system with optional formatting parameters
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: // Try to add to in-game UI chat
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: //pGameUI.AddChatMessage(szFormattedMsg, (int)GP_CHAT.GP_CHAT_SYSTEM);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: /// Add a fixed message to specific chat channel with optional formatting
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: /// <param name="cChannel">Chat channel ID / 聊天频道ID</param>
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: // Try to add to in-game UI chat with specific channel
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: //pGameUI.AddChatMessage(szFormattedMsg, cChannel);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: /// Add a chat message with full parameters (matching C++ signature)
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: /// <param name="cChannel">Chat channel / 聊天频道</param>
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: public void AddChatMessage(string pszMsg, int cChannel, int idPlayer = -1,
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: // Call UI manager's AddChatMessage with full parameters
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRun.cs: pGameUI.AddChatMessage(pszMsg, (ChatChannel)cChannel, idPlayer, szName, byFlag, cEmotion, pItem, pszMsgOrigion);
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRunChat.cs: EventBus.Publish(new GameSession.ChatMessageEvent { context = textTime, channel = (byte)ChatChannel.GP_CHAT_SYSTEM });
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRunChat.cs: EventBus.Publish(new GameSession.ChatMessageEvent { context = textIp, channel = (byte)ChatChannel.GP_CHAT_SYSTEM });
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRunChat.cs: EventBus.Publish(new GameSession.ChatMessageEvent { context = textCurIp, channel = (byte)ChatChannel.GP_CHAT_SYSTEM });
c:\Unity\CuongNV\perfect-world-unity\Assets\Scripts\EC_GameRunChat.cs: EventBus.Publish(new GameSession.ChatMessageEvent { context = text, channel = (byte)ChatChannel.GP_CHAT_SYSTEM });