hedgewars/uScript.pas
changeset 9180 d19c09670ec8
parent 9179 7ce9f68d28dc
child 9197 e4e366013e9a
child 9205 abce6011f86c
equal deleted inserted replaced
9179:7ce9f68d28dc 9180:d19c09670ec8
  1335 			end;
  1335 			end;
  1336 		end;
  1336 		end;
  1337     lc_sendstat:= 0
  1337     lc_sendstat:= 0
  1338 end;
  1338 end;
  1339 
  1339 
  1340 function lc_sendstatsoff(L : Plua_State) : LongInt; Cdecl;
  1340 function lc_sendhealthstatsoff(L : Plua_State) : LongInt; Cdecl;
  1341 begin
  1341 begin
  1342     L:= L; // avoid compiler hint
  1342     L:= L; // avoid compiler hint
  1343     uStats.SendStatsOn := false;
  1343     uStats.SendHealthStatsOn := false;
  1344     lc_sendstatsoff:= 0
  1344     lc_sendhealthstatsoff:= 0
  1345 end;
  1345 end;
  1346 
  1346 
  1347 function lc_findplace(L : Plua_State) : LongInt; Cdecl;
  1347 function lc_findplace(L : Plua_State) : LongInt; Cdecl;
  1348 var gear: PGear;
  1348 var gear: PGear;
  1349     fall: boolean;
  1349     fall: boolean;
  2440 lua_register(luaState, _P'SpawnFakeUtilityCrate', @lc_spawnfakeutilitycrate);
  2440 lua_register(luaState, _P'SpawnFakeUtilityCrate', @lc_spawnfakeutilitycrate);
  2441 lua_register(luaState, _P'WriteLnToConsole', @lc_writelntoconsole);
  2441 lua_register(luaState, _P'WriteLnToConsole', @lc_writelntoconsole);
  2442 lua_register(luaState, _P'GetGearType', @lc_getgeartype);
  2442 lua_register(luaState, _P'GetGearType', @lc_getgeartype);
  2443 lua_register(luaState, _P'EndGame', @lc_endgame);
  2443 lua_register(luaState, _P'EndGame', @lc_endgame);
  2444 lua_register(luaState, _P'SendStat', @lc_sendstat);
  2444 lua_register(luaState, _P'SendStat', @lc_sendstat);
  2445 lua_register(luaState, _P'SendStatsOff', @lc_sendstatsoff);
  2445 lua_register(luaState, _P'SendHealthStatsOff', @lc_sendhealthstatsoff);
  2446 lua_register(luaState, _P'FindPlace', @lc_findplace);
  2446 lua_register(luaState, _P'FindPlace', @lc_findplace);
  2447 lua_register(luaState, _P'SetGearPosition', @lc_setgearposition);
  2447 lua_register(luaState, _P'SetGearPosition', @lc_setgearposition);
  2448 lua_register(luaState, _P'GetGearPosition', @lc_getgearposition);
  2448 lua_register(luaState, _P'GetGearPosition', @lc_getgearposition);
  2449 lua_register(luaState, _P'SetGearTarget', @lc_setgeartarget);
  2449 lua_register(luaState, _P'SetGearTarget', @lc_setgeartarget);
  2450 lua_register(luaState, _P'GetGearTarget', @lc_getgeartarget);
  2450 lua_register(luaState, _P'GetGearTarget', @lc_getgeartarget);