mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
update docs again
This commit is contained in:
parent
507af7a1fa
commit
2e8a2d0f2a
@ -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() { }
|
||||
|
@ -27,6 +27,9 @@ namespace QSB.Messaging
|
||||
ObjectId = reader.ReadInt32();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// sets WorldObject using ObjectId
|
||||
/// </summary>
|
||||
public override bool ShouldReceive
|
||||
{
|
||||
get
|
||||
|
Loading…
Reference in New Issue
Block a user