NetSerializerReadKnownPacketT Method (NetDataReader) |
LiteNetLib |
Reads packet with known type
Namespace: LiteNetLib.Utils
Assembly: LiteNetLib (in LiteNetLib.dll) Version: 1.0.0.0
Syntax
C#
public T ReadKnownPacket<T>( NetDataReader reader ) where T : class, new()
Parameters
- reader
- Type: LiteNetLib.UtilsNetDataReader
NetDataReader with packet
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:LiteNetLib.Utils.NetSerializer.ReadKnownPacket``1(LiteNetLib.Utils.NetDataReader)"]
Return Value
Type: TReturns packet if packet in reader is matched type
See Also