This commit is contained in:
2025-12-14 21:08:19 +01:00
parent 3a7b81bfd7
commit 3124f82a2f
109 changed files with 16190 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KCM.Packets.Game.GameBuilding
{
public class CompleteBuild : Packet
{
public override ushort packetId => (int)Enums.Packets.CompleteBuild;
public Guid buildingId { get; set; }
public override void HandlePacketClient()
{
if (KCClient.client.Id == clientId) return;
Player.inst.GetBuilding(buildingId).CompleteBuild();
}
public override void HandlePacketServer()
{
//throw new NotImplementedException();
}
}
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KCM.Packets.Game.GameBuilding
{
public class UpdateConstruction : Packet
{
public override ushort packetId => (int)Enums.Packets.UpdateConstruction;
public Guid buildingId { get; set; }
public float constructionProgress { get; set; }
public override void HandlePacketClient()
{
if (KCClient.client.Id == clientId) return;
//Main.helper.Log($"Received packet from: {clientId} receiving client is {KCClient.client.Id}");
Player.inst.GetBuilding(buildingId).constructionProgress = constructionProgress;
}
public override void HandlePacketServer()
{
//throw new NotImplementedException();
}
}
}