blurite / rsprot

RSProt is an all-in-one networking package for RuneScape Private Servers, primarily targeted at the OldSchool scene.
MIT License
27 stars 5 forks source link

Simplify info packets #16

Open Z-Kris opened 2 months ago

Z-Kris commented 2 months ago

Since world entities, the entire updating procedure for info packets has become quite a nightmare to maintain server-side. It'd be nice to find a way to merge all three infos into one so the server could get away with less calls. As an example, all infos currently contain player's own coord as well as the "render coord"; right now you must call each of the three infos individually and pass in the same coordinates before being able to build it. A lot of the updating procedure is similar. All this could be merged into one, e.g. infos.updateCoord(), infos.updateRenderCoord() and so on.