Exemple #1
0
    static public IEnumerator LoadAllAsync(ISQLiteLoader loader, int version = 99)
    {
        DataEnemy.LoadTable(loader);
        yield return(null);

        DataLevel.LoadTable(loader);
        yield return(null);

        g_isLoaded = true;
    }
Exemple #2
0
    static public void LoadTable(ISQLiteLoader con)
    {
        Clear();
        DataEnemy table = new DataEnemy();

        cashedList = table.ReadAll(con, _ColumnNames, _QuotedTableName);

        foreach (DataEnemy data in cashedList)
        {
            _Get.Add(data.id, data);
        }
    }
Exemple #3
0
    public List <T> ReadAll(ISQLiteLoader con, String columns, String name)
    {
        List <T> list = new List <T>();

        SQLiteQuery query = con.Query(String.Format("SELECT {0} FROM {1}", columns, name));

        while (query.Step())
        {
            var ins = Activator.CreateInstance <T>();
            ins.Create(query);
            list.Add(ins);
        }

        return(list);
    }
Exemple #4
0
 static public void LoadAll(ISQLiteLoader loader, int version = 99)
 {
     DataEnemy.LoadTable(loader);
     DataLevel.LoadTable(loader);
 }