This commit is contained in:
vis2k 2020-07-30 22:55:58 +02:00
parent 7726f83026
commit 6e4683297f

View File

@ -10,7 +10,7 @@ public interface IMessageBase
void Serialize(NetworkWriter writer);
}
[Obsolete("Please convert your message class to a struct, implement IMessageBase and add empty OnSerialize/OnDeserialize methods. Mirror's Weaver will fill them out automatically. Messages should always be structs to avoid runtime allocations, and because we don't want two ways to do the same thing.")]
[Obsolete("Please convert your message class to a struct, implement IMessageBase and add empty Serialize/Deserialize methods. Mirror's Weaver will fill them out automatically. Messages should always be structs to avoid runtime allocations, and because we don't want two ways to do the same thing.")]
public abstract class MessageBase : IMessageBase
{
// De-serialize the contents of the reader into this message