Class PolygonSerializer

java.lang.Object
com.esotericsoftware.kryo.Serializer<com.badlogic.gdx.math.Polygon>
com.github.tommyettinger.kryo.libgdx.PolygonSerializer

public class PolygonSerializer extends com.esotericsoftware.kryo.Serializer<com.badlogic.gdx.math.Polygon>
Kryo Serializer for libGDX Polygons.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.badlogic.gdx.math.Polygon
    copy(com.esotericsoftware.kryo.Kryo kryo, com.badlogic.gdx.math.Polygon original)
     
    com.badlogic.gdx.math.Polygon
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.badlogic.gdx.math.Polygon> dataClass)
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.badlogic.gdx.math.Polygon data)
     

    Methods inherited from class com.esotericsoftware.kryo.Serializer

    getAcceptsNull, isImmutable, setAcceptsNull, setImmutable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.badlogic.gdx.math.Polygon data)
      Specified by:
      write in class com.esotericsoftware.kryo.Serializer<com.badlogic.gdx.math.Polygon>
    • read

      public com.badlogic.gdx.math.Polygon read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.badlogic.gdx.math.Polygon> dataClass)
      Specified by:
      read in class com.esotericsoftware.kryo.Serializer<com.badlogic.gdx.math.Polygon>
    • copy

      public com.badlogic.gdx.math.Polygon copy(com.esotericsoftware.kryo.Kryo kryo, com.badlogic.gdx.math.Polygon original)
      Overrides:
      copy in class com.esotericsoftware.kryo.Serializer<com.badlogic.gdx.math.Polygon>