示例#1
0
        public static void RegisterEventSource(IEventSource source)
        {
            Container.BuildUp(source);
            _eventSources.Add(source);

            AddonRegistered?.Invoke(null, new EventArgs());
        }
示例#2
0
        public static void RegisterOverlay <T>()
            where T : class, IOverlay
        {
            _overlays.Add(typeof(T));
            Container.Register <T>();

            AddonRegistered?.Invoke(null, new EventArgs());
        }