2018-07-06 15:30:00 +02:00
|
|
|
package com.eu.habbo.messages.outgoing.wired;
|
|
|
|
|
|
|
|
import com.eu.habbo.habbohotel.items.interactions.InteractionWiredTrigger;
|
|
|
|
import com.eu.habbo.habbohotel.rooms.Room;
|
|
|
|
import com.eu.habbo.messages.ServerMessage;
|
|
|
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
|
|
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public class WiredTriggerDataComposer extends MessageComposer {
|
2018-07-06 15:30:00 +02:00
|
|
|
private final InteractionWiredTrigger trigger;
|
|
|
|
private final Room room;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public WiredTriggerDataComposer(InteractionWiredTrigger trigger, Room room) {
|
2018-07-06 15:30:00 +02:00
|
|
|
this.trigger = trigger;
|
|
|
|
this.room = room;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2020-05-09 21:29:49 +02:00
|
|
|
protected ServerMessage composeInternal() {
|
2018-07-06 15:30:00 +02:00
|
|
|
this.response.init(Outgoing.WiredTriggerDataComposer);
|
2019-03-18 02:22:00 +01:00
|
|
|
this.trigger.serializeWiredData(this.response, this.room);
|
2018-07-06 15:30:00 +02:00
|
|
|
this.trigger.needsUpdate(true);
|
|
|
|
return this.response;
|
|
|
|
}
|
|
|
|
}
|