Esempio n. 1
0
    public override void OnRow(ITabRow row)
    {
        CreatePlayerTab tab = new CreatePlayerTab();

        tab.Id       = row.GetInt((int)Cols.ID);
        tab.RoleType = row.GetInt((int)Cols.ROLETYPE);
        tab.Desc     = row.GetString((int)Cols.DESC);

        if (!ConfPool.ContainsKey(tab.Id.ToString()))
        {
            ConfPool.Add(tab.Id.ToString(), tab);
        }
    }
Esempio n. 2
0
    public override void OnRow(ITabRow row)
    {
        SceneTab tab = new SceneTab();

        tab.Id   = row.GetInt((int)Cols.ID);
        tab.Name = row.GetString((int)Cols.NAME);
        tab.Des  = row.GetString((int)Cols.DES);

        if (!ConfPool.ContainsKey(tab.Id.ToString()))
        {
            ConfPool.Add(tab.Id.ToString(), tab);
        }
    }
    public override void OnRow(ITabRow row)
    {
        PlayerDataTab tab = new PlayerDataTab();

        tab.ID        = row.GetString((int)Cols.ID);
        tab.Name      = row.GetString((int)Cols.NAME);
        tab.AssetName = row.GetString((int)Cols.ASSETNAME);
        tab.HP        = row.GetInt((int)Cols.HP);
        tab.Attack    = row.GetInt((int)Cols.ATTACK);
        tab.Defence   = row.GetInt((int)Cols.DEFENCE);
        tab.ActPoints = row.GetInt((int)Cols.ACTPOINTS);
        tab.ActSpeed  = row.GetInt((int)Cols.ACTSPEED);
        tab.Hit       = row.GetInt((int)Cols.HIT);
        tab.Dodge     = row.GetInt((int)Cols.DODGE);
        tab.Critical  = row.GetInt((int)Cols.CRITICAL);

        if (!ConfPool.ContainsKey(tab.ID.ToString()))
        {
            ConfPool.Add(tab.ID.ToString(), tab);
        }
    }