예제 #1
0
 private void _OnReceivePrivateStamp(ClanChatLogMessageData clanChatMsgData)
 {
     if (this.onReceivePrivateStamp != null)
     {
         this.onReceivePrivateStamp(clanChatMsgData);
     }
 }
예제 #2
0
 private void _OnReceiveText(ClanChatLogMessageData clanChatMsgData)
 {
     if (this.onReceiveText != null)
     {
         this.onReceiveText(clanChatMsgData);
     }
 }
    private void OnReceiveMessage(ChatPacket packet)
    {
        Chat_Model_BroadcastClanMessage_Response chat_Model_BroadcastClanMessage_Response = packet.model as Chat_Model_BroadcastClanMessage_Response;
        int result  = 0;
        int result2 = 0;

        int.TryParse(chat_Model_BroadcastClanMessage_Response.SenderId, out result);
        int.TryParse(chat_Model_BroadcastClanMessage_Response.Id, out result2);
        if (result == 0)
        {
            if (this.onReceiveNotification != null)
            {
                this.onReceiveNotification(chat_Model_BroadcastClanMessage_Response.Message);
            }
        }
        else if (chat_Model_BroadcastClanMessage_Response.Message.Contains(STAMP_SYMBOL_BEGIN))
        {
            string s       = chat_Model_BroadcastClanMessage_Response.Message.Substring(STAMP_SYMBOL_BEGIN.Length, 8);
            int    result3 = -1;
            int.TryParse(s, out result3);
            if (this.onReceiveStamp != null)
            {
                ClanChatLogMessageData clanChatLogMessageData = new ClanChatLogMessageData();
                clanChatLogMessageData.uuid       = chat_Model_BroadcastClanMessage_Response.Uuid;
                clanChatLogMessageData.id         = result2;
                clanChatLogMessageData.fromUserId = result;
                clanChatLogMessageData.senderName = chat_Model_BroadcastClanMessage_Response.SenderName;
                clanChatLogMessageData.stampId    = result3;
                this.onReceiveStamp(clanChatLogMessageData);
            }
        }
        else if (this.onReceiveText != null)
        {
            ClanChatLogMessageData clanChatLogMessageData2 = new ClanChatLogMessageData();
            clanChatLogMessageData2.uuid       = chat_Model_BroadcastClanMessage_Response.Uuid;
            clanChatLogMessageData2.id         = result2;
            clanChatLogMessageData2.fromUserId = result;
            clanChatLogMessageData2.senderName = chat_Model_BroadcastClanMessage_Response.SenderName;
            clanChatLogMessageData2.message    = chat_Model_BroadcastClanMessage_Response.Message;
            this.onReceiveText(clanChatLogMessageData2);
        }
    }
예제 #4
0
 private void Update()
 {
     //IL_000c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0011: Unknown result type (might be due to invalid IL or missing references)
     //IL_0016: Unknown result type (might be due to invalid IL or missing references)
     //IL_00c9: Unknown result type (might be due to invalid IL or missing references)
     //IL_00df: Unknown result type (might be due to invalid IL or missing references)
     //IL_00f5: Unknown result type (might be due to invalid IL or missing references)
     //IL_010c: Expected O, but got Unknown
     if (checkLongPress)
     {
         float num = Vector2.Distance(mousePosition, Vector2.op_Implicit(Input.get_mousePosition()));
         if (num > 10f)
         {
             checkLongPress = false;
         }
         else if (Time.get_time() - startPressTime > 1f)
         {
             checkLongPress = false;
             ClanChatLogMessageData clanChatLogMessageData = new ClanChatLogMessageData();
             clanChatLogMessageData.fromUserId = senderId;
             clanChatLogMessageData.id         = msgId;
             clanChatLogMessageData.uuid       = uuId;
             clanChatLogMessageData.stampId    = stampId;
             if (stampId <= 0)
             {
                 clanChatLogMessageData.type    = 0;
                 clanChatLogMessageData.message = msg;
             }
             else
             {
                 clanChatLogMessageData.type    = 1;
                 clanChatLogMessageData.message = stampId.ToString();
             }
             m_PinButton.get_gameObject().GetComponent <UIGameSceneEventSender>().eventData = clanChatLogMessageData;
             m_PinButton.get_gameObject().SetActive(true);
             MonoBehaviourSingleton <GameSceneManager> .I.ExecuteSceneEvent("GuildChatItem", this.get_gameObject(), "HIDE_PIN_BTN", msgId_.ToString(), null, true);
         }
     }
 }