Skip to content

Commit

Permalink
fix(plugin): preserve Packet constructors for Reflection (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed May 12, 2022
1 parent 77ba1a4 commit a6f27b1
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class Anchor3dVectorPacket : Packet<List<Anchor3d>>
/// </summary>
public Anchor3dVectorPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public Anchor3dVectorPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public Anchor3dVectorPacket(Anchor3d[] value) : base()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class BoolPacket : Packet<bool>
/// </summary>
public BoolPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public BoolPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public BoolPacket(bool value) : base()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class ClassificationListPacket : Packet<ClassificationList>
/// </summary>
public ClassificationListPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public ClassificationListPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public ClassificationListPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class ClassificationListVectorPacket : Packet<List<ClassificationList>>
/// </summary>
public ClassificationListVectorPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public ClassificationListVectorPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public ClassificationListVectorPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class DetectionPacket : Packet<Detection>
/// </summary>
public DetectionPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public DetectionPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public DetectionPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class DetectionVectorPacket : Packet<List<Detection>>
/// </summary>
public DetectionVectorPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public DetectionVectorPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public DetectionVectorPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class FaceGeometryPacket : Packet<FaceGeometry.FaceGeometry>
/// </summary>
public FaceGeometryPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public FaceGeometryPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public FaceGeometryPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class FaceGeometryVectorPacket : Packet<List<FaceGeometry.FaceGeometry>>
/// </summary>
public FaceGeometryVectorPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public FaceGeometryVectorPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public FaceGeometryVectorPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public int length
/// </summary>
public FloatArrayPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public FloatArrayPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public FloatArrayPacket(float[] value) : base()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class FloatPacket : Packet<float>
/// </summary>
public FloatPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public FloatPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public FloatPacket(float value) : base()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class FrameAnnotationPacket : Packet<FrameAnnotation>
/// </summary>
public FrameAnnotationPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public FrameAnnotationPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public FrameAnnotationPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class GpuBufferPacket : Packet<GpuBuffer>
/// </summary>
public GpuBufferPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public GpuBufferPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public GpuBufferPacket(GpuBuffer gpuBuffer) : base()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class ImageFramePacket : Packet<ImageFrame>
/// </summary>
public ImageFramePacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public ImageFramePacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public ImageFramePacket(ImageFrame imageFrame) : base()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class IntPacket : Packet<int>
/// </summary>
public IntPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public IntPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public IntPacket(int value) : base()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class LandmarkListPacket : Packet<LandmarkList>
/// </summary>
public LandmarkListPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public LandmarkListPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public LandmarkListPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class LandmarkListVectorPacket : Packet<List<LandmarkList>>
/// </summary>
public LandmarkListVectorPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public LandmarkListVectorPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public LandmarkListVectorPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class NormalizedLandmarkListPacket : Packet<NormalizedLandmarkList>
/// </summary>
public NormalizedLandmarkListPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public NormalizedLandmarkListPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public NormalizedLandmarkListPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class NormalizedLandmarkListVectorPacket : Packet<List<NormalizedLandmark
/// </summary>
public NormalizedLandmarkListVectorPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public NormalizedLandmarkListVectorPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public NormalizedLandmarkListVectorPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class NormalizedRectPacket : Packet<NormalizedRect>
/// </summary>
public NormalizedRectPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public NormalizedRectPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public NormalizedRectPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class NormalizedRectVectorPacket : Packet<List<NormalizedRect>>
/// </summary>
public NormalizedRectVectorPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public NormalizedRectVectorPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public NormalizedRectVectorPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class RectPacket : Packet<Rect>
/// </summary>
public RectPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public RectPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public RectPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class RectVectorPacket : Packet<List<Rect>>
/// </summary>
public RectVectorPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public RectVectorPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public RectVectorPacket At(Timestamp timestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class StringPacket : Packet<string>
/// </summary>
public StringPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public StringPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public StringPacket(string value) : base()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class TimedModelMatrixProtoListPacket : Packet<TimedModelMatrixProtoList>
/// </summary>
public TimedModelMatrixProtoListPacket() : base(true) { }

[UnityEngine.Scripting.Preserve]
public TimedModelMatrixProtoListPacket(IntPtr ptr, bool isOwner = true) : base(ptr, isOwner) { }

public TimedModelMatrixProtoListPacket At(Timestamp timestamp)
Expand Down

0 comments on commit a6f27b1

Please sign in to comment.