public RainbowParticlesPlugin(PubComb plug) { plugin = plug; form = new RainbowParticlesForm1(this); this.frame = plugin.frame; this.proxy = plugin.proxy; this.proxy.AddDelegate(PacketType.ScriptDialogReply, Direction.Outgoing, new PacketDelegate(OutDialogFromViewer)); this.proxy.AddDelegate(PacketType.ChatFromViewer, Direction.Outgoing, new PacketDelegate(OutChatFromViewerHandler)); this.proxy.AddDelegate(PacketType.ViewerEffect, Direction.Outgoing, new PacketDelegate(OutViewerEffectHandler)); GregTimer.Elapsed += new System.Timers.ElapsedEventHandler(GregTimer_Elapsed); GregTimer.Start(); }
public RainbowParticlesPlugin(PubComb plug) { plugin = plug; form = new RainbowParticlesForm1(this); this.frame = plugin.frame; this.proxy = plugin.proxy; this.proxy.AddDelegate(PacketType.ScriptDialogReply, Direction.Outgoing, new PacketDelegate(OutDialogFromViewer)); this.proxy.AddDelegate(PacketType.ChatFromViewer, Direction.Outgoing, new PacketDelegate(OutChatFromViewerHandler)); this.proxy.AddDelegate(PacketType.ViewerEffect, Direction.Outgoing, new PacketDelegate(OutViewerEffectHandler)); GregTimer.Elapsed += new System.Timers.ElapsedEventHandler(GregTimer_Elapsed); GregTimer.Start(); }