Editing Talk:Custom Papyrus Events
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
== Handling Arguments == | == Handling Arguments == | ||
So when your handling an event on a script that has registered for an event with a 'host?' script Ive noticed there may be a lot of validation for the arguments. Would it be outside the 'host' scripts responsibility to validate the event arguments it sends? Im trying this code in which the host provides a bool function which returns true is the Var[] arguments are of the expected length and type. I would like opinion on this from other scripters. | So when your handling an event on a script that has registered for an event with a 'host?' script Ive noticed there may be a lot of validation for the arguments. Would it be outside the 'host' scripts responsibility to validate the event arguments it sends? Im trying this code in which the host provides a bool function which returns true is the Var[] arguments are of the expected length and type. I would like opinion on this from other scripters. | ||
<source lang="papyrus"> | <source lang="papyrus"> |