DeviceSystemDataWrap.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class DeviceSystemDataWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(DeviceSystemData), typeof(System.Object));
  9. L.RegFunction("New", _CreateDeviceSystemData);
  10. L.RegFunction("__tostring", ToLua.op_ToString);
  11. L.RegVar("deviceModel", get_deviceModel, set_deviceModel);
  12. L.RegVar("deviceWidth", get_deviceWidth, set_deviceWidth);
  13. L.RegVar("deviceHeight", get_deviceHeight, set_deviceHeight);
  14. L.RegVar("osName", get_osName, set_osName);
  15. L.RegVar("osVer", get_osVer, set_osVer);
  16. L.RegVar("macAddr", get_macAddr, set_macAddr);
  17. L.RegVar("udid", get_udid, set_udid);
  18. L.RegVar("isp", get_isp, set_isp);
  19. L.RegVar("network", get_network, set_network);
  20. L.RegVar("appChannel", get_appChannel, set_appChannel);
  21. L.RegVar("appVer", get_appVer, set_appVer);
  22. L.RegVar("transId", get_transId, set_transId);
  23. L.RegVar("deviceId", get_deviceId, set_deviceId);
  24. L.RegVar("isEmulator", get_isEmulator, set_isEmulator);
  25. L.RegVar("isRoot", get_isRoot, set_isRoot);
  26. L.RegVar("accountId", get_accountId, set_accountId);
  27. L.RegVar("oldAccountId", get_oldAccountId, set_oldAccountId);
  28. L.RegVar("imei", get_imei, set_imei);
  29. L.RegVar("countryCode", get_countryCode, set_countryCode);
  30. L.RegVar("oaid", get_oaid, set_oaid);
  31. L.RegVar("engineVer", get_engineVer, set_engineVer);
  32. L.EndClass();
  33. }
  34. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  35. static int _CreateDeviceSystemData(IntPtr L)
  36. {
  37. try
  38. {
  39. int count = LuaDLL.lua_gettop(L);
  40. if (count == 0)
  41. {
  42. DeviceSystemData obj = new DeviceSystemData();
  43. ToLua.PushObject(L, obj);
  44. return 1;
  45. }
  46. else
  47. {
  48. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: DeviceSystemData.New");
  49. }
  50. }
  51. catch (Exception e)
  52. {
  53. return LuaDLL.toluaL_exception(L, e);
  54. }
  55. }
  56. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  57. static int get_deviceModel(IntPtr L)
  58. {
  59. object o = null;
  60. try
  61. {
  62. o = ToLua.ToObject(L, 1);
  63. DeviceSystemData obj = (DeviceSystemData)o;
  64. string ret = obj.deviceModel;
  65. LuaDLL.lua_pushstring(L, ret);
  66. return 1;
  67. }
  68. catch(Exception e)
  69. {
  70. return LuaDLL.toluaL_exception(L, e, o, "attempt to index deviceModel on a nil value");
  71. }
  72. }
  73. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  74. static int get_deviceWidth(IntPtr L)
  75. {
  76. object o = null;
  77. try
  78. {
  79. o = ToLua.ToObject(L, 1);
  80. DeviceSystemData obj = (DeviceSystemData)o;
  81. int ret = obj.deviceWidth;
  82. LuaDLL.lua_pushinteger(L, ret);
  83. return 1;
  84. }
  85. catch(Exception e)
  86. {
  87. return LuaDLL.toluaL_exception(L, e, o, "attempt to index deviceWidth on a nil value");
  88. }
  89. }
  90. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  91. static int get_deviceHeight(IntPtr L)
  92. {
  93. object o = null;
  94. try
  95. {
  96. o = ToLua.ToObject(L, 1);
  97. DeviceSystemData obj = (DeviceSystemData)o;
  98. int ret = obj.deviceHeight;
  99. LuaDLL.lua_pushinteger(L, ret);
  100. return 1;
  101. }
  102. catch(Exception e)
  103. {
  104. return LuaDLL.toluaL_exception(L, e, o, "attempt to index deviceHeight on a nil value");
  105. }
  106. }
  107. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  108. static int get_osName(IntPtr L)
  109. {
  110. object o = null;
  111. try
  112. {
  113. o = ToLua.ToObject(L, 1);
  114. DeviceSystemData obj = (DeviceSystemData)o;
  115. string ret = obj.osName;
  116. LuaDLL.lua_pushstring(L, ret);
  117. return 1;
  118. }
  119. catch(Exception e)
  120. {
  121. return LuaDLL.toluaL_exception(L, e, o, "attempt to index osName on a nil value");
  122. }
  123. }
  124. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  125. static int get_osVer(IntPtr L)
  126. {
  127. object o = null;
  128. try
  129. {
  130. o = ToLua.ToObject(L, 1);
  131. DeviceSystemData obj = (DeviceSystemData)o;
  132. string ret = obj.osVer;
  133. LuaDLL.lua_pushstring(L, ret);
  134. return 1;
  135. }
  136. catch(Exception e)
  137. {
  138. return LuaDLL.toluaL_exception(L, e, o, "attempt to index osVer on a nil value");
  139. }
  140. }
  141. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  142. static int get_macAddr(IntPtr L)
  143. {
  144. object o = null;
  145. try
  146. {
  147. o = ToLua.ToObject(L, 1);
  148. DeviceSystemData obj = (DeviceSystemData)o;
  149. string ret = obj.macAddr;
  150. LuaDLL.lua_pushstring(L, ret);
  151. return 1;
  152. }
  153. catch(Exception e)
  154. {
  155. return LuaDLL.toluaL_exception(L, e, o, "attempt to index macAddr on a nil value");
  156. }
  157. }
  158. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  159. static int get_udid(IntPtr L)
  160. {
  161. object o = null;
  162. try
  163. {
  164. o = ToLua.ToObject(L, 1);
  165. DeviceSystemData obj = (DeviceSystemData)o;
  166. string ret = obj.udid;
  167. LuaDLL.lua_pushstring(L, ret);
  168. return 1;
  169. }
  170. catch(Exception e)
  171. {
  172. return LuaDLL.toluaL_exception(L, e, o, "attempt to index udid on a nil value");
  173. }
  174. }
  175. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  176. static int get_isp(IntPtr L)
  177. {
  178. object o = null;
  179. try
  180. {
  181. o = ToLua.ToObject(L, 1);
  182. DeviceSystemData obj = (DeviceSystemData)o;
  183. string ret = obj.isp;
  184. LuaDLL.lua_pushstring(L, ret);
  185. return 1;
  186. }
  187. catch(Exception e)
  188. {
  189. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isp on a nil value");
  190. }
  191. }
  192. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  193. static int get_network(IntPtr L)
  194. {
  195. object o = null;
  196. try
  197. {
  198. o = ToLua.ToObject(L, 1);
  199. DeviceSystemData obj = (DeviceSystemData)o;
  200. string ret = obj.network;
  201. LuaDLL.lua_pushstring(L, ret);
  202. return 1;
  203. }
  204. catch(Exception e)
  205. {
  206. return LuaDLL.toluaL_exception(L, e, o, "attempt to index network on a nil value");
  207. }
  208. }
  209. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  210. static int get_appChannel(IntPtr L)
  211. {
  212. object o = null;
  213. try
  214. {
  215. o = ToLua.ToObject(L, 1);
  216. DeviceSystemData obj = (DeviceSystemData)o;
  217. string ret = obj.appChannel;
  218. LuaDLL.lua_pushstring(L, ret);
  219. return 1;
  220. }
  221. catch(Exception e)
  222. {
  223. return LuaDLL.toluaL_exception(L, e, o, "attempt to index appChannel on a nil value");
  224. }
  225. }
  226. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  227. static int get_appVer(IntPtr L)
  228. {
  229. object o = null;
  230. try
  231. {
  232. o = ToLua.ToObject(L, 1);
  233. DeviceSystemData obj = (DeviceSystemData)o;
  234. string ret = obj.appVer;
  235. LuaDLL.lua_pushstring(L, ret);
  236. return 1;
  237. }
  238. catch(Exception e)
  239. {
  240. return LuaDLL.toluaL_exception(L, e, o, "attempt to index appVer on a nil value");
  241. }
  242. }
  243. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  244. static int get_transId(IntPtr L)
  245. {
  246. object o = null;
  247. try
  248. {
  249. o = ToLua.ToObject(L, 1);
  250. DeviceSystemData obj = (DeviceSystemData)o;
  251. string ret = obj.transId;
  252. LuaDLL.lua_pushstring(L, ret);
  253. return 1;
  254. }
  255. catch(Exception e)
  256. {
  257. return LuaDLL.toluaL_exception(L, e, o, "attempt to index transId on a nil value");
  258. }
  259. }
  260. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  261. static int get_deviceId(IntPtr L)
  262. {
  263. object o = null;
  264. try
  265. {
  266. o = ToLua.ToObject(L, 1);
  267. DeviceSystemData obj = (DeviceSystemData)o;
  268. string ret = obj.deviceId;
  269. LuaDLL.lua_pushstring(L, ret);
  270. return 1;
  271. }
  272. catch(Exception e)
  273. {
  274. return LuaDLL.toluaL_exception(L, e, o, "attempt to index deviceId on a nil value");
  275. }
  276. }
  277. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  278. static int get_isEmulator(IntPtr L)
  279. {
  280. object o = null;
  281. try
  282. {
  283. o = ToLua.ToObject(L, 1);
  284. DeviceSystemData obj = (DeviceSystemData)o;
  285. int ret = obj.isEmulator;
  286. LuaDLL.lua_pushinteger(L, ret);
  287. return 1;
  288. }
  289. catch(Exception e)
  290. {
  291. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isEmulator on a nil value");
  292. }
  293. }
  294. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  295. static int get_isRoot(IntPtr L)
  296. {
  297. object o = null;
  298. try
  299. {
  300. o = ToLua.ToObject(L, 1);
  301. DeviceSystemData obj = (DeviceSystemData)o;
  302. int ret = obj.isRoot;
  303. LuaDLL.lua_pushinteger(L, ret);
  304. return 1;
  305. }
  306. catch(Exception e)
  307. {
  308. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isRoot on a nil value");
  309. }
  310. }
  311. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  312. static int get_accountId(IntPtr L)
  313. {
  314. object o = null;
  315. try
  316. {
  317. o = ToLua.ToObject(L, 1);
  318. DeviceSystemData obj = (DeviceSystemData)o;
  319. string ret = obj.accountId;
  320. LuaDLL.lua_pushstring(L, ret);
  321. return 1;
  322. }
  323. catch(Exception e)
  324. {
  325. return LuaDLL.toluaL_exception(L, e, o, "attempt to index accountId on a nil value");
  326. }
  327. }
  328. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  329. static int get_oldAccountId(IntPtr L)
  330. {
  331. object o = null;
  332. try
  333. {
  334. o = ToLua.ToObject(L, 1);
  335. DeviceSystemData obj = (DeviceSystemData)o;
  336. string ret = obj.oldAccountId;
  337. LuaDLL.lua_pushstring(L, ret);
  338. return 1;
  339. }
  340. catch(Exception e)
  341. {
  342. return LuaDLL.toluaL_exception(L, e, o, "attempt to index oldAccountId on a nil value");
  343. }
  344. }
  345. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  346. static int get_imei(IntPtr L)
  347. {
  348. object o = null;
  349. try
  350. {
  351. o = ToLua.ToObject(L, 1);
  352. DeviceSystemData obj = (DeviceSystemData)o;
  353. string ret = obj.imei;
  354. LuaDLL.lua_pushstring(L, ret);
  355. return 1;
  356. }
  357. catch(Exception e)
  358. {
  359. return LuaDLL.toluaL_exception(L, e, o, "attempt to index imei on a nil value");
  360. }
  361. }
  362. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  363. static int get_countryCode(IntPtr L)
  364. {
  365. object o = null;
  366. try
  367. {
  368. o = ToLua.ToObject(L, 1);
  369. DeviceSystemData obj = (DeviceSystemData)o;
  370. string ret = obj.countryCode;
  371. LuaDLL.lua_pushstring(L, ret);
  372. return 1;
  373. }
  374. catch(Exception e)
  375. {
  376. return LuaDLL.toluaL_exception(L, e, o, "attempt to index countryCode on a nil value");
  377. }
  378. }
  379. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  380. static int get_oaid(IntPtr L)
  381. {
  382. object o = null;
  383. try
  384. {
  385. o = ToLua.ToObject(L, 1);
  386. DeviceSystemData obj = (DeviceSystemData)o;
  387. string ret = obj.oaid;
  388. LuaDLL.lua_pushstring(L, ret);
  389. return 1;
  390. }
  391. catch(Exception e)
  392. {
  393. return LuaDLL.toluaL_exception(L, e, o, "attempt to index oaid on a nil value");
  394. }
  395. }
  396. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  397. static int get_engineVer(IntPtr L)
  398. {
  399. object o = null;
  400. try
  401. {
  402. o = ToLua.ToObject(L, 1);
  403. DeviceSystemData obj = (DeviceSystemData)o;
  404. string ret = obj.engineVer;
  405. LuaDLL.lua_pushstring(L, ret);
  406. return 1;
  407. }
  408. catch(Exception e)
  409. {
  410. return LuaDLL.toluaL_exception(L, e, o, "attempt to index engineVer on a nil value");
  411. }
  412. }
  413. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  414. static int set_deviceModel(IntPtr L)
  415. {
  416. object o = null;
  417. try
  418. {
  419. o = ToLua.ToObject(L, 1);
  420. DeviceSystemData obj = (DeviceSystemData)o;
  421. string arg0 = ToLua.CheckString(L, 2);
  422. obj.deviceModel = arg0;
  423. return 0;
  424. }
  425. catch(Exception e)
  426. {
  427. return LuaDLL.toluaL_exception(L, e, o, "attempt to index deviceModel on a nil value");
  428. }
  429. }
  430. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  431. static int set_deviceWidth(IntPtr L)
  432. {
  433. object o = null;
  434. try
  435. {
  436. o = ToLua.ToObject(L, 1);
  437. DeviceSystemData obj = (DeviceSystemData)o;
  438. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  439. obj.deviceWidth = arg0;
  440. return 0;
  441. }
  442. catch(Exception e)
  443. {
  444. return LuaDLL.toluaL_exception(L, e, o, "attempt to index deviceWidth on a nil value");
  445. }
  446. }
  447. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  448. static int set_deviceHeight(IntPtr L)
  449. {
  450. object o = null;
  451. try
  452. {
  453. o = ToLua.ToObject(L, 1);
  454. DeviceSystemData obj = (DeviceSystemData)o;
  455. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  456. obj.deviceHeight = arg0;
  457. return 0;
  458. }
  459. catch(Exception e)
  460. {
  461. return LuaDLL.toluaL_exception(L, e, o, "attempt to index deviceHeight on a nil value");
  462. }
  463. }
  464. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  465. static int set_osName(IntPtr L)
  466. {
  467. object o = null;
  468. try
  469. {
  470. o = ToLua.ToObject(L, 1);
  471. DeviceSystemData obj = (DeviceSystemData)o;
  472. string arg0 = ToLua.CheckString(L, 2);
  473. obj.osName = arg0;
  474. return 0;
  475. }
  476. catch(Exception e)
  477. {
  478. return LuaDLL.toluaL_exception(L, e, o, "attempt to index osName on a nil value");
  479. }
  480. }
  481. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  482. static int set_osVer(IntPtr L)
  483. {
  484. object o = null;
  485. try
  486. {
  487. o = ToLua.ToObject(L, 1);
  488. DeviceSystemData obj = (DeviceSystemData)o;
  489. string arg0 = ToLua.CheckString(L, 2);
  490. obj.osVer = arg0;
  491. return 0;
  492. }
  493. catch(Exception e)
  494. {
  495. return LuaDLL.toluaL_exception(L, e, o, "attempt to index osVer on a nil value");
  496. }
  497. }
  498. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  499. static int set_macAddr(IntPtr L)
  500. {
  501. object o = null;
  502. try
  503. {
  504. o = ToLua.ToObject(L, 1);
  505. DeviceSystemData obj = (DeviceSystemData)o;
  506. string arg0 = ToLua.CheckString(L, 2);
  507. obj.macAddr = arg0;
  508. return 0;
  509. }
  510. catch(Exception e)
  511. {
  512. return LuaDLL.toluaL_exception(L, e, o, "attempt to index macAddr on a nil value");
  513. }
  514. }
  515. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  516. static int set_udid(IntPtr L)
  517. {
  518. object o = null;
  519. try
  520. {
  521. o = ToLua.ToObject(L, 1);
  522. DeviceSystemData obj = (DeviceSystemData)o;
  523. string arg0 = ToLua.CheckString(L, 2);
  524. obj.udid = arg0;
  525. return 0;
  526. }
  527. catch(Exception e)
  528. {
  529. return LuaDLL.toluaL_exception(L, e, o, "attempt to index udid on a nil value");
  530. }
  531. }
  532. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  533. static int set_isp(IntPtr L)
  534. {
  535. object o = null;
  536. try
  537. {
  538. o = ToLua.ToObject(L, 1);
  539. DeviceSystemData obj = (DeviceSystemData)o;
  540. string arg0 = ToLua.CheckString(L, 2);
  541. obj.isp = arg0;
  542. return 0;
  543. }
  544. catch(Exception e)
  545. {
  546. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isp on a nil value");
  547. }
  548. }
  549. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  550. static int set_network(IntPtr L)
  551. {
  552. object o = null;
  553. try
  554. {
  555. o = ToLua.ToObject(L, 1);
  556. DeviceSystemData obj = (DeviceSystemData)o;
  557. string arg0 = ToLua.CheckString(L, 2);
  558. obj.network = arg0;
  559. return 0;
  560. }
  561. catch(Exception e)
  562. {
  563. return LuaDLL.toluaL_exception(L, e, o, "attempt to index network on a nil value");
  564. }
  565. }
  566. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  567. static int set_appChannel(IntPtr L)
  568. {
  569. object o = null;
  570. try
  571. {
  572. o = ToLua.ToObject(L, 1);
  573. DeviceSystemData obj = (DeviceSystemData)o;
  574. string arg0 = ToLua.CheckString(L, 2);
  575. obj.appChannel = arg0;
  576. return 0;
  577. }
  578. catch(Exception e)
  579. {
  580. return LuaDLL.toluaL_exception(L, e, o, "attempt to index appChannel on a nil value");
  581. }
  582. }
  583. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  584. static int set_appVer(IntPtr L)
  585. {
  586. object o = null;
  587. try
  588. {
  589. o = ToLua.ToObject(L, 1);
  590. DeviceSystemData obj = (DeviceSystemData)o;
  591. string arg0 = ToLua.CheckString(L, 2);
  592. obj.appVer = arg0;
  593. return 0;
  594. }
  595. catch(Exception e)
  596. {
  597. return LuaDLL.toluaL_exception(L, e, o, "attempt to index appVer on a nil value");
  598. }
  599. }
  600. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  601. static int set_transId(IntPtr L)
  602. {
  603. object o = null;
  604. try
  605. {
  606. o = ToLua.ToObject(L, 1);
  607. DeviceSystemData obj = (DeviceSystemData)o;
  608. string arg0 = ToLua.CheckString(L, 2);
  609. obj.transId = arg0;
  610. return 0;
  611. }
  612. catch(Exception e)
  613. {
  614. return LuaDLL.toluaL_exception(L, e, o, "attempt to index transId on a nil value");
  615. }
  616. }
  617. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  618. static int set_deviceId(IntPtr L)
  619. {
  620. object o = null;
  621. try
  622. {
  623. o = ToLua.ToObject(L, 1);
  624. DeviceSystemData obj = (DeviceSystemData)o;
  625. string arg0 = ToLua.CheckString(L, 2);
  626. obj.deviceId = arg0;
  627. return 0;
  628. }
  629. catch(Exception e)
  630. {
  631. return LuaDLL.toluaL_exception(L, e, o, "attempt to index deviceId on a nil value");
  632. }
  633. }
  634. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  635. static int set_isEmulator(IntPtr L)
  636. {
  637. object o = null;
  638. try
  639. {
  640. o = ToLua.ToObject(L, 1);
  641. DeviceSystemData obj = (DeviceSystemData)o;
  642. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  643. obj.isEmulator = arg0;
  644. return 0;
  645. }
  646. catch(Exception e)
  647. {
  648. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isEmulator on a nil value");
  649. }
  650. }
  651. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  652. static int set_isRoot(IntPtr L)
  653. {
  654. object o = null;
  655. try
  656. {
  657. o = ToLua.ToObject(L, 1);
  658. DeviceSystemData obj = (DeviceSystemData)o;
  659. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  660. obj.isRoot = arg0;
  661. return 0;
  662. }
  663. catch(Exception e)
  664. {
  665. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isRoot on a nil value");
  666. }
  667. }
  668. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  669. static int set_accountId(IntPtr L)
  670. {
  671. object o = null;
  672. try
  673. {
  674. o = ToLua.ToObject(L, 1);
  675. DeviceSystemData obj = (DeviceSystemData)o;
  676. string arg0 = ToLua.CheckString(L, 2);
  677. obj.accountId = arg0;
  678. return 0;
  679. }
  680. catch(Exception e)
  681. {
  682. return LuaDLL.toluaL_exception(L, e, o, "attempt to index accountId on a nil value");
  683. }
  684. }
  685. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  686. static int set_oldAccountId(IntPtr L)
  687. {
  688. object o = null;
  689. try
  690. {
  691. o = ToLua.ToObject(L, 1);
  692. DeviceSystemData obj = (DeviceSystemData)o;
  693. string arg0 = ToLua.CheckString(L, 2);
  694. obj.oldAccountId = arg0;
  695. return 0;
  696. }
  697. catch(Exception e)
  698. {
  699. return LuaDLL.toluaL_exception(L, e, o, "attempt to index oldAccountId on a nil value");
  700. }
  701. }
  702. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  703. static int set_imei(IntPtr L)
  704. {
  705. object o = null;
  706. try
  707. {
  708. o = ToLua.ToObject(L, 1);
  709. DeviceSystemData obj = (DeviceSystemData)o;
  710. string arg0 = ToLua.CheckString(L, 2);
  711. obj.imei = arg0;
  712. return 0;
  713. }
  714. catch(Exception e)
  715. {
  716. return LuaDLL.toluaL_exception(L, e, o, "attempt to index imei on a nil value");
  717. }
  718. }
  719. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  720. static int set_countryCode(IntPtr L)
  721. {
  722. object o = null;
  723. try
  724. {
  725. o = ToLua.ToObject(L, 1);
  726. DeviceSystemData obj = (DeviceSystemData)o;
  727. string arg0 = ToLua.CheckString(L, 2);
  728. obj.countryCode = arg0;
  729. return 0;
  730. }
  731. catch(Exception e)
  732. {
  733. return LuaDLL.toluaL_exception(L, e, o, "attempt to index countryCode on a nil value");
  734. }
  735. }
  736. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  737. static int set_oaid(IntPtr L)
  738. {
  739. object o = null;
  740. try
  741. {
  742. o = ToLua.ToObject(L, 1);
  743. DeviceSystemData obj = (DeviceSystemData)o;
  744. string arg0 = ToLua.CheckString(L, 2);
  745. obj.oaid = arg0;
  746. return 0;
  747. }
  748. catch(Exception e)
  749. {
  750. return LuaDLL.toluaL_exception(L, e, o, "attempt to index oaid on a nil value");
  751. }
  752. }
  753. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  754. static int set_engineVer(IntPtr L)
  755. {
  756. object o = null;
  757. try
  758. {
  759. o = ToLua.ToObject(L, 1);
  760. DeviceSystemData obj = (DeviceSystemData)o;
  761. string arg0 = ToLua.CheckString(L, 2);
  762. obj.engineVer = arg0;
  763. return 0;
  764. }
  765. catch(Exception e)
  766. {
  767. return LuaDLL.toluaL_exception(L, e, o, "attempt to index engineVer on a nil value");
  768. }
  769. }
  770. }