private void OnStatusMessage(CozyClient cozyClient, NetIncomingMessage msg) { if (StatusMessage != null) { StatusMessage(this, new ClienEventArgs(cozyClient.InnerClient, msg)); } }
private void InitNetwork() { MessageReader.RegisterTypeWithAssembly("CozyAdventure.Protocol"); SharedClient = new CozyClient.Core.CozyClient("CozyAdventure"); SharedClient.DataMessage += OnDataMessage; SharedClient.StatusMessage += OnStatusMessage; }
private void Form1_Load(object sender, EventArgs e) { client = new ClientType("CozyServerTester"); client.DataMessage += OnData; client.StatusMessage += OnStatus; client.Connect("127.0.0.1", 44360); }
private void InitNetwork() { MessageReader.RegisterTypeWithAssembly("CozyAdventure.Protocol"); SharedClient = new CozyClient.Core.CozyClient("CozyAdventure"); SharedClient.DataMessage += OnDataMessage; SharedClient.StatusMessage += OnStatusMessage; MessageManager.RegisterMessage("Client.Send", OnSend); }
private void InitNetwork() { client = new ClientType("CozyAdventure"); client.DataMessage += OnData; client.StatusMessage += OnStatus; }
private void OnDataMessage(CozyClient cozyClient, NetIncomingMessage msg) { if(DataMessage != null) { DataMessage(this, new ClienEventArgs(cozyClient.InnerClient, msg)); } }