static public IEnumerator LoadAllAsync(ISQLiteLoader loader, int version = 99) { DataEnemy.LoadTable(loader); yield return(null); DataLevel.LoadTable(loader); yield return(null); g_isLoaded = true; }
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); } }
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); }
static public void LoadAll(ISQLiteLoader loader, int version = 99) { DataEnemy.LoadTable(loader); DataLevel.LoadTable(loader); }