Ejemplo n.º 1
0
    private void UpdateLvTable()
    {
        if (lvTable == null)
        {
            lvTable = TableAccess.Inst.GetData <LvTable>(0);
        }

        curLvExpEnd = curLvExpStart = 0;

        if (lvTable != null)
        {
            if (lvTable.arrNextLvExp != null)
            {
                if (userLV.Value != lvTable.arrNextLvExp.Length)
                {
                    curLvExpStart = userLV.Value == 0?0:lvTable.arrNextLvExp[userLV.Value - 1];
                    curLvExpEnd   = lvTable.arrNextLvExp[userLV.Value];
                }
            }
        }
        else
        {
            curLvExpEnd = 0;
        }

        OnChangeUserExp();
    }
Ejemplo n.º 2
0
    public void TestLVData()
    {
        LvTable lvTable = TableAccess.Inst.GetData <LvTable>(0);

        Assert.IsNotNull(lvTable);
        Assert.Greater(lvTable.arrNextLvExp.Length, 0);
    }