src/ai/api/ai_vehiclelist_valuator.hpp.sq
author truebrain
Thu, 28 Feb 2008 14:28:44 +0000
branchnoai
changeset 9806 d65cc2bcb0de
parent 9753 7209db94ad12
permissions -rw-r--r--
(svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
     1
#include "ai_vehiclelist_valuator.hpp"
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
     2
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
     3
namespace SQConvert {
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
     4
	/* Allow AIVehicleList_vLocation to be used as Squirrel parameter */
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
     5
	template <> AIVehicleList_vLocation *GetParam(ForceType<AIVehicleList_vLocation *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vLocation *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
     6
	template <> AIVehicleList_vLocation &GetParam(ForceType<AIVehicleList_vLocation &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vLocation *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
     7
	template <> const AIVehicleList_vLocation *GetParam(ForceType<const AIVehicleList_vLocation *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vLocation *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
     8
	template <> const AIVehicleList_vLocation &GetParam(ForceType<const AIVehicleList_vLocation &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vLocation *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
     9
	template <> int Return<AIVehicleList_vLocation *>(HSQUIRRELVM vm, AIVehicleList_vLocation *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_vLocation", res, NULL, DefSQDestructorCallback<AIVehicleList_vLocation>); return 1; }
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    10
}; // namespace SQConvert
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    11
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    12
void SQAIVehicleList_vLocation_Register(Squirrel *engine) {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    13
	DefSQClass <AIVehicleList_vLocation> SQAIVehicleList_vLocation("AIVehicleList_vLocation");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    14
	SQAIVehicleList_vLocation.PreRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    15
	SQAIVehicleList_vLocation.AddConstructor<void (AIVehicleList_vLocation::*)(), 1>(engine, "x");
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    16
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    17
	SQAIVehicleList_vLocation.DefSQStaticMethod(engine, &AIVehicleList_vLocation::GetClassName, "GetClassName", 1, "x");
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    18
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    19
	SQAIVehicleList_vLocation.PostRegister(engine);
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    20
}
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    21
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    22
namespace SQConvert {
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    23
	/* Allow AIVehicleList_vEngineType to be used as Squirrel parameter */
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    24
	template <> AIVehicleList_vEngineType *GetParam(ForceType<AIVehicleList_vEngineType *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vEngineType *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    25
	template <> AIVehicleList_vEngineType &GetParam(ForceType<AIVehicleList_vEngineType &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vEngineType *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    26
	template <> const AIVehicleList_vEngineType *GetParam(ForceType<const AIVehicleList_vEngineType *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vEngineType *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    27
	template <> const AIVehicleList_vEngineType &GetParam(ForceType<const AIVehicleList_vEngineType &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vEngineType *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    28
	template <> int Return<AIVehicleList_vEngineType *>(HSQUIRRELVM vm, AIVehicleList_vEngineType *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_vEngineType", res, NULL, DefSQDestructorCallback<AIVehicleList_vEngineType>); return 1; }
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    29
}; // namespace SQConvert
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    30
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    31
void SQAIVehicleList_vEngineType_Register(Squirrel *engine) {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    32
	DefSQClass <AIVehicleList_vEngineType> SQAIVehicleList_vEngineType("AIVehicleList_vEngineType");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    33
	SQAIVehicleList_vEngineType.PreRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    34
	SQAIVehicleList_vEngineType.AddConstructor<void (AIVehicleList_vEngineType::*)(), 1>(engine, "x");
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    35
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    36
	SQAIVehicleList_vEngineType.DefSQStaticMethod(engine, &AIVehicleList_vEngineType::GetClassName, "GetClassName", 1, "x");
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    37
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    38
	SQAIVehicleList_vEngineType.PostRegister(engine);
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    39
}
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    40
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    41
namespace SQConvert {
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    42
	/* Allow AIVehicleList_vUnitNumber to be used as Squirrel parameter */
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    43
	template <> AIVehicleList_vUnitNumber *GetParam(ForceType<AIVehicleList_vUnitNumber *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vUnitNumber *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    44
	template <> AIVehicleList_vUnitNumber &GetParam(ForceType<AIVehicleList_vUnitNumber &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vUnitNumber *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    45
	template <> const AIVehicleList_vUnitNumber *GetParam(ForceType<const AIVehicleList_vUnitNumber *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vUnitNumber *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    46
	template <> const AIVehicleList_vUnitNumber &GetParam(ForceType<const AIVehicleList_vUnitNumber &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vUnitNumber *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    47
	template <> int Return<AIVehicleList_vUnitNumber *>(HSQUIRRELVM vm, AIVehicleList_vUnitNumber *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_vUnitNumber", res, NULL, DefSQDestructorCallback<AIVehicleList_vUnitNumber>); return 1; }
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    48
}; // namespace SQConvert
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    49
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    50
void SQAIVehicleList_vUnitNumber_Register(Squirrel *engine) {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    51
	DefSQClass <AIVehicleList_vUnitNumber> SQAIVehicleList_vUnitNumber("AIVehicleList_vUnitNumber");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    52
	SQAIVehicleList_vUnitNumber.PreRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    53
	SQAIVehicleList_vUnitNumber.AddConstructor<void (AIVehicleList_vUnitNumber::*)(), 1>(engine, "x");
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    54
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    55
	SQAIVehicleList_vUnitNumber.DefSQStaticMethod(engine, &AIVehicleList_vUnitNumber::GetClassName, "GetClassName", 1, "x");
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    56
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    57
	SQAIVehicleList_vUnitNumber.PostRegister(engine);
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    58
}
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    59
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    60
namespace SQConvert {
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    61
	/* Allow AIVehicleList_vAge to be used as Squirrel parameter */
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    62
	template <> AIVehicleList_vAge *GetParam(ForceType<AIVehicleList_vAge *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vAge *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    63
	template <> AIVehicleList_vAge &GetParam(ForceType<AIVehicleList_vAge &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vAge *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    64
	template <> const AIVehicleList_vAge *GetParam(ForceType<const AIVehicleList_vAge *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vAge *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    65
	template <> const AIVehicleList_vAge &GetParam(ForceType<const AIVehicleList_vAge &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vAge *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    66
	template <> int Return<AIVehicleList_vAge *>(HSQUIRRELVM vm, AIVehicleList_vAge *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_vAge", res, NULL, DefSQDestructorCallback<AIVehicleList_vAge>); return 1; }
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    67
}; // namespace SQConvert
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    68
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    69
void SQAIVehicleList_vAge_Register(Squirrel *engine) {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    70
	DefSQClass <AIVehicleList_vAge> SQAIVehicleList_vAge("AIVehicleList_vAge");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    71
	SQAIVehicleList_vAge.PreRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    72
	SQAIVehicleList_vAge.AddConstructor<void (AIVehicleList_vAge::*)(), 1>(engine, "x");
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    73
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    74
	SQAIVehicleList_vAge.DefSQStaticMethod(engine, &AIVehicleList_vAge::GetClassName, "GetClassName", 1, "x");
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    75
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    76
	SQAIVehicleList_vAge.PostRegister(engine);
9614
814c3bbf8ecc (svn r9781) [NoAI] -Add: added AIVehicleListProfit[This|Last]Year as valuator
truelight
parents:
diff changeset
    77
}
9684
623970482fb2 (svn r10633) [NoAI] -Add: added GetVehicleType and AIVehicle::VehicleType
truelight
parents: 9680
diff changeset
    78
623970482fb2 (svn r10633) [NoAI] -Add: added GetVehicleType and AIVehicle::VehicleType
truelight
parents: 9680
diff changeset
    79
namespace SQConvert {
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    80
	/* Allow AIVehicleList_vMaxAge to be used as Squirrel parameter */
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    81
	template <> AIVehicleList_vMaxAge *GetParam(ForceType<AIVehicleList_vMaxAge *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vMaxAge *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    82
	template <> AIVehicleList_vMaxAge &GetParam(ForceType<AIVehicleList_vMaxAge &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vMaxAge *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    83
	template <> const AIVehicleList_vMaxAge *GetParam(ForceType<const AIVehicleList_vMaxAge *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vMaxAge *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    84
	template <> const AIVehicleList_vMaxAge &GetParam(ForceType<const AIVehicleList_vMaxAge &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vMaxAge *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    85
	template <> int Return<AIVehicleList_vMaxAge *>(HSQUIRRELVM vm, AIVehicleList_vMaxAge *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_vMaxAge", res, NULL, DefSQDestructorCallback<AIVehicleList_vMaxAge>); return 1; }
9684
623970482fb2 (svn r10633) [NoAI] -Add: added GetVehicleType and AIVehicle::VehicleType
truelight
parents: 9680
diff changeset
    86
}; // namespace SQConvert
623970482fb2 (svn r10633) [NoAI] -Add: added GetVehicleType and AIVehicle::VehicleType
truelight
parents: 9680
diff changeset
    87
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    88
void SQAIVehicleList_vMaxAge_Register(Squirrel *engine) {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    89
	DefSQClass <AIVehicleList_vMaxAge> SQAIVehicleList_vMaxAge("AIVehicleList_vMaxAge");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    90
	SQAIVehicleList_vMaxAge.PreRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    91
	SQAIVehicleList_vMaxAge.AddConstructor<void (AIVehicleList_vMaxAge::*)(), 1>(engine, "x");
9684
623970482fb2 (svn r10633) [NoAI] -Add: added GetVehicleType and AIVehicle::VehicleType
truelight
parents: 9680
diff changeset
    92
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    93
	SQAIVehicleList_vMaxAge.DefSQStaticMethod(engine, &AIVehicleList_vMaxAge::GetClassName, "GetClassName", 1, "x");
9684
623970482fb2 (svn r10633) [NoAI] -Add: added GetVehicleType and AIVehicle::VehicleType
truelight
parents: 9680
diff changeset
    94
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    95
	SQAIVehicleList_vMaxAge.PostRegister(engine);
9684
623970482fb2 (svn r10633) [NoAI] -Add: added GetVehicleType and AIVehicle::VehicleType
truelight
parents: 9680
diff changeset
    96
}
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    97
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    98
namespace SQConvert {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
    99
	/* Allow AIVehicleList_vAgeLeft to be used as Squirrel parameter */
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   100
	template <> AIVehicleList_vAgeLeft *GetParam(ForceType<AIVehicleList_vAgeLeft *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vAgeLeft *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   101
	template <> AIVehicleList_vAgeLeft &GetParam(ForceType<AIVehicleList_vAgeLeft &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vAgeLeft *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   102
	template <> const AIVehicleList_vAgeLeft *GetParam(ForceType<const AIVehicleList_vAgeLeft *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vAgeLeft *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   103
	template <> const AIVehicleList_vAgeLeft &GetParam(ForceType<const AIVehicleList_vAgeLeft &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vAgeLeft *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   104
	template <> int Return<AIVehicleList_vAgeLeft *>(HSQUIRRELVM vm, AIVehicleList_vAgeLeft *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_vAgeLeft", res, NULL, DefSQDestructorCallback<AIVehicleList_vAgeLeft>); return 1; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   105
}; // namespace SQConvert
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   106
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   107
void SQAIVehicleList_vAgeLeft_Register(Squirrel *engine) {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   108
	DefSQClass <AIVehicleList_vAgeLeft> SQAIVehicleList_vAgeLeft("AIVehicleList_vAgeLeft");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   109
	SQAIVehicleList_vAgeLeft.PreRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   110
	SQAIVehicleList_vAgeLeft.AddConstructor<void (AIVehicleList_vAgeLeft::*)(), 1>(engine, "x");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   111
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   112
	SQAIVehicleList_vAgeLeft.DefSQStaticMethod(engine, &AIVehicleList_vAgeLeft::GetClassName, "GetClassName", 1, "x");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   113
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   114
	SQAIVehicleList_vAgeLeft.PostRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   115
}
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   116
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   117
namespace SQConvert {
9806
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   118
	/* Allow AIVehicleList_vRunningCost to be used as Squirrel parameter */
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   119
	template <> AIVehicleList_vRunningCost *GetParam(ForceType<AIVehicleList_vRunningCost *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vRunningCost *)instance; }
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   120
	template <> AIVehicleList_vRunningCost &GetParam(ForceType<AIVehicleList_vRunningCost &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vRunningCost *)instance; }
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   121
	template <> const AIVehicleList_vRunningCost *GetParam(ForceType<const AIVehicleList_vRunningCost *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vRunningCost *)instance; }
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   122
	template <> const AIVehicleList_vRunningCost &GetParam(ForceType<const AIVehicleList_vRunningCost &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vRunningCost *)instance; }
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   123
	template <> int Return<AIVehicleList_vRunningCost *>(HSQUIRRELVM vm, AIVehicleList_vRunningCost *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_vRunningCost", res, NULL, DefSQDestructorCallback<AIVehicleList_vRunningCost>); return 1; }
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   124
}; // namespace SQConvert
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   125
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   126
void SQAIVehicleList_vRunningCost_Register(Squirrel *engine) {
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   127
	DefSQClass <AIVehicleList_vRunningCost> SQAIVehicleList_vRunningCost("AIVehicleList_vRunningCost");
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   128
	SQAIVehicleList_vRunningCost.PreRegister(engine);
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   129
	SQAIVehicleList_vRunningCost.AddConstructor<void (AIVehicleList_vRunningCost::*)(), 1>(engine, "x");
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   130
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   131
	SQAIVehicleList_vRunningCost.DefSQStaticMethod(engine, &AIVehicleList_vRunningCost::GetClassName, "GetClassName", 1, "x");
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   132
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   133
	SQAIVehicleList_vRunningCost.PostRegister(engine);
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   134
}
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   135
d65cc2bcb0de (svn r12312) [NoAI] -Fix: AIVehicle_vRunningCost didn't exist
truebrain
parents: 9753
diff changeset
   136
namespace SQConvert {
9753
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   137
	/* Allow AIVehicleList_vProfitThisYear to be used as Squirrel parameter */
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   138
	template <> AIVehicleList_vProfitThisYear *GetParam(ForceType<AIVehicleList_vProfitThisYear *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vProfitThisYear *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   139
	template <> AIVehicleList_vProfitThisYear &GetParam(ForceType<AIVehicleList_vProfitThisYear &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vProfitThisYear *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   140
	template <> const AIVehicleList_vProfitThisYear *GetParam(ForceType<const AIVehicleList_vProfitThisYear *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vProfitThisYear *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   141
	template <> const AIVehicleList_vProfitThisYear &GetParam(ForceType<const AIVehicleList_vProfitThisYear &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vProfitThisYear *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   142
	template <> int Return<AIVehicleList_vProfitThisYear *>(HSQUIRRELVM vm, AIVehicleList_vProfitThisYear *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_vProfitThisYear", res, NULL, DefSQDestructorCallback<AIVehicleList_vProfitThisYear>); return 1; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   143
}; // namespace SQConvert
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   144
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   145
void SQAIVehicleList_vProfitThisYear_Register(Squirrel *engine) {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   146
	DefSQClass <AIVehicleList_vProfitThisYear> SQAIVehicleList_vProfitThisYear("AIVehicleList_vProfitThisYear");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   147
	SQAIVehicleList_vProfitThisYear.PreRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   148
	SQAIVehicleList_vProfitThisYear.AddConstructor<void (AIVehicleList_vProfitThisYear::*)(), 1>(engine, "x");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   149
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   150
	SQAIVehicleList_vProfitThisYear.DefSQStaticMethod(engine, &AIVehicleList_vProfitThisYear::GetClassName, "GetClassName", 1, "x");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   151
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   152
	SQAIVehicleList_vProfitThisYear.PostRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   153
}
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   154
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   155
namespace SQConvert {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   156
	/* Allow AIVehicleList_vProfitLastYear to be used as Squirrel parameter */
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   157
	template <> AIVehicleList_vProfitLastYear *GetParam(ForceType<AIVehicleList_vProfitLastYear *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vProfitLastYear *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   158
	template <> AIVehicleList_vProfitLastYear &GetParam(ForceType<AIVehicleList_vProfitLastYear &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vProfitLastYear *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   159
	template <> const AIVehicleList_vProfitLastYear *GetParam(ForceType<const AIVehicleList_vProfitLastYear *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vProfitLastYear *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   160
	template <> const AIVehicleList_vProfitLastYear &GetParam(ForceType<const AIVehicleList_vProfitLastYear &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vProfitLastYear *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   161
	template <> int Return<AIVehicleList_vProfitLastYear *>(HSQUIRRELVM vm, AIVehicleList_vProfitLastYear *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_vProfitLastYear", res, NULL, DefSQDestructorCallback<AIVehicleList_vProfitLastYear>); return 1; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   162
}; // namespace SQConvert
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   163
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   164
void SQAIVehicleList_vProfitLastYear_Register(Squirrel *engine) {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   165
	DefSQClass <AIVehicleList_vProfitLastYear> SQAIVehicleList_vProfitLastYear("AIVehicleList_vProfitLastYear");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   166
	SQAIVehicleList_vProfitLastYear.PreRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   167
	SQAIVehicleList_vProfitLastYear.AddConstructor<void (AIVehicleList_vProfitLastYear::*)(), 1>(engine, "x");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   168
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   169
	SQAIVehicleList_vProfitLastYear.DefSQStaticMethod(engine, &AIVehicleList_vProfitLastYear::GetClassName, "GetClassName", 1, "x");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   170
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   171
	SQAIVehicleList_vProfitLastYear.PostRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   172
}
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   173
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   174
namespace SQConvert {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   175
	/* Allow AIVehicleList_vVehicleType to be used as Squirrel parameter */
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   176
	template <> AIVehicleList_vVehicleType *GetParam(ForceType<AIVehicleList_vVehicleType *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vVehicleType *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   177
	template <> AIVehicleList_vVehicleType &GetParam(ForceType<AIVehicleList_vVehicleType &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vVehicleType *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   178
	template <> const AIVehicleList_vVehicleType *GetParam(ForceType<const AIVehicleList_vVehicleType *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return  (AIVehicleList_vVehicleType *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   179
	template <> const AIVehicleList_vVehicleType &GetParam(ForceType<const AIVehicleList_vVehicleType &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIVehicleList_vVehicleType *)instance; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   180
	template <> int Return<AIVehicleList_vVehicleType *>(HSQUIRRELVM vm, AIVehicleList_vVehicleType *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_vVehicleType", res, NULL, DefSQDestructorCallback<AIVehicleList_vVehicleType>); return 1; }
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   181
}; // namespace SQConvert
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   182
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   183
void SQAIVehicleList_vVehicleType_Register(Squirrel *engine) {
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   184
	DefSQClass <AIVehicleList_vVehicleType> SQAIVehicleList_vVehicleType("AIVehicleList_vVehicleType");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   185
	SQAIVehicleList_vVehicleType.PreRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   186
	SQAIVehicleList_vVehicleType.AddConstructor<void (AIVehicleList_vVehicleType::*)(), 1>(engine, "x");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   187
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   188
	SQAIVehicleList_vVehicleType.DefSQStaticMethod(engine, &AIVehicleList_vVehicleType::GetClassName, "GetClassName", 1, "x");
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   189
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   190
	SQAIVehicleList_vVehicleType.PostRegister(engine);
7209db94ad12 (svn r12236) [NoAI] -Change: [API CHANGE] All valuators are now in the notation: AI<type>List_v<Valuator>. Example: AIVehicleList_vAge
truebrain
parents: 9741
diff changeset
   191
}