(svn r23350) -Add: support different ScriptTypes in the helper functions for GetClassName (Rubidium)

This commit is contained in:
truebrain
2011-11-29 22:23:33 +00:00
parent b13fa6924b
commit bff7c33aa9
54 changed files with 190 additions and 185 deletions

View File

@@ -209,13 +209,13 @@ BEGIN {
print "} // namespace SQConvert"
print "";
print "template <> const char *GetClassName<" cls ">() { return \"" cls "\"; }"
print "template <> const char *GetClassName<" cls ", ST_AI>() { return \"" cls "\"; }"
print "";
# Then do the registration functions of the class. */
print "void SQ" cls "_Register(Squirrel *engine)"
print "{"
print " DefSQClass <" cls "> SQ" cls "(\"" cls "\");"
print " DefSQClass<" cls ", ST_AI> SQ" cls "(\"" cls "\");"
if (super_cls == "AIObject" || super_cls == "AIAbstractList::Valuator") {
print " SQ" cls ".PreRegister(engine);"
} else {