Difference between revisions of "Talk:Custom Papyrus Events"
m
no edit summary
imported>Qazaaq (Created page with " == 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...") |
imported>Qazaaq m |
||
(One intermediate revision by one other user not shown) | |||
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"> | ||
Line 26: | Line 26: | ||
EndFunction | EndFunction | ||
</source> | </source> | ||
---- | |||
I proceed like this in C++, so it sounds a good idea --[[User:Toxicat|Toxicat]] ([[User talk:Toxicat|talk]]) 2016-05-31T14:44:54 (EDT) |