Skip navigation.
Home

Interactions

jwatte's picture

Interactions are "verbs," whereas entities are "nouns." This is not entirely true, because movement is a property of the entity (position and velocity), not an interaction, but it is close enough.

  1. Master and Slave exchange interactions
    1. Collisions.
    2. Detonations.
    3. Signals.
    4. Global chat might be described as an interaction.
  VERB:
    ADDINTERACTION INTERACTIONID SCHEMAURI
    SUBSCRIBEINTERACTION INTERACTIONID NVALUEIDS (VALUEID)+
    UNSUBSCRIBEINTERACTION INTERACTIONID
    INTERACT INTERACTIONID NVALUES (VALUE)+

Interaction schema looks like entity schema, but with the target "interaction" instead of "entity".

It would be useful if, instead of "ADDINTERACTION" and "ADDENTITYTYPE," there could be a "ADDENTITYSCHEMA" and "ADDINTERACTIONSCHEMA" which defined the set of entities and interactions that could happen in the given host. The other end could then compare that schema to something it already has, and wouldn't have to transfer all the capabilities each time it connected. However, keeping that out of 1.0 means it's simpler to get something done sooner.