예제 #1
0
    void initGuideDate()
    {
        SetLoginProgress(1, false);
        GuildGetInfoFPort prot = FPortManager.Instance.getFPort("GuildGetInfoFPort") as GuildGetInfoFPort;

        prot.access(InitMining);
    }
예제 #2
0
    private void intoBack(MessageHandle msg)
    {
        GuildGetInfoFPort fport = FPortManager.Instance.getFPort("GuildGetInfoFPort") as GuildGetInfoFPort;

        fport.access(() => {
            win.destoryWindow();
            GuildManagerment.Instance.openWindow();
        });
    }
예제 #3
0
    /// <summary>
    /// 获得公会得分
    /// </summary>
    /// <returns></returns>
    private int getGuildScore()
    {
        GuildGetInfoFPort fport = FPortManager.Instance.getFPort("GuildGetInfoFPort") as GuildGetInfoFPort;

        fport.access(null);
        //foreach (GuildAreaPreInfo info in GuildManagerment.Instance.guildFightInfo.areas)
        //{
        //    if (info.uid == UserManager.Instance.self.guildId)
        //        score = info.judgeScore;
        //}
        return(GuildManagerment.Instance.selfScore);
    }
예제 #4
0
    /// <summary>
    /// 更新公会信息,有回调就回调
    /// </summary>
    public void updateGuildInfo(CallBack _callback)
    {
        GuildGetInfoFPort fport = FPortManager.Instance.getFPort("GuildGetInfoFPort") as GuildGetInfoFPort;

        fport.access(() => {
            if (_callback != null)
            {
                _callback();
                _callback = null;
            }
        });
    }
예제 #5
0
    public override void read(ErlKVMessage message)
    {
        ErlType type = message.getValue("msg") as ErlType;

        if (type.getValueString() == "ok")
        {
            GuildGetInfoFPort fport = FPortManager.Instance.getFPort("GuildGetInfoFPort") as GuildGetInfoFPort;
            fport.access(msgBack);
        }
        else if (type.getValueString() == "name_repeat")
        {
            UiManager.Instance.openDialogWindow <MessageWindow> ((win) => {
                win.initWindow(1, LanguageConfigManager.Instance.getLanguage("s0093"), null, LanguageConfigManager.Instance.getLanguage("Guild_5"), null);
            });
        }
        else if (type.getValueString() == "mask_word")
        {
            UiManager.Instance.openDialogWindow <MessageWindow> ((win) => {
                win.initWindow(1, LanguageConfigManager.Instance.getLanguage("s0093"), null, LanguageConfigManager.Instance.getLanguage("Guild_6"), null);
            });
        }
        else if (type.getValueString() == "mask_word")
        {
            UiManager.Instance.openDialogWindow <MessageWindow> ((win) => {
                win.initWindow(1, LanguageConfigManager.Instance.getLanguage("s0093"), null, LanguageConfigManager.Instance.getLanguage("Guild_1"), null);
            });
        }
        else if (type.getValueString() == "non_mem")
        {
            UiManager.Instance.openDialogWindow <MessageWindow> ((win) => {
                win.initWindow(1, LanguageConfigManager.Instance.getLanguage("s0093"), null, LanguageConfigManager.Instance.getLanguage("Guild_90"), null);
            });
        }
        else if (type.getValueString() == "limit")
        {
            MessageWindow.ShowAlert(LanguageConfigManager.Instance.getLanguage("Guild_error0"));
        }
    }
예제 #6
0
    private void succeedBack(MessageHandle msg)
    {
        GuildGetInfoFPort fport = FPortManager.Instance.getFPort("GuildGetInfoFPort") as GuildGetInfoFPort;

        fport.access(openGuildWindow);
    }