Started on Client Announcement Packet

This commit is contained in:
2021-12-13 15:45:46 +10:00
parent 4d70b98802
commit e5b64f600c
3 changed files with 20 additions and 2 deletions

View 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; }
}
}

View File

@ -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()

View File

@ -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();