update docs again

This commit is contained in:
JohnCorby 2021-12-23 16:53:22 -08:00
parent 507af7a1fa
commit 2e8a2d0f2a
2 changed files with 9 additions and 0 deletions

View File

@ -16,21 +16,27 @@ namespace QSB.Messaging
/// </summary>
public uint To = uint.MaxValue;
/// <summary>
/// call the base method when overriding
/// </summary>
public override void Serialize(QNetworkWriter writer)
{
writer.Write(From);
writer.Write(To);
}
/// <summary>
/// call the base method when overriding
/// </summary>
public override void Deserialize(QNetworkReader reader)
{
From = reader.ReadUInt32();
To = reader.ReadUInt32();
}
/// <summary>
/// checked before calling either OnReceive
/// </summary>
public virtual bool ShouldReceive => true;
public virtual void OnReceiveRemote() { }
public virtual void OnReceiveLocal() { }

View File

@ -27,6 +27,9 @@ namespace QSB.Messaging
ObjectId = reader.ReadInt32();
}
/// <summary>
/// sets WorldObject using ObjectId
/// </summary>
public override bool ShouldReceive
{
get