mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
message
This commit is contained in:
parent
7726f83026
commit
6e4683297f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user