lua-protobuf icon indicating copy to clipboard operation
lua-protobuf copied to clipboard

Is it possible to have multiple instance of "pb" configuration?

Open StarlightIbuki opened this issue 2 years ago • 1 comments

I know we have pb.state. But at one time, there can be only one state in effect.

This could be inconvenient if we have multiple applications of protobuf in a project, especially if we are using coroutine.

If this is acceptable, I'd like to create a PR for it.

StarlightIbuki avatar Dec 07 '22 07:12 StarlightIbuki

Maybe you could only add encode/decode/load to State objects. But we need think twice to decide whether to merge it.

starwing avatar Dec 07 '22 10:12 starwing