J3a: the journey on a server. A server per land (Lands: the hub starts land servers on demand over a private link), the cliff tunnel online, crossings with one-time passes, shared characters that remember their land, one clock from the hub; test_net_lands
This commit is contained in:
@@ -369,6 +369,20 @@ func _s2c_node(uid: String, hp: float, point: Vector3, from: Vector3) -> void:
|
||||
func stones_state(d: Dictionary) -> void:
|
||||
_all("_s2c_stones", [d])
|
||||
|
||||
## The cliff tunnel changed (a blow on its face, a stretch dug, a prop set):
|
||||
## everyone here sees it, and the other lands hear how far it's dug.
|
||||
func tunnel_state(d: Dictionary) -> void:
|
||||
_all("_s2c_tunnel", [d])
|
||||
mark_changed()
|
||||
if Lands.hub:
|
||||
Lands.push_tunnel(int(d.get("dug", 0)))
|
||||
|
||||
@rpc("authority", "call_remote", "reliable")
|
||||
func _s2c_tunnel(d: Dictionary) -> void:
|
||||
if not is_client() or world.tunnel == null:
|
||||
return
|
||||
world.tunnel.load_data(d)
|
||||
|
||||
@rpc("authority", "call_remote", "reliable")
|
||||
func _s2c_stones(d: Dictionary) -> void:
|
||||
if not is_client() or world.stones == null:
|
||||
|
||||
Reference in New Issue
Block a user