markiodev / Networker

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

Prototype code for packet handler decorators #40

Open snarlynarwhal opened 5 years ago

snarlynarwhal commented 5 years ago

I wanted to get feedback before continuing with the last step of wiring up the decorators.

I added 3 classes to Networker:

The attributes can get added to handlers and modules.

I put together Demo.Decorators to demonstrate how the features gets used. It does not function yet.

The last part I need to do is wire up the decorators on startup. Should do this in BuilderBase.SetupSharedDependencies?