Function MenuExecuted(int index)
return 0
EndFunction
Now, lets say I extend Menu to a new quest in another plugin, ex "MyMenu extends Menu"
and I override the function
Function MenuExecuted(int index)
return 1
EndFunction
The concept of extending should allow this, if I call MenuExecuted it should return 1... But it doesn't really specify if I have to cast to the new type (Trying to figure out if this works like virtual in OOP)
If I store a FormList of the quests and I want to re-iterate over that list, they will all be of the "Form" type, in which case I have to cast to the "Menu" type, but after casting to the Menu type, will calling MenuExecuted call the child overridden function in MyMenu, or the parent function in Menu?
Judging by the simplicity of this language I would assume I have to cast to "MyMenu" rather than "Menu" to get the overridden result, but it would be much better if I could get the child result as the parent caller. Casting to MyMenu is not an option when you don't know it exists yet.
