This commit is contained in:
2025-12-14 21:08:19 +01:00
parent 3a7b81bfd7
commit 3124f82a2f
109 changed files with 16190 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
// 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);
}
}