mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r23353) -Fix (r23350): somehow one file slipped through as unmodified
This commit is contained in:
parent
00877dd6d3
commit
5f6dc24663
@ -37,14 +37,14 @@ namespace SQConvert {
|
|||||||
template <> inline AITownEffectList &GetParam(ForceType<AITownEffectList &>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AITownEffectList *)instance; }
|
template <> inline AITownEffectList &GetParam(ForceType<AITownEffectList &>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AITownEffectList *)instance; }
|
||||||
template <> inline const AITownEffectList *GetParam(ForceType<const AITownEffectList *>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AITownEffectList *)instance; }
|
template <> inline const AITownEffectList *GetParam(ForceType<const AITownEffectList *>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AITownEffectList *)instance; }
|
||||||
template <> inline const AITownEffectList &GetParam(ForceType<const AITownEffectList &>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AITownEffectList *)instance; }
|
template <> inline const AITownEffectList &GetParam(ForceType<const AITownEffectList &>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AITownEffectList *)instance; }
|
||||||
template <> inline int Return<AITownEffectList *>(HSQUIRRELVM vm, AITownEffectList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITownEffectList", res, NULL, DefSQDestructorCallback<AITownEffectList>); return 1; }
|
template <> inline int Return<AITownEffectList *>(HSQUIRRELVM vm, AITownEffectList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "TownEffectList", res, NULL, DefSQDestructorCallback<AITownEffectList>, true); return 1; }
|
||||||
} // namespace SQConvert
|
} // namespace SQConvert
|
||||||
|
|
||||||
template <> const char *GetClassName<AITownEffectList>() { return "AITownEffectList"; }
|
template <> const char *GetClassName<AITownEffectList, ST_AI>() { return "AITownEffectList"; }
|
||||||
|
|
||||||
void SQAITownEffectList_Register(Squirrel *engine)
|
void SQAITownEffectList_Register(Squirrel *engine)
|
||||||
{
|
{
|
||||||
DefSQClass <AITownEffectList> SQAITownEffectList("AITownEffectList");
|
DefSQClass<AITownEffectList, ST_AI> SQAITownEffectList("AITownEffectList");
|
||||||
SQAITownEffectList.PreRegister(engine, "AIList");
|
SQAITownEffectList.PreRegister(engine, "AIList");
|
||||||
SQAITownEffectList.AddConstructor<void (AITownEffectList::*)(), 1>(engine, "x");
|
SQAITownEffectList.AddConstructor<void (AITownEffectList::*)(), 1>(engine, "x");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user