I just started using Angelscript, and am misunderstanding how exactly to set up everything.
One of my confusions is, suppose I want a script for each area, with maybe an interface like this:
void onLoad()
{
//...unique initialization logic for this area...
}
void onTick()
{
//...unique update code for this area...
}
How do I prevent the AreaA.as script's onLoad() function signature from conflicting with AreaB.as script's onLoad()? How do I call a specific one's function?
Would I make each *area* have a separate *module*? That doesn't sound right.
Each area would provide *different* logic in each Area's function, so it doesn't seem like it'd make sense to make Area a class, I think.