hedgewars/uScript.pas
changeset 9174 d328fe17b195
parent 9173 575dd8fe4a55
child 9176 c21c88dca14c
equal deleted inserted replaced
9173:575dd8fe4a55 9174:d328fe17b195
  1321 			end;
  1321 			end;
  1322 		end;
  1322 		end;
  1323     lc_sendstat:= 0
  1323     lc_sendstat:= 0
  1324 end;
  1324 end;
  1325 
  1325 
       
  1326 function lc_sendstatsoff(L : Plua_State) : LongInt; Cdecl;
       
  1327 begin
       
  1328     L:= L; // avoid compiler hint
       
  1329     uStats.SendStatsOn := false;
       
  1330     lc_sendstatsoff:= 0
       
  1331 end;
       
  1332 
  1326 function lc_sendstats(L : Plua_State) : LongInt; Cdecl;
  1333 function lc_sendstats(L : Plua_State) : LongInt; Cdecl;
  1327 begin
  1334 begin
  1328     L:= L; // avoid compiler hint
  1335     L:= L; // avoid compiler hint
  1329     SendStats;
  1336     SendStats;
  1330     lc_sendstats:= 0
  1337     lc_sendstats:= 0
  2426 lua_register(luaState, _P'SpawnFakeUtilityCrate', @lc_spawnfakeutilitycrate);
  2433 lua_register(luaState, _P'SpawnFakeUtilityCrate', @lc_spawnfakeutilitycrate);
  2427 lua_register(luaState, _P'WriteLnToConsole', @lc_writelntoconsole);
  2434 lua_register(luaState, _P'WriteLnToConsole', @lc_writelntoconsole);
  2428 lua_register(luaState, _P'GetGearType', @lc_getgeartype);
  2435 lua_register(luaState, _P'GetGearType', @lc_getgeartype);
  2429 lua_register(luaState, _P'EndGame', @lc_endgame);
  2436 lua_register(luaState, _P'EndGame', @lc_endgame);
  2430 lua_register(luaState, _P'SendStat', @lc_sendstat);
  2437 lua_register(luaState, _P'SendStat', @lc_sendstat);
       
  2438 lua_register(luaState, _P'SendStatsOff', @lc_sendstatsoff);
  2431 lua_register(luaState, _P'SendStats', @lc_sendstats);
  2439 lua_register(luaState, _P'SendStats', @lc_sendstats);
  2432 lua_register(luaState, _P'FindPlace', @lc_findplace);
  2440 lua_register(luaState, _P'FindPlace', @lc_findplace);
  2433 lua_register(luaState, _P'SetGearPosition', @lc_setgearposition);
  2441 lua_register(luaState, _P'SetGearPosition', @lc_setgearposition);
  2434 lua_register(luaState, _P'GetGearPosition', @lc_getgearposition);
  2442 lua_register(luaState, _P'GetGearPosition', @lc_getgearposition);
  2435 lua_register(luaState, _P'SetGearTarget', @lc_setgeartarget);
  2443 lua_register(luaState, _P'SetGearTarget', @lc_setgeartarget);