indicate when ObjectId and WorldObject are set

This commit is contained in:
JohnCorby 2021-12-23 16:08:02 -08:00
parent 2232e889ab
commit 5a27757626
2 changed files with 9 additions and 1 deletions

View File

@ -6,7 +6,9 @@ namespace QSB.Messaging
{
public abstract class QSBMessage : QMessageBase
{
/// set automatically when sending a message
/// <summary>
/// set automatically by Send
/// </summary>
internal uint From;
/// <summary>
/// (default) uint.MaxValue = send to everyone <br/>

View File

@ -6,7 +6,13 @@ namespace QSB.Messaging
{
public abstract class QSBWorldObjectMessage<T> : QSBMessage where T : IWorldObject
{
/// <summary>
/// set automatically by SendMessage
/// </summary>
internal int ObjectId;
/// <summary>
/// set automatically when receiving
/// </summary>
protected T WorldObject { get; private set; }
public override void Serialize(QNetworkWriter writer)