コード例 #1
0
ファイル: PluginManager.cs プロジェクト: sgfgaming/beliEVE
        public void CreateInterfaces()
        {
            foreach (var plugin in Plugins)
            {
                var             type  = plugin.Type;
                PluginInterface iface = null;
                switch (type)
                {
                case PluginType.PacketSource:
                    iface = new PacketSourceHandler(plugin);
                    break;

                case PluginType.Generic:
                    iface = new GenericHandler(plugin);
                    break;

                default:
                    Core.Log(LogSeverity.Error, "No interface for type " + type + " and plugin " + plugin.Name);
                    break;
                }

                if (iface != null)
                {
                    plugin.SetInterface(iface);
                }
            }
        }
コード例 #2
0
ファイル: DestinyToolPlugin.cs プロジェクト: Reve/beliEVE
 public void SetInterface(PluginInterface iface)
 {
 }