// Fill list of priorities private static void FillPriorityList() { ListPriorité.Add(new PriorityWithName("boss_aggro", 150)); ListPriorité.Add(new PriorityWithName("boss_death", 150)); ListPriorité.Add(new PriorityWithName("boss_laugh", 120)); ListPriorité.Add(new PriorityWithName("boss_minion", 150)); ListPriorité.Add(new PriorityWithName("boss_win", 150)); ListPriorité.Add(new PriorityWithName("melee_swing", 30)); ListPriorité.Add(new PriorityWithName("minion_laugh", 80)); ListPriorité.Add(new PriorityWithName("proj_explosion", 35)); ListPriorité.Add(new PriorityWithName("proj_cast", 40)); ListPriorité.Add(new PriorityWithName("nec_moremana", 45)); ListPriorité.Add(new PriorityWithName("nec_death", 105)); ListPriorité.Add(new PriorityWithName("sorc_death", 0)); ListPriorité.Add(new PriorityWithName("button_click", 1)); ListPriorité.Add(new PriorityWithName("levelup", 100)); ListPriorité.Add(new PriorityWithName("cain_cube", 250)); ListPriorité.Add(new PriorityWithName("wololo", 0)); ListPriorité.Add(new PriorityWithName("m_menu", 255)); ListPriorité.Add(new PriorityWithName("m_goldeneye", 255)); ListPriorité.Add(new PriorityWithName("boss_battle_start", 254)); ListPriorité.Add(new PriorityWithName("boss_battle_loop", 255)); ListPriorité.Add(new PriorityWithName("m_act1", 255)); ListPriorité.Add(new PriorityWithName("m_act2", 255)); ListPriorité.Add(new PriorityWithName("m_act3", 255)); ListPriorité.Add(new PriorityWithName("m_act4", 255)); ListPriorité.Add(new PriorityWithName("m_act1_2", 255)); ListPriorité.Add(new PriorityWithName("sorc_nova", 41)); ListPriorité.Add(new PriorityWithName("chrono_start", 98)); ListPriorité.Add(new PriorityWithName("chrono_loop", 99)); ListPriorité.Add(new PriorityWithName("confusion", 42)); }
// Get the priority of a sound with its cue private static int GetPriorityFromCueName(string cueName) { PriorityWithName result = ListPriorité.Find(delegate(PriorityWithName i) { return(i.CueName == cueName); } ); return(result.Priority); }