Difference between revisions of "Talk:Custom Papyrus Events"
m
no edit summary
imported>RJHelms84 |
imported>Qazaaq m |
||
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. --[[User:Scrivener07|Scrivener07]] ([[User talk:Scrivener07|talk]]) 2016-05-31T20:40:48 (EDT) | ||
<source lang="papyrus"> | <source lang="papyrus"> |