markiodev / Networker

A simple to use TCP and UDP networking library for .NET. Compatible with Unity.
MIT License
477 stars 77 forks source link

How to register handler and packet automatically #47

Open swpuzhang opened 5 years ago

swpuzhang commented 5 years ago

RegisterPacketHandler<ChatPacket, ClientChatPacketHandler>()

if I have 1000 Handlers, I must write it 1000 times?