void LoadMonsterTemplates_Process_Handler(Task t) { foreach (object[] row in t.Query.Rows) { MonsterTemplate mt = MonsterTemplate.ReadFromDB(row); _server.AddMonsterTemplate(mt); } t.Type = Task.TaskType.LoadMonsterSpawners_Process; AddDBQuery("SELECT * FROM monster_spawners;", t); }