A3t
- Added 'helper' entity support.
This commit is contained in:
12
src/A3t.cpp
12
src/A3t.cpp
@@ -239,6 +239,7 @@ void A3t::findCommand ()
|
|||||||
if (! (*i)->hasTag ("?"))
|
if (! (*i)->hasTag ("?"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/*
|
||||||
if (canonicalize (command, "report", (*i)->attribute ("raw")))
|
if (canonicalize (command, "report", (*i)->attribute ("raw")))
|
||||||
{
|
{
|
||||||
(*i)->unTag ("?");
|
(*i)->unTag ("?");
|
||||||
@@ -246,6 +247,7 @@ void A3t::findCommand ()
|
|||||||
(*i)->tag ("REPORT");
|
(*i)->tag ("REPORT");
|
||||||
(*i)->attribute ("canonical", command);
|
(*i)->attribute ("canonical", command);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
else if (canonicalize (command, "readcmd", (*i)->attribute ("raw")))
|
else if (canonicalize (command, "readcmd", (*i)->attribute ("raw")))
|
||||||
{
|
{
|
||||||
@@ -263,6 +265,15 @@ void A3t::findCommand ()
|
|||||||
(*i)->attribute ("canonical", command);
|
(*i)->attribute ("canonical", command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (canonicalize (command, "helper", (*i)->attribute ("raw")))
|
||||||
|
{
|
||||||
|
(*i)->unTag ("?");
|
||||||
|
(*i)->tag ("CMD");
|
||||||
|
(*i)->tag ("HELPER");
|
||||||
|
(*i)->attribute ("canonical", command);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
else if (canonicalize (command, "specialcmd", (*i)->attribute ("raw")))
|
else if (canonicalize (command, "specialcmd", (*i)->attribute ("raw")))
|
||||||
{
|
{
|
||||||
(*i)->unTag ("?");
|
(*i)->unTag ("?");
|
||||||
@@ -270,6 +281,7 @@ void A3t::findCommand ()
|
|||||||
(*i)->tag ("SPECIALCMD");
|
(*i)->tag ("SPECIALCMD");
|
||||||
(*i)->attribute ("canonical", command);
|
(*i)->attribute ("canonical", command);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user