Example #1
0
 public void start()
 {
     Interceptor = new RustInterceptor(Settings.Default.Server_IP, Settings.Default.Server_PORT);
     Interceptor.AddPacketsToFilter(Packet.Rust.Entities, Packet.Rust.EntityDestroy, Packet.Rust.EntityPosition);
     //Interceptor.RegisterCommandCallback(OnCommand);
     Interceptor.RegisterCallback(internalOnPacket);
     Interceptor.Start();
     stopped = false;
     Console.WriteLine("Started");
 }
Example #2
0
 private void StartButton_Click(object sender, EventArgs e)
 {
     inty = new RustInterceptor(IPBox.Text, int.Parse(PortBox.Text));
     inty.ClientPackets   = false;
     inty.RememberPackets = false;
     inty.AddPacketsToFilter(Packet.Rust.Entities, Packet.Rust.EntityDestroy, Packet.Rust.EntityPosition);
     inty.RegisterCallback(PacketReceived);
     //inty.commandCallback = OnCommand;
     //inty.packetHandlerCallback = internalOnPacket;
     inty.Start();
 }