Repository navigation
OnlyWorlds Unity SDK 0.61.5
The writer follows serial 150's rules: an id is checked as <id>.json whatever the element's name, and folders
are stamped 0.3.26.
Changed
world.jsonis stampedformat_version0.3.26 byOWFolderExport(OWFolderExport.FormatVersion).- The writer's three case files are read from the vendored schema-dist (
codegen/schema-dist/fixtures/folder-writer/
at the repository's root, each held to itsMANIFEST.json), the same bytes as the TypeScript SDK's and the Python
package's:unsafe-ids.cases.json(24 refused, 5 written),case-collide.cases.json(16 and 10, the final sigma
beside a sigma refused and a code point order pair among the new ones) andid-tail.cases.json(9, new as a test,
OWIdTailCasesTests, in place of its hand rows). The copies underTests/Editor/Fixtures/are removed; in an
installed copy of the package, which has no vendored dist, the three tests are ignored.
Fixed
- A new element's id is checked as
<id>.json, whatever the element's name (folder format 0.3.26, schema-dist
serial 150).OWFolderWriter.Write,OWFolderWriter.WriteElementandOWFolderExportchecked the file names they
would write instead, so an element named Bob with the idconwas written asbob--con.json, thoughcon.jsonis
a Windows device name; any id whose part before its first dot is a device name (con,Con.txt,lpt9) was
written once it had a name. Such an id is now refused, named or not (OWFolderFormatException, reasonname). No
other id changes outcome: a file name made from a name holds no character its id does not. A refusal from the
archive's name check now gives the TypeScript SDK's words,character element id "con" cannot be a file name: as "con.json" it is a Windows device name.(before,its file name "con.json" has the Windows reserved name 'con' …). An empty id keeps the writer's own no-id refusal, which says what to do. An element already written under
such a name is refused when it is written again.