@Override
    public void serialize(Buffer buf) {
        buf.writeByte(teleporterType);
        buf.writeUShort(mapIds.length);
        for (int entry : mapIds) {
            buf.writeInt(entry);
        }
        buf.writeUShort(subAreaIds.length);
        for (short entry : subAreaIds) {
            buf.writeShort(entry);
        }
        buf.writeUShort(costs.length);
        for (short entry : costs) {
            buf.writeShort(entry);
        }
    }