Пример #1
0
 public PacketDefinition(int id, PacketLength length, string name, Func <TPacket> factory)
     : base(id, length, name)
 {
     this.factory = factory;
 }
Пример #2
0
 public PacketDefinition(int id, PacketLength length, string name, Func <Packet, TPacket> materializer)
     : base(id, length, name)
 {
     this.materializer = materializer;
 }