private void OnUpdateSign(UpdateSignPacket p) { if (UpdateSign != null) UpdateSign.Invoke(this, new PacketEventArgs<UpdateSignPacket>(p)); }
public static void ReadUpdateSign(TestClient client, PacketReader reader) { UpdateSignPacket us = new UpdateSignPacket(); us.Read(reader); }
public static void ReadUpdateSign(Client client, PacketReader reader) { UpdateSignPacket us = new UpdateSignPacket(); us.Read(reader); if (!reader.Failed) Client.HandlePacketUpdateSign(client, us); }
public static void HandlePacketUpdateSign(Client client, UpdateSignPacket packet) { BlockData.Blocks blockId = (BlockData.Blocks)client.Owner.World.GetBlockId(packet.X, packet.Y, packet.Z); UniversalCoords coords = UniversalCoords.FromWorld(packet.X, packet.Y, packet.Z); if (blockId == BlockData.Blocks.Sign_Post) { BlockSignPost sign = (BlockSignPost)BlockHelper.Instance((byte)blockId); sign.SaveText(coords, client.Owner, packet.Lines); } }