示例#1
0
文件: AvatarInfo.cs 项目: zadark/par
        public AvatarTracker(PubComb plugin)
        {
            this.plugin = plugin;
            this.frame = plugin.frame;
            this.proxy = plugin.frame.proxy;
            this.SharedInfo = plugin.SharedInfo;

            this.proxy.AddDelegate(PacketType.ObjectUpdate, Direction.Incoming, new PacketDelegate(InObjectUpdateHandler));
            this.proxy.AddDelegate(PacketType.ImprovedTerseObjectUpdate, Direction.Incoming, new PacketDelegate(InImprovedTerseObjectUpdateHandler));
            this.proxy.AddDelegate(PacketType.KillObject, Direction.Incoming, new PacketDelegate(InKillObjectHandler));
            this.proxy.AddDelegate(PacketType.DisableSimulator, Direction.Incoming, new PacketDelegate(InDisableSimulatorHandler));
            form = new FormAvatars(this);

            //formthread = new Thread(new ThreadStart(showform));
            //formthread.SetApartmentState(ApartmentState.STA);
            //formthread.Start();
        }
示例#2
0
文件: AvatarInfo.cs 项目: zadark/par
        public AvatarTracker(PubComb plugin)
        {
            this.plugin     = plugin;
            this.frame      = plugin.frame;
            this.proxy      = plugin.frame.proxy;
            this.SharedInfo = plugin.SharedInfo;

            this.proxy.AddDelegate(PacketType.ObjectUpdate, Direction.Incoming, new PacketDelegate(InObjectUpdateHandler));
            this.proxy.AddDelegate(PacketType.ImprovedTerseObjectUpdate, Direction.Incoming, new PacketDelegate(InImprovedTerseObjectUpdateHandler));
            this.proxy.AddDelegate(PacketType.KillObject, Direction.Incoming, new PacketDelegate(InKillObjectHandler));
            this.proxy.AddDelegate(PacketType.DisableSimulator, Direction.Incoming, new PacketDelegate(InDisableSimulatorHandler));
            form = new FormAvatars(this);

            //formthread = new Thread(new ThreadStart(showform));
            //formthread.SetApartmentState(ApartmentState.STA);
            //formthread.Start();
        }