NuclearPowered / Reactor

Modding api for Among Us
https://reactor.gg
GNU Lesser General Public License v3.0
225 stars 43 forks source link

Allow sending method rpcs immediately #45

Closed simonkellly closed 2 years ago

DorCoMaNdO commented 2 years ago

Adding a SendImmediately method will probably be simpler and more suitable for RPCs with multiple uses.

simonkellly commented 2 years ago

Not sure i understand what you mean, the option for making a method rpc is done in the attribute not in the method itself

DorCoMaNdO commented 2 years ago

Sending it is done via a call to Send, which you've now altered to support sending immediately, instead just add a separate method.

simonkellly commented 2 years ago

Unsafe send always had support for sending immediately, it was an optional parameter. This pr just exposes a way to set said optional parameter inside a method rpc, it does not touch the rest of the rpc system