Skip to content

Commit

Permalink
implement rpc 32: use platform
Browse files Browse the repository at this point in the history
  • Loading branch information
miniduikboot committed Apr 2, 2021
1 parent d5ae007 commit c01062e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Impostor.Api/Net/Messages/Rpcs/Rpc32UsePlatform.cs
Original file line number Diff line number Diff line change
@@ -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)
{
}
}
}
11 changes: 11 additions & 0 deletions src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,17 @@ public override async ValueTask<bool> HandleRpcAsync(ClientPlayer sender, Client
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);
}
Expand Down

0 comments on commit c01062e

Please sign in to comment.