Skip to content

OnlyWorlds Unity SDK 0.41.0

Choose a tag to compare

@tmoosting tmoosting released this 14 Nov 16:10
· 226 commits to main since this release

Each element once, on schema-dist serial 128. A link list that names one element twice is read as one link, in its
first place; only a message has recipients; and OWAddress.FindLinks finds every address in a text. The folder
writer stamps format 0.3.24. A minor release: it adds public API.

Added

  • OWAddress.FindLinks(text) and its answer, OWAddressFound (Start, End, Reading): every address in a
    text, in order, as the address page's find-all says (schema-dist serial 128). The TypeScript SDK's findOwLinks and
    the Python package's find_ow_links. Each is what OWAddress.ReadLinkAt reads at a place where either prefix
    starts, so a start glued to a word is prose. The search goes on from the end of each address found, so no two
    overlap and a prefix inside an address is no start (https://www.onlyworlds.com/w/abc3ow://object/<id> is one
    address, the world's own), and two addresses written back to back are found as two where ReadLinkAt ends the
    first. Start and End are C# string indexes, UTF-16 code units. A null text is an ArgumentNullException. The
    address fixture's two prose-all cases run here. Public API, so the next release is a minor.

Changed

  • The schema pin moves to v0.34.1-dist.128 (canonical 00.34.01 unchanged; no schema file, schema.json or
    views.json moved). A multi-link names each element once: a reader served a list that names one element twice reads
    it once, in its first place, on the lens, landing and message pages (the entries below build it here). The address
    page adds a find-all, every address in a text in order, with a new kind of case, prose-all. The folder spec's
    version is 0.3.24. The fixtures gain cases: address 218 (two prose-all), lens 235 (resolve 134, graph 56),
    message 102 (two recipients); landing's doubled-target case now wants one edge.
  • OWGraph.Read reads each element of a list once (schema-dist serial 128): a schema multi-link, x_lens_leads_to
    or x_spine_depends_on that names one target twice is one edge, in its first place, and a repeat to a target that
    is not a node is counted once in EdgesCut. An edge's Index is still its place in the list as served, so the
    entries after a repeat keep their places. Ids are compared as written. OWLanding.Of reads the graph it is given,
    so a doubled target is now one edge there too, counted once at each end.
  • OWMessage.RecipientsOf answers each recipient once, and only for a message (schema-dist serial 128): a
    characters list that names one Character twice gives that Character once, in its first place, ids compared as
    written. A body that is not a message (OWMessage.IsMessage: a Story, a Narrative with no supertype, a body with no
    type) now has no recipients, whatever its characters holds; before, any body but a Note gave its list. A Note
    still has none.
  • OWMessage.IsAddressedTo, IsToEveryone and HasUnseenRecipients answer only for a message (serial 128, the
    message page's own reader gating all four on the pair): a body that is not a message (a Story, a Narrative with no
    supertype, a body with no type) is addressed to nobody, is never to everyone, and has no unseen recipients, false
    keyless or not; before, any body but a Note was read as a message. So UnreadFor never counts one unread either. A
    Note reads as before. Hand these readers bodies that carry type and supertype.
  • An export declares folder format 0.3.24 (OWFolderExport.FormatVersion, was 0.3.22), the version the dist's
    folder check names. 0.3.23 reads the in-prose reference line as the address page does, and 0.3.24 says a multi-link
    names each element once; neither changes the bytes a writer writes, so only the format_version stamp in
    world.json moves. A list served with a repeat is still written back as it was served.