You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-15 14:46:29 +09:00
NetPeer.WaitMessage readded
LibraryTestSamples/DurableSample added
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using SamplesCommon;
|
||||
|
||||
namespace DurableClient
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
private NetPeerSettingsWindow m_settingsWindow;
|
||||
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(textBox1.Text))
|
||||
textBox1.Text = "localhost";
|
||||
|
||||
Program.Connect(textBox1.Text);
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (m_settingsWindow == null)
|
||||
{
|
||||
m_settingsWindow = new NetPeerSettingsWindow("Durable client settings", Program.Client);
|
||||
m_settingsWindow.Show();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_settingsWindow.Close();
|
||||
m_settingsWindow = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user