public void BuildBuilding(BuildingId Id) { Build build = new Build(Id); BuildPacket buildPacket = new BuildPacket(build); byte[] msg = CreatePacket(buildPacket, ClientPacketId.Build); sendMsg.Enqueue(msg); }
public ServerPacketId BuildBuilding(byte[] data) { string Id = LoginUser[tcpPacket.client]; BuildPacket buildPacket = new BuildPacket(data); Build buildData = buildPacket.GetData(); database.GetAccountData(Id).Build(buildData.Id); database.FileSave(Id + ".data", database.GetAccountData(Id)); Console.WriteLine("아이디 : " + buildData.Id); Console.WriteLine("짓는건물 : " + database.GetAccountData(Id).BuildBuilding); return(ServerPacketId.None); }