本文整理了Java中com.badlogic.gdx.utils.Json.writeType()
方法的一些代码示例,展示了Json.writeType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Json.writeType()
方法的具体详情如下:
包路径:com.badlogic.gdx.utils.Json
类名称:Json
方法名:writeType
暂无
代码示例来源:origin: libgdx/libgdx
/** Starts writing an object, writing the actualType to a field if needed.
* @param knownType May be null if the type is unknown. */
public void writeObjectStart (Class actualType, Class knownType) {
try {
writer.object();
} catch (IOException ex) {
throw new SerializationException(ex);
}
if (knownType == null || knownType != actualType) writeType(actualType);
}
代码示例来源:origin: libgdx/libgdx
/** Starts writing an object, writing the actualType to a field if needed.
* @param knownType May be null if the type is unknown. */
public void writeObjectStart (Class actualType, Class knownType) {
try {
writer.object();
} catch (IOException ex) {
throw new SerializationException(ex);
}
if (knownType == null || knownType != actualType) writeType(actualType);
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** Starts writing an object, writing the actualType to a field if needed.
* @param knownType May be null if the type is unknown. */
public void writeObjectStart (Class actualType, Class knownType) {
try {
writer.object();
} catch (IOException ex) {
throw new SerializationException(ex);
}
if (knownType == null || knownType != actualType) writeType(actualType);
}
内容来源于网络,如有侵权,请联系作者删除!