Beispiel #1
0
 public static MINE_CONSTANT_Manager GetInstance()
 {
     if (MINE_CONSTANT_Manager.Instance == null)
     {
         MINE_CONSTANT_Manager.Instance = new MINE_CONSTANT_Manager(CDefinePath.MineConstantURL);
     }
     return(MINE_CONSTANT_Manager.Instance);
 }
Beispiel #2
0
    public int GetMineDayLimitCount()
    {
        MINE_CONSTANT_Manager instance = MINE_CONSTANT_Manager.GetInstance();

        if (instance != null)
        {
            return(instance.GetValue(eMINE_CONSTANT.eMINE_DAY_COUNT));
        }
        return(0);
    }
Beispiel #3
0
    public void OnClickMilitaryReturn(IUIObject obj)
    {
        MINE_GUILD_CURRENTSTATUS_INFO mINE_GUILD_CURRENTSTATUS_INFO = obj.Data as MINE_GUILD_CURRENTSTATUS_INFO;

        if (mINE_GUILD_CURRENTSTATUS_INFO == null)
        {
            return;
        }
        if (mINE_GUILD_CURRENTSTATUS_INFO.i64MineID <= 0L)
        {
            return;
        }
        long num = 0L;
        MINE_CONSTANT_Manager instance = MINE_CONSTANT_Manager.GetInstance();

        if (instance != null)
        {
            num = (long)instance.GetValue(eMINE_CONSTANT.eMINE_CONSTANT_MINE_RETURN_TIME);
        }
        string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("94");

        string textFromMessageBox2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("161");

        string empty = string.Empty;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            textFromMessageBox2,
            "count",
            num.ToString()
        });

        MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

        msgBoxUI.SetMsg(new YesDelegate(this.OnStartBackMove), mINE_GUILD_CURRENTSTATUS_INFO, textFromMessageBox, empty, eMsgType.MB_OK_CANCEL, 2);
    }