mirror of
https://github.com/Campofinale/CampofinaleBackup.git
synced 2025-12-18 15:44:37 +00:00
31 lines
709 B
C#
31 lines
709 B
C#
using Campofinale.Network;
|
|
using Campofinale.Protocol;
|
|
|
|
namespace Campofinale.Packets.Sc
|
|
{
|
|
public class PacketScFactoryOpRet : Packet
|
|
{
|
|
|
|
public PacketScFactoryOpRet(Player client, uint nodeId,FactoryOpType type) {
|
|
|
|
ScFactoryOpRet proto = new ScFactoryOpRet()
|
|
{
|
|
RetCode=FactoryOpRetCode.Ok,
|
|
OpType=type,
|
|
|
|
};
|
|
if(type == FactoryOpType.Place)
|
|
{
|
|
proto.Place = new()
|
|
{
|
|
NodeId = nodeId
|
|
};
|
|
proto.Index = "CHANNLE_BUILDING";
|
|
}
|
|
|
|
SetData(ScMsgId.ScFactoryOpRet, proto);
|
|
}
|
|
|
|
}
|
|
}
|