red-blox / zap

A lightning fast networking solution for roblox.
https://zap.redblox.dev
MIT License
89 stars 14 forks source link

Add Generalised Tooling Support #129

Closed sasial-dev closed 4 weeks ago

sasial-dev commented 1 month ago

~Blocked by https://github.com/Pyseph/PacketProfiler/pull/8~

cc @Pyseph

For tools such as PacketProfiler, there is a need for ability to deserialise a zap buffer while 'in transit' for debugging. This PR aims to create a standardised way to do this, accepting a function with all the remote's parameters and returning a table with the name and arguments such as:

            table.insert(events, {
                Name = "RemoteName",
                Arguments = { value }
            })