Files
@ r21519:2102378bd25d
Branch filter:
Location: cpp/openttd-patchpack/source/src/script/api/game/game_event_types.hpp.sq - annotation
r21519:2102378bd25d
13.8 KiB
text/plain
(svn r26636) -Fix [FS#6026-ish]: (memory) size of variables saved for disaster vehicles was not correct in saveload description
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18764:f6e8611401f3 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18765:0c8917c89d77 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18773:1df705d87864 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r18872:35e831d058c7 r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19374:8b326f0c504b r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19375:5e05c9787ff3 r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f r19376:dd573f88a83f | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
/* THIS FILE IS AUTO-GENERATED; PLEASE DO NOT ALTER MANUALLY */
#include "../script_event_types.hpp"
#include "../template/template_event_types.hpp.sq"
template <> const char *GetClassName<ScriptEventVehicleCrashed, ST_GS>() { return "GSEventVehicleCrashed"; }
void SQGSEventVehicleCrashed_Register(Squirrel *engine)
{
DefSQClass<ScriptEventVehicleCrashed, ST_GS> SQGSEventVehicleCrashed("GSEventVehicleCrashed");
SQGSEventVehicleCrashed.PreRegister(engine, "GSEvent");
SQGSEventVehicleCrashed.DefSQConst(engine, ScriptEventVehicleCrashed::CRASH_TRAIN, "CRASH_TRAIN");
SQGSEventVehicleCrashed.DefSQConst(engine, ScriptEventVehicleCrashed::CRASH_RV_LEVEL_CROSSING, "CRASH_RV_LEVEL_CROSSING");
SQGSEventVehicleCrashed.DefSQConst(engine, ScriptEventVehicleCrashed::CRASH_RV_UFO, "CRASH_RV_UFO");
SQGSEventVehicleCrashed.DefSQConst(engine, ScriptEventVehicleCrashed::CRASH_PLANE_LANDING, "CRASH_PLANE_LANDING");
SQGSEventVehicleCrashed.DefSQConst(engine, ScriptEventVehicleCrashed::CRASH_AIRCRAFT_NO_AIRPORT, "CRASH_AIRCRAFT_NO_AIRPORT");
SQGSEventVehicleCrashed.DefSQConst(engine, ScriptEventVehicleCrashed::CRASH_FLOODED, "CRASH_FLOODED");
SQGSEventVehicleCrashed.DefSQStaticMethod(engine, &ScriptEventVehicleCrashed::Convert, "Convert", 2, ".x");
SQGSEventVehicleCrashed.DefSQMethod(engine, &ScriptEventVehicleCrashed::GetVehicleID, "GetVehicleID", 1, "x");
SQGSEventVehicleCrashed.DefSQMethod(engine, &ScriptEventVehicleCrashed::GetCrashSite, "GetCrashSite", 1, "x");
SQGSEventVehicleCrashed.DefSQMethod(engine, &ScriptEventVehicleCrashed::GetCrashReason, "GetCrashReason", 1, "x");
SQGSEventVehicleCrashed.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventSubsidyOffer, ST_GS>() { return "GSEventSubsidyOffer"; }
void SQGSEventSubsidyOffer_Register(Squirrel *engine)
{
DefSQClass<ScriptEventSubsidyOffer, ST_GS> SQGSEventSubsidyOffer("GSEventSubsidyOffer");
SQGSEventSubsidyOffer.PreRegister(engine, "GSEvent");
SQGSEventSubsidyOffer.DefSQStaticMethod(engine, &ScriptEventSubsidyOffer::Convert, "Convert", 2, ".x");
SQGSEventSubsidyOffer.DefSQMethod(engine, &ScriptEventSubsidyOffer::GetSubsidyID, "GetSubsidyID", 1, "x");
SQGSEventSubsidyOffer.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventSubsidyOfferExpired, ST_GS>() { return "GSEventSubsidyOfferExpired"; }
void SQGSEventSubsidyOfferExpired_Register(Squirrel *engine)
{
DefSQClass<ScriptEventSubsidyOfferExpired, ST_GS> SQGSEventSubsidyOfferExpired("GSEventSubsidyOfferExpired");
SQGSEventSubsidyOfferExpired.PreRegister(engine, "GSEvent");
SQGSEventSubsidyOfferExpired.DefSQStaticMethod(engine, &ScriptEventSubsidyOfferExpired::Convert, "Convert", 2, ".x");
SQGSEventSubsidyOfferExpired.DefSQMethod(engine, &ScriptEventSubsidyOfferExpired::GetSubsidyID, "GetSubsidyID", 1, "x");
SQGSEventSubsidyOfferExpired.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventSubsidyAwarded, ST_GS>() { return "GSEventSubsidyAwarded"; }
void SQGSEventSubsidyAwarded_Register(Squirrel *engine)
{
DefSQClass<ScriptEventSubsidyAwarded, ST_GS> SQGSEventSubsidyAwarded("GSEventSubsidyAwarded");
SQGSEventSubsidyAwarded.PreRegister(engine, "GSEvent");
SQGSEventSubsidyAwarded.DefSQStaticMethod(engine, &ScriptEventSubsidyAwarded::Convert, "Convert", 2, ".x");
SQGSEventSubsidyAwarded.DefSQMethod(engine, &ScriptEventSubsidyAwarded::GetSubsidyID, "GetSubsidyID", 1, "x");
SQGSEventSubsidyAwarded.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventSubsidyExpired, ST_GS>() { return "GSEventSubsidyExpired"; }
void SQGSEventSubsidyExpired_Register(Squirrel *engine)
{
DefSQClass<ScriptEventSubsidyExpired, ST_GS> SQGSEventSubsidyExpired("GSEventSubsidyExpired");
SQGSEventSubsidyExpired.PreRegister(engine, "GSEvent");
SQGSEventSubsidyExpired.DefSQStaticMethod(engine, &ScriptEventSubsidyExpired::Convert, "Convert", 2, ".x");
SQGSEventSubsidyExpired.DefSQMethod(engine, &ScriptEventSubsidyExpired::GetSubsidyID, "GetSubsidyID", 1, "x");
SQGSEventSubsidyExpired.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventCompanyNew, ST_GS>() { return "GSEventCompanyNew"; }
void SQGSEventCompanyNew_Register(Squirrel *engine)
{
DefSQClass<ScriptEventCompanyNew, ST_GS> SQGSEventCompanyNew("GSEventCompanyNew");
SQGSEventCompanyNew.PreRegister(engine, "GSEvent");
SQGSEventCompanyNew.DefSQStaticMethod(engine, &ScriptEventCompanyNew::Convert, "Convert", 2, ".x");
SQGSEventCompanyNew.DefSQMethod(engine, &ScriptEventCompanyNew::GetCompanyID, "GetCompanyID", 1, "x");
SQGSEventCompanyNew.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventCompanyInTrouble, ST_GS>() { return "GSEventCompanyInTrouble"; }
void SQGSEventCompanyInTrouble_Register(Squirrel *engine)
{
DefSQClass<ScriptEventCompanyInTrouble, ST_GS> SQGSEventCompanyInTrouble("GSEventCompanyInTrouble");
SQGSEventCompanyInTrouble.PreRegister(engine, "GSEvent");
SQGSEventCompanyInTrouble.DefSQStaticMethod(engine, &ScriptEventCompanyInTrouble::Convert, "Convert", 2, ".x");
SQGSEventCompanyInTrouble.DefSQMethod(engine, &ScriptEventCompanyInTrouble::GetCompanyID, "GetCompanyID", 1, "x");
SQGSEventCompanyInTrouble.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventCompanyMerger, ST_GS>() { return "GSEventCompanyMerger"; }
void SQGSEventCompanyMerger_Register(Squirrel *engine)
{
DefSQClass<ScriptEventCompanyMerger, ST_GS> SQGSEventCompanyMerger("GSEventCompanyMerger");
SQGSEventCompanyMerger.PreRegister(engine, "GSEvent");
SQGSEventCompanyMerger.DefSQStaticMethod(engine, &ScriptEventCompanyMerger::Convert, "Convert", 2, ".x");
SQGSEventCompanyMerger.DefSQMethod(engine, &ScriptEventCompanyMerger::GetOldCompanyID, "GetOldCompanyID", 1, "x");
SQGSEventCompanyMerger.DefSQMethod(engine, &ScriptEventCompanyMerger::GetNewCompanyID, "GetNewCompanyID", 1, "x");
SQGSEventCompanyMerger.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventCompanyBankrupt, ST_GS>() { return "GSEventCompanyBankrupt"; }
void SQGSEventCompanyBankrupt_Register(Squirrel *engine)
{
DefSQClass<ScriptEventCompanyBankrupt, ST_GS> SQGSEventCompanyBankrupt("GSEventCompanyBankrupt");
SQGSEventCompanyBankrupt.PreRegister(engine, "GSEvent");
SQGSEventCompanyBankrupt.DefSQStaticMethod(engine, &ScriptEventCompanyBankrupt::Convert, "Convert", 2, ".x");
SQGSEventCompanyBankrupt.DefSQMethod(engine, &ScriptEventCompanyBankrupt::GetCompanyID, "GetCompanyID", 1, "x");
SQGSEventCompanyBankrupt.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventIndustryOpen, ST_GS>() { return "GSEventIndustryOpen"; }
void SQGSEventIndustryOpen_Register(Squirrel *engine)
{
DefSQClass<ScriptEventIndustryOpen, ST_GS> SQGSEventIndustryOpen("GSEventIndustryOpen");
SQGSEventIndustryOpen.PreRegister(engine, "GSEvent");
SQGSEventIndustryOpen.DefSQStaticMethod(engine, &ScriptEventIndustryOpen::Convert, "Convert", 2, ".x");
SQGSEventIndustryOpen.DefSQMethod(engine, &ScriptEventIndustryOpen::GetIndustryID, "GetIndustryID", 1, "x");
SQGSEventIndustryOpen.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventIndustryClose, ST_GS>() { return "GSEventIndustryClose"; }
void SQGSEventIndustryClose_Register(Squirrel *engine)
{
DefSQClass<ScriptEventIndustryClose, ST_GS> SQGSEventIndustryClose("GSEventIndustryClose");
SQGSEventIndustryClose.PreRegister(engine, "GSEvent");
SQGSEventIndustryClose.DefSQStaticMethod(engine, &ScriptEventIndustryClose::Convert, "Convert", 2, ".x");
SQGSEventIndustryClose.DefSQMethod(engine, &ScriptEventIndustryClose::GetIndustryID, "GetIndustryID", 1, "x");
SQGSEventIndustryClose.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventStationFirstVehicle, ST_GS>() { return "GSEventStationFirstVehicle"; }
void SQGSEventStationFirstVehicle_Register(Squirrel *engine)
{
DefSQClass<ScriptEventStationFirstVehicle, ST_GS> SQGSEventStationFirstVehicle("GSEventStationFirstVehicle");
SQGSEventStationFirstVehicle.PreRegister(engine, "GSEvent");
SQGSEventStationFirstVehicle.DefSQStaticMethod(engine, &ScriptEventStationFirstVehicle::Convert, "Convert", 2, ".x");
SQGSEventStationFirstVehicle.DefSQMethod(engine, &ScriptEventStationFirstVehicle::GetStationID, "GetStationID", 1, "x");
SQGSEventStationFirstVehicle.DefSQMethod(engine, &ScriptEventStationFirstVehicle::GetVehicleID, "GetVehicleID", 1, "x");
SQGSEventStationFirstVehicle.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventTownFounded, ST_GS>() { return "GSEventTownFounded"; }
void SQGSEventTownFounded_Register(Squirrel *engine)
{
DefSQClass<ScriptEventTownFounded, ST_GS> SQGSEventTownFounded("GSEventTownFounded");
SQGSEventTownFounded.PreRegister(engine, "GSEvent");
SQGSEventTownFounded.DefSQStaticMethod(engine, &ScriptEventTownFounded::Convert, "Convert", 2, ".x");
SQGSEventTownFounded.DefSQMethod(engine, &ScriptEventTownFounded::GetTownID, "GetTownID", 1, "x");
SQGSEventTownFounded.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventAdminPort, ST_GS>() { return "GSEventAdminPort"; }
void SQGSEventAdminPort_Register(Squirrel *engine)
{
DefSQClass<ScriptEventAdminPort, ST_GS> SQGSEventAdminPort("GSEventAdminPort");
SQGSEventAdminPort.PreRegister(engine, "GSEvent");
SQGSEventAdminPort.DefSQStaticMethod(engine, &ScriptEventAdminPort::Convert, "Convert", 2, ".x");
SQGSEventAdminPort.DefSQAdvancedMethod(engine, &ScriptEventAdminPort::GetObject, "GetObject");
SQGSEventAdminPort.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventWindowWidgetClick, ST_GS>() { return "GSEventWindowWidgetClick"; }
void SQGSEventWindowWidgetClick_Register(Squirrel *engine)
{
DefSQClass<ScriptEventWindowWidgetClick, ST_GS> SQGSEventWindowWidgetClick("GSEventWindowWidgetClick");
SQGSEventWindowWidgetClick.PreRegister(engine, "GSEvent");
SQGSEventWindowWidgetClick.DefSQStaticMethod(engine, &ScriptEventWindowWidgetClick::Convert, "Convert", 2, ".x");
SQGSEventWindowWidgetClick.DefSQMethod(engine, &ScriptEventWindowWidgetClick::GetWindowClass, "GetWindowClass", 1, "x");
SQGSEventWindowWidgetClick.DefSQMethod(engine, &ScriptEventWindowWidgetClick::GetWindowNumber, "GetWindowNumber", 1, "x");
SQGSEventWindowWidgetClick.DefSQMethod(engine, &ScriptEventWindowWidgetClick::GetWidgetNumber, "GetWidgetNumber", 1, "x");
SQGSEventWindowWidgetClick.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventGoalQuestionAnswer, ST_GS>() { return "GSEventGoalQuestionAnswer"; }
void SQGSEventGoalQuestionAnswer_Register(Squirrel *engine)
{
DefSQClass<ScriptEventGoalQuestionAnswer, ST_GS> SQGSEventGoalQuestionAnswer("GSEventGoalQuestionAnswer");
SQGSEventGoalQuestionAnswer.PreRegister(engine, "GSEvent");
SQGSEventGoalQuestionAnswer.DefSQStaticMethod(engine, &ScriptEventGoalQuestionAnswer::Convert, "Convert", 2, ".x");
SQGSEventGoalQuestionAnswer.DefSQMethod(engine, &ScriptEventGoalQuestionAnswer::GetUniqueID, "GetUniqueID", 1, "x");
SQGSEventGoalQuestionAnswer.DefSQMethod(engine, &ScriptEventGoalQuestionAnswer::GetCompany, "GetCompany", 1, "x");
SQGSEventGoalQuestionAnswer.DefSQMethod(engine, &ScriptEventGoalQuestionAnswer::GetButton, "GetButton", 1, "x");
SQGSEventGoalQuestionAnswer.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventCompanyTown, ST_GS>() { return "GSEventCompanyTown"; }
void SQGSEventCompanyTown_Register(Squirrel *engine)
{
DefSQClass<ScriptEventCompanyTown, ST_GS> SQGSEventCompanyTown("GSEventCompanyTown");
SQGSEventCompanyTown.PreRegister(engine, "GSEvent");
SQGSEventCompanyTown.DefSQStaticMethod(engine, &ScriptEventCompanyTown::Convert, "Convert", 2, ".x");
SQGSEventCompanyTown.DefSQMethod(engine, &ScriptEventCompanyTown::GetCompanyID, "GetCompanyID", 1, "x");
SQGSEventCompanyTown.DefSQMethod(engine, &ScriptEventCompanyTown::GetTownID, "GetTownID", 1, "x");
SQGSEventCompanyTown.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventExclusiveTransportRights, ST_GS>() { return "GSEventExclusiveTransportRights"; }
void SQGSEventExclusiveTransportRights_Register(Squirrel *engine)
{
DefSQClass<ScriptEventExclusiveTransportRights, ST_GS> SQGSEventExclusiveTransportRights("GSEventExclusiveTransportRights");
SQGSEventExclusiveTransportRights.PreRegister(engine, "GSEventCompanyTown");
SQGSEventExclusiveTransportRights.AddConstructor<void (ScriptEventExclusiveTransportRights::*)(ScriptCompany::CompanyID company, TownID town), 3>(engine, "xii");
SQGSEventExclusiveTransportRights.DefSQStaticMethod(engine, &ScriptEventExclusiveTransportRights::Convert, "Convert", 2, ".x");
SQGSEventExclusiveTransportRights.PostRegister(engine);
}
template <> const char *GetClassName<ScriptEventRoadReconstruction, ST_GS>() { return "GSEventRoadReconstruction"; }
void SQGSEventRoadReconstruction_Register(Squirrel *engine)
{
DefSQClass<ScriptEventRoadReconstruction, ST_GS> SQGSEventRoadReconstruction("GSEventRoadReconstruction");
SQGSEventRoadReconstruction.PreRegister(engine, "GSEventCompanyTown");
SQGSEventRoadReconstruction.AddConstructor<void (ScriptEventRoadReconstruction::*)(ScriptCompany::CompanyID company, TownID town), 3>(engine, "xii");
SQGSEventRoadReconstruction.DefSQStaticMethod(engine, &ScriptEventRoadReconstruction::Convert, "Convert", 2, ".x");
SQGSEventRoadReconstruction.PostRegister(engine);
}
|