com.badlogic.gdx.utils.Json.writeType()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(151)

本文整理了Java中com.badlogic.gdx.utils.Json.writeType()方法的一些代码示例,展示了Json.writeType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Json.writeType()方法的具体详情如下:
包路径:com.badlogic.gdx.utils.Json
类名称:Json
方法名:writeType

Json.writeType介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

  1. /** Starts writing an object, writing the actualType to a field if needed.
  2. * @param knownType May be null if the type is unknown. */
  3. public void writeObjectStart (Class actualType, Class knownType) {
  4. try {
  5. writer.object();
  6. } catch (IOException ex) {
  7. throw new SerializationException(ex);
  8. }
  9. if (knownType == null || knownType != actualType) writeType(actualType);
  10. }

代码示例来源:origin: libgdx/libgdx

  1. /** Starts writing an object, writing the actualType to a field if needed.
  2. * @param knownType May be null if the type is unknown. */
  3. public void writeObjectStart (Class actualType, Class knownType) {
  4. try {
  5. writer.object();
  6. } catch (IOException ex) {
  7. throw new SerializationException(ex);
  8. }
  9. if (knownType == null || knownType != actualType) writeType(actualType);
  10. }

代码示例来源:origin: com.badlogicgames.gdx/gdx

  1. /** Starts writing an object, writing the actualType to a field if needed.
  2. * @param knownType May be null if the type is unknown. */
  3. public void writeObjectStart (Class actualType, Class knownType) {
  4. try {
  5. writer.object();
  6. } catch (IOException ex) {
  7. throw new SerializationException(ex);
  8. }
  9. if (knownType == null || knownType != actualType) writeType(actualType);
  10. }

相关文章