(svn r23210) -Codechange: generate the GetClassName function for the AI classes programmatically
This commit is contained in:
@@ -20,6 +20,8 @@ namespace SQConvert {
|
||||
template <> int Return<AITileList *>(HSQUIRRELVM vm, AITileList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList", res, NULL, DefSQDestructorCallback<AITileList>); return 1; }
|
||||
} // namespace SQConvert
|
||||
|
||||
template <> const char *GetClassName<AITileList>() { return "AITileList"; }
|
||||
|
||||
void SQAITileList_Register(Squirrel *engine)
|
||||
{
|
||||
DefSQClass <AITileList> SQAITileList("AITileList");
|
||||
@@ -43,6 +45,8 @@ namespace SQConvert {
|
||||
template <> int Return<AITileList_IndustryAccepting *>(HSQUIRRELVM vm, AITileList_IndustryAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_IndustryAccepting", res, NULL, DefSQDestructorCallback<AITileList_IndustryAccepting>); return 1; }
|
||||
} // namespace SQConvert
|
||||
|
||||
template <> const char *GetClassName<AITileList_IndustryAccepting>() { return "AITileList_IndustryAccepting"; }
|
||||
|
||||
void SQAITileList_IndustryAccepting_Register(Squirrel *engine)
|
||||
{
|
||||
DefSQClass <AITileList_IndustryAccepting> SQAITileList_IndustryAccepting("AITileList_IndustryAccepting");
|
||||
@@ -61,6 +65,8 @@ namespace SQConvert {
|
||||
template <> int Return<AITileList_IndustryProducing *>(HSQUIRRELVM vm, AITileList_IndustryProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_IndustryProducing", res, NULL, DefSQDestructorCallback<AITileList_IndustryProducing>); return 1; }
|
||||
} // namespace SQConvert
|
||||
|
||||
template <> const char *GetClassName<AITileList_IndustryProducing>() { return "AITileList_IndustryProducing"; }
|
||||
|
||||
void SQAITileList_IndustryProducing_Register(Squirrel *engine)
|
||||
{
|
||||
DefSQClass <AITileList_IndustryProducing> SQAITileList_IndustryProducing("AITileList_IndustryProducing");
|
||||
@@ -79,6 +85,8 @@ namespace SQConvert {
|
||||
template <> int Return<AITileList_StationType *>(HSQUIRRELVM vm, AITileList_StationType *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_StationType", res, NULL, DefSQDestructorCallback<AITileList_StationType>); return 1; }
|
||||
} // namespace SQConvert
|
||||
|
||||
template <> const char *GetClassName<AITileList_StationType>() { return "AITileList_StationType"; }
|
||||
|
||||
void SQAITileList_StationType_Register(Squirrel *engine)
|
||||
{
|
||||
DefSQClass <AITileList_StationType> SQAITileList_StationType("AITileList_StationType");
|
||||
|
Reference in New Issue
Block a user