public override PluginInfo Init(PluginInitContext context) { context_ = context; var info = new PluginInfo(); info.Keyword = "mryj"; return info; }
public override PluginInfo Init(PluginInitContext context) { var types = Assembly.GetExecutingAssembly().GetTypes().Where(x => { return x.Namespace == @"CozyLauncher.Plugin.Program.ProgramSource" && x.GetInterface("ISource") != null; }); foreach (var type in types) { ISource inst = null; try { inst = (ISource)Activator.CreateInstance(type); } catch { continue; } if (inst != null) { SourceList.Add(inst); } } Update(); context_ = context; var info = new PluginInfo(); info.Keyword = "*"; return info; }
public override PluginInfo Init(PluginInitContext context) { this.context_ = context; var info = new PluginInfo(); info.Keyword = "ydfy"; return info; }
public override PluginInfo Init(PluginInitContext context) { context_ = context; var info = new PluginInfo(); info.Keyword = "*"; LoadActionData(); return info; }
public override PluginInfo Init(PluginInitContext context) { context_ = context; InitPathList(); var info = new PluginInfo(); info.Keyword = "p"; return info; }
public override PluginInfo Init(PluginInitContext context) { _context = context; var info = new PluginInfo() { Keyword = "*", }; return info; }
public override PluginInfo Init(PluginInitContext context) { TaskManager.Initialize(new TaskRegistry()); context_ = context; var info = new PluginInfo(); info.Keyword = "xiuxi"; return info; }
public override PluginInfo Init(PluginInitContext context) { context_ = context; yampContext = Parser.PrimaryContext; Parser.InteractiveMode = false; Parser.UseScripting = false; var info = new PluginInfo(); info.Keyword = "*"; return info; }
public override PluginInfo Init(PluginInitContext context) { this.context_ = context; var info = new PluginInfo(); info.Keyword = __KEYWORD; // init Info string _filePath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + "/Resources/ExpressInfo.json"; if (File.Exists(_filePath)) { string _txtStr = File.ReadAllText(_filePath); object _object = JsonConvert.DeserializeObject<List<ExpressDataInfo>>(_txtStr); m_listInfo = _object as List<ExpressDataInfo>; } return info; }
public PluginInfo Init(int id, PluginInitContext context) { PluginInfo pi = new PluginInfo(); CppPluginInterop.Init(id); return pi; }