Change WireLib.TriggerInput function signature
#2943
Denneisk
started this conversation in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Change
WireLib.TriggerInputfunction signature toWireLib.TriggerInput(ent:Entity, name:string, value:any, ext:table?)(fromWireLib.TriggerInput(ent:Entity, name:string, value:any, ...)).extis a table of extra information to be passed if needed.Currently the function signature takes varargs but it's only used for
OutputIteratorobjects (are these even necessary?). The varargs are clearly under-utilized, so mandating it to be a table should not cause a lot of problems and will avoid using varargs.Beta Was this translation helpful? Give feedback.
All reactions