params = "obj: " + field_type + ", j: Int";
}
-
- writer.SetValue("toType", "YYYYY");
-
auto ret_type = return_type + nullable;
GenerateFun(writer, field_name, params, ret_type, [&](){
auto inline_size = NumToString(InlineSize(vectortype));
GenerateFun(writer, field_name, "obj: " + field_type,
return_type + "?", [&](){
writer += OffsetWrapperOneLine(offset_val,
- bbgetter + "(obj, o)",
+ bbgetter + "(obj, o + bb_pos)",
"null");
});
break;
}
}
fun test(obj: Table) : Table? {
- val o = __offset(20); return if (o != 0) __union(obj, o) else null
+ val o = __offset(20); return if (o != 0) __union(obj, o + bb_pos) else null
}
fun test4(j: Int) : MyGame.Example.Test? = test4(MyGame.Example.Test(), j)
fun test4(obj: MyGame.Example.Test, j: Int) : MyGame.Example.Test? {
}
}
fun anyUnique(obj: Table) : Table? {
- val o = __offset(92); return if (o != 0) __union(obj, o) else null
+ val o = __offset(92); return if (o != 0) __union(obj, o + bb_pos) else null
}
val anyAmbiguousType : UByte
get() {
}
}
fun anyAmbiguous(obj: Table) : Table? {
- val o = __offset(96); return if (o != 0) __union(obj, o) else null
+ val o = __offset(96); return if (o != 0) __union(obj, o + bb_pos) else null
}
fun vectorOfEnums(j: Int) : UByte {
val o = __offset(98)
}
}
fun mainCharacter(obj: Table) : Table? {
- val o = __offset(6); return if (o != 0) __union(obj, o) else null
+ val o = __offset(6); return if (o != 0) __union(obj, o + bb_pos) else null
}
fun charactersType(j: Int) : UByte {
val o = __offset(8)