From 8bbdabe5d600db8ed86ffbc739a80da08b45c8d4 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 3 Feb 2025 13:46:00 -0800 Subject: [PATCH] Provide a method for calling playerReady. The GameManager is set up to handle it, so let's not fuss too much about the fact that we're using a dynamically typed mechanism to send a message from client to server. --- .../java/com/threerings/parlor/game/data/GameObject.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/com/threerings/parlor/game/data/GameObject.java b/core/src/main/java/com/threerings/parlor/game/data/GameObject.java index 35f595aa..f4661075 100644 --- a/core/src/main/java/com/threerings/parlor/game/data/GameObject.java +++ b/core/src/main/java/com/threerings/parlor/game/data/GameObject.java @@ -238,6 +238,11 @@ public class GameObject extends PlaceObject return -1; } + @SuppressWarnings("deprecation") + public void sendPlayerReady () { + manager.invoke("playerReady"); + } + /** * Used by {@link #isActivePlayer} to determine if the supplied status is associated with an * active player (one that has not resigned from the game and/or left the game room).