Started on Client Announcement Packet
This commit is contained in:
14
MIT Packets/AnnouncePacket.cs
Normal file
14
MIT Packets/AnnouncePacket.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MIT_Packets
|
||||
{
|
||||
public class AnnouncePacket
|
||||
{
|
||||
public int Type { get; set; }
|
||||
public bool RequestConfig { get; set; }
|
||||
}
|
||||
}
|
||||
@ -11,7 +11,6 @@ namespace MIT_Packets
|
||||
public class TestPacket : IPacket
|
||||
{
|
||||
public int TestOne { get; set; }
|
||||
[PacketIgnore]
|
||||
public bool TestTwo { get; set; }
|
||||
public string TestThree { get; set; }
|
||||
public static void Register()
|
||||
|
||||
@ -16,7 +16,12 @@ namespace MIT_Builder_Client
|
||||
|
||||
client.Connect("127.0.0.1", 50).ContinueWith(t =>
|
||||
{
|
||||
Console.WriteLine($"Connection result: {t.Result.Connected}");
|
||||
if (t.Result.Connected)
|
||||
{
|
||||
Console.WriteLine("Successfully connected to master server.");
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Console.ReadLine();
|
||||
|
||||
Reference in New Issue
Block a user