This commit is contained in:
2025-12-14 21:04:22 +01:00
parent c4eb7e944d
commit 3a7b81bfd7
112 changed files with 12 additions and 16665 deletions

View File

@@ -1,18 +0,0 @@
// This file is provided under The MIT License as part of RiptideNetworking.
// Copyright (c) Tom Weiland
// For additional information please see the included LICENSE.md file or view it on GitHub:
// https://github.com/RiptideNetworking/Riptide/blob/main/LICENSE.md
namespace Riptide
{
/// <summary>Represents a type that can be added to and retrieved from messages using the <see cref="Message.AddSerializable{T}(T)"/> and <see cref="Message.GetSerializable{T}"/> methods.</summary>
public interface IMessageSerializable
{
/// <summary>Adds the type to the message.</summary>
/// <param name="message">The message to add the type to.</param>
void Serialize(Message message);
/// <summary>Retrieves the type from the message.</summary>
/// <param name="message">The message to retrieve the type from.</param>
void Deserialize(Message message);
}
}