forked from hunterzonewu/unity-decompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMessageBase.cs
More file actions
30 lines (28 loc) · 1.19 KB
/
MessageBase.cs
File metadata and controls
30 lines (28 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Decompiled with JetBrains decompiler
// Type: UnityEngine.Networking.MessageBase
// Assembly: UnityEngine.Networking, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 8B34E19C-EF53-416E-AE36-35C45BAFD2DE
// Assembly location: C:\Users\Blake\sandbox\unity\test-project\Library\UnityAssemblies\UnityEngine.Networking.dll
namespace UnityEngine.Networking
{
/// <summary>
/// <para>Network message classes should be derived from this class. These message classes can then be sent using the various Send functions of NetworkConnection, NetworkClient and NetworkServer.</para>
/// </summary>
public abstract class MessageBase
{
/// <summary>
/// <para>This method is used to populate a message object from a NetworkReader stream.</para>
/// </summary>
/// <param name="reader">Stream to read from.</param>
public virtual void Deserialize(NetworkReader reader)
{
}
/// <summary>
/// <para>The method is used to populate a NetworkWriter stream from a message object.</para>
/// </summary>
/// <param name="writer">Stream to write to.</param>
public virtual void Serialize(NetworkWriter writer)
{
}
}
}