Cross-Resource Invocation
Using Elements, you can invoke a function across the network and access any function on any resource.
To access a function on a resource, we invoke that function across the network. To do this, we need to have the id of the resource, the name of the method, and any parameters we want to pass through, like this:
resource.invoke(resource_id, method, ...)
If we were to add to the above example to allow the player to invoke a play_turn
function, it might look like this:
Last updated