]> git.deb.at Git - rhonda/impostor.git/commitdiff
implement rpc 32: use platform
authorminiduikboot <5243971+miniduikboot@users.noreply.github.com>
Thu, 1 Apr 2021 22:42:26 +0000 (00:42 +0200)
committerminiduikboot <5243971+miniduikboot@users.noreply.github.com>
Fri, 2 Apr 2021 22:29:05 +0000 (00:29 +0200)
src/Impostor.Api/Net/Messages/Rpcs/Rpc32UsePlatform.cs [new file with mode: 0644]
src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs

diff --git a/src/Impostor.Api/Net/Messages/Rpcs/Rpc32UsePlatform.cs b/src/Impostor.Api/Net/Messages/Rpcs/Rpc32UsePlatform.cs
new file mode 100644 (file)
index 0000000..9344be2
--- /dev/null
@@ -0,0 +1,13 @@
+namespace Impostor.Api.Net.Messages.Rpcs
+{
+    public static class Rpc32UsePlatform
+    {
+        public static void Serialize(IMessageWriter writer)
+        {
+        }
+
+        public static void Deserialize(IMessageReader reader)
+        {
+        }
+    }
+}
index 7bbf8e78a713af997d3e9920d2a0b9f9aa610007..49e069baf29ce5876a59c1feb330bb01457976c5 100644 (file)
@@ -285,6 +285,17 @@ namespace Impostor.Server.Net.Inner.Objects
                     return await HandleSetStartCounter(sender, sequenceId, startCounter);
                 }
 
+                case RpcCalls.UsePlatform:
+                {
+                    if (!await ValidateOwnership(call, sender))
+                    {
+                        return false;
+                    }
+
+                    Rpc32UsePlatform.Deserialize(reader);
+                    break;
+                }
+
                 default:
                     return await UnregisteredCall(call, sender);
             }