scriptdev2/scriptdev2 — pull request #51 by boxa (2013-03-25 23:41:35+00:00)
Title: Simplify script naming and implement AutoScript class

Full backward compatibility, old code will work without any changes.
This just a wrapper for an Script object, simplifies the code.

Usage examples:

AutoScript("script_name")->GetAI = &GetAI_realization;

**
AutoScript s("script_name");
s->pGossipHello = &GossipHello_realization;
s->pGossipSelect = &GossipSelect_realization;

**
AutoScript s;
s.newScript("script_name_1")->GetAI = &GetAI_realization_1;
s.newScript("script_name_2")->GetAI = &GetAI_realization_2;

**
AutoScript s;

s.newScript("script_name_1");
s->GetAI = &GetAI_script_name_1;

s.newScript("script_name_2");
s->GetAI = &GetAI_script_name_2;