lnobad / lidgren-network-gen3

Automatically exported from code.google.com/p/lidgren-network-gen3
0 stars 0 forks source link

NetConnection - NetPeer design #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you have NetConnection, you can't create a message since there is no method 
NetConnection.CreateMessage.

So you go to the NetConnection.Owner.CreateMessage method.

The problem with the Owner property that it gives you a full NetPeer access.
It could be nicer to introduce INetPeer interface which gives you only a needed 
methods like CreateMessage and Recycle.

Original issue reported on code.google.com by NN1436401@gmail.com on 13 Sep 2010 at 11:01

GoogleCodeExporter commented 9 years ago
Good idea. Added in rev 118

Original comment by lidg...@gmail.com on 13 Sep 2010 at 1:52