Interface IMessage
Implements a message that can be sent by the netcode to a connected peer.
Namespace: SuperNet.Netcode.Transport
Assembly: cs.temp.dll.dll
Syntax
public interface IMessage : IWritable
Properties
Channel
Which data channel to send the message on.
Declaration
byte Channel { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Ordered
Message must be delivered in order within the channel.
Any unreliable messages that arrive out of order are dropped.
Any reliable messages that arrive out of order are reordered automatically.
Declaration
bool Ordered { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Reliable
Message requires an acknowledgment and needs to be resent until acknowledged.
This makes sure the message will never be lost.
Declaration
bool Reliable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Timed
Message includes a timestamp of the moment of creation.
If false, received timestamp might be innacurate due to message delays.
Declaration
bool Timed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Timestamp
Timestamp of this message.
If message is not timed, this is ignored.
Declaration
HostTimestamp Timestamp { get; }
Property Value
Type | Description |
---|---|
HostTimestamp |
Unique
Message is guaranteed not to be duplicated.
Declaration
bool Unique { get; }
Property Value
Type | Description |
---|---|
System.Boolean |