Skip to content

Simplify script naming and implement AutoScript class#51

Open
boxa wants to merge 2 commits intoscriptdev2:masterfrom
boxa:master
Open

Simplify script naming and implement AutoScript class#51
boxa wants to merge 2 commits intoscriptdev2:masterfrom
boxa:master

Conversation

@boxa
Copy link
Copy Markdown
Contributor

@boxa boxa commented Mar 25, 2013

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;

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants