23 lines
568 B
C#
23 lines
568 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Cryville.Crtr {
|
|
public class EffectManager {
|
|
readonly Dictionary<int, EffectGroup> _groups
|
|
= new Dictionary<int, EffectGroup>();
|
|
public EffectManager(PdtSkin skin) {
|
|
foreach (var e in skin.effects) {
|
|
_groups.Add(e.Key.Key, new EffectGroup(e.Value));
|
|
}
|
|
}
|
|
public void Tick(double time) {
|
|
foreach (var g in _groups) g.Value.Tick(time);
|
|
}
|
|
public void Emit(int id, float index) {
|
|
_groups[id].Emit(index);
|
|
}
|
|
public void Dispose() {
|
|
foreach (var g in _groups) g.Value.Dispose();
|
|
}
|
|
}
|
|
}
|