red-blox / zap

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

[FEAT] Option for putting remote instances in a folder #130

Closed filiptibell closed 4 weeks ago

filiptibell commented 1 month ago

We have some wally packages such as these, that we use internally:

I'd like to migrate each individual package to use Zap for optimized networking, but I dont want to delegate all the remote definitions and handling to the consumers of these packages (games). Right now each package can use the remote_scope option, and migrating to zap will work, but it means we'll have a lot of remotes directly in ReplicatedStorage. That indirectly means:

It would be nice to have a remote_folder setting, or something similar, where as long as all packages use the same option value, all remotes will be under this one folder. It doesn't need to support nesting or anything fancy, a single folder is fine.

sasial-dev commented 4 weeks ago

Completed in https://github.com/red-blox/zap/commit/523d15f0f73f7af260c49889ba26b7168525fbc7