示例#1
0
 /// <summary>
 /// Loads jailed characters from DB
 /// </summary>
 private void LoadJailedCharactersFromDB()
 {
     DBManager.SelectQuery("SELECT * FROM jailed_characters", (MySql.Data.MySqlClient.MySqlDataReader reader) =>
     {
         Arrest arrest = new Arrest(reader.GetInt32(1), reader.GetString(2));
         arrestedCharacters.Add(reader.GetInt32(0), arrest);
     }).Execute();
 }