public void RegisterObserverByEventType(GameEventType e, GameEventObserver ob) { GameEventSubject sub = GetGameEventType(e); sub.RegisterObserver(ob); ob.SetSubject(sub); }
public void RemoveObserverByEventType(GameEventType e, GameEventObserver ob) { GetGameEventType(e).RemoveObserver(ob); ob.SetSubject(null); }