Cauldron2D.Net.Remote.Worlds (Cauldron2D.Net v0.1.3)

Copy Markdown View Source

Names for worlds that are not in this VM, so a client joins them as it joins any Cauldron2D.World: {:via, Cauldron2D.Net.Remote.Worlds, name}.

{:via, Cauldron2D.Net.Remote.Worlds, {:node, :"my_game@arcade", :pit}}
{:via, Cauldron2D.Net.Remote.Worlds, {:url, "http://arcade:2280", token, "pit"}}

A node's world is started on that node when the name is first looked up and is its pid from then on; a server's world by URL is a Cauldron2D.Net.Link.World in this VM, one per server and arena, started on the first lookup. A URL name may carry a fifth element, options for the link world.