lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

WriteAt methods and changes to work with Unity3D #58

Closed forestrf closed 8 years ago

forestrf commented 8 years ago

I needed this methods to use less bandwith when sending an unknown number of objects: WriteAt of byte (I don't know how to make the sbyte version) and WriteRangedIntegerAt.

Also there are some small changes to make Unity3d work again. I wrote in the wiki how to use this library with Unity but didn't send this changes (the tutorial, therefore, doesn't work). I forgot that the version of the library I am using is slightly different. :(

Thank you, I hope this helps!

forestrf commented 8 years ago

The method WriteRangedIntegerAt is wrong. I don't know how to do it. I will request a pull only with the changes that make this work with Unity. I am sorry