Esempio n. 1
0
    bool GuildHideAndSeekDialog()
    {
        if (false == GameManager.gameManager.PlayerDataPool.IsHaveGuild())
        {
            return(false);
        }

        if (false == GameManager.gameManager.PlayerDataPool.GuildInfo.IsInHideAndSeekActivity())
        {
            return(false);
        }

        if (false == GameManager.gameManager.PlayerDataPool.GuildInfo.IsHideAndSeekNpc(m_CareNPC.SceneNpcId))
        {
            return(false);
        }

        MissionInfoController.ShowNpcDialogUI(GlobeVar.GUILD_HIDEANDSEEK_NPCDIALOG);

        CG_GUILD_FIND_HIDEANDSEEK pak = (CG_GUILD_FIND_HIDEANDSEEK)PacketDistributed.CreatePacket(MessageID.PACKET_CG_GUILD_FIND_HIDEANDSEEK);

        pak.SceneNpcId = m_CareNPC.SceneNpcId;
        pak.SendPacket();

        return(true);
    }
        public uint Execute(PacketDistributed ipacket)
        {
            CG_GUILD_FIND_HIDEANDSEEK packet = (CG_GUILD_FIND_HIDEANDSEEK )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }