mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
Implement SetActivePodType
This commit is contained in:
1 parent
4d1aec9070
commit
fba1a894cc
2 files changed
+23
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Impostor.Api.Net.Messages.C2S
|
||||
{
|
||||
public class Message21SetActivePodType
|
||||
{
|
||||
public static void Serialize(IMessageWriter writer)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public static void Deserialize(IMessageReader reader, out string podType)
|
||||
{
|
||||
podType = reader.ReadString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -257,6 +257,12 @@ namespace Impostor.Server.Net
|
||||
break;
|
||||
}
|
||||
|
||||
case MessageFlags.SetActivePodType:
|
||||
{
|
||||
Message21SetActivePodType.Deserialize(reader, out _);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
if (_customMessageManager.TryGet(flag, out var customRootMessage))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user