NetSerializerSubscribeReusableT Method (ActionT) |
LiteNetLib |
Register and subscribe to packet receive event
This metod will overwrite last received packet class on receive (less garbage)
Namespace: LiteNetLib.Utils
Assembly: LiteNetLib (in LiteNetLib.dll) Version: 1.0.0.0
Syntax
C#
public void SubscribeReusable<T>( Action<T> onReceive ) where T : class, new()
Parameters
- onReceive
- Type: SystemActionT
event that will be called when packet deserialized with ReadPacket method
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:LiteNetLib.Utils.NetSerializer.SubscribeReusable``1(System.Action{``0})"]
See Also