Exemplo n.º 1
0
        public uint Execute(PacketDistributed ipacket)
        {
            CG_GUILD_SEARCH packet = (CG_GUILD_SEARCH )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Exemplo n.º 2
0
    void OnSearchClick()
    {
        if (m_GuildNameInput.value.Length <= 0)
        {
            GUIData.AddNotifyData("#{1761}"); //请输入帮会名称
            return;
        }

        if (Encoding.UTF8.GetBytes(m_GuildNameInput.value).Length > GlobeVar.MAX_GUILD_NAME)
        {
            GUIData.AddNotifyData("#{10365}"); //公会名过长
            return;
        }

        Utils.CleanGrid(m_GuildListGrid);

        CG_GUILD_SEARCH pak = (CG_GUILD_SEARCH)PacketDistributed.CreatePacket(MessageID.PACKET_CG_GUILD_SEARCH);

        pak.GuildName = m_GuildNameInput.value;
        pak.SendPacket();
    }