hedgewars/uScript.pas
changeset 12332 657a8d63c99d
parent 12316 d09eba2e1dd8
child 12360 a775a61e02ab
equal deleted inserted replaced
12331:6707ee1d2430 12332:657a8d63c99d
  1935             end;
  1935             end;
  1936         end;
  1936         end;
  1937     lc_sendstat:= 0
  1937     lc_sendstat:= 0
  1938 end;
  1938 end;
  1939 
  1939 
       
  1940 function lc_sendgameresultoff(L : Plua_State) : LongInt; Cdecl;
       
  1941 begin
       
  1942     L:= L; // avoid compiler hint
       
  1943     uStats.SendGameResultOn := false;
       
  1944     lc_sendgameresultoff:= 0
       
  1945 end;
       
  1946 
       
  1947 function lc_sendrankingstatsoff(L : Plua_State) : LongInt; Cdecl;
       
  1948 begin
       
  1949     L:= L; // avoid compiler hint
       
  1950     uStats.SendRankingStatsOn := false;
       
  1951     lc_sendrankingstatsoff:= 0
       
  1952 end;
       
  1953 
       
  1954 function lc_sendachievementsstatsoff(L : Plua_State) : LongInt; Cdecl;
       
  1955 begin
       
  1956     L:= L; // avoid compiler hint
       
  1957     uStats.SendAchievementsStatsOn := false;
       
  1958     lc_sendachievementsstatsoff:= 0
       
  1959 end;
       
  1960 
  1940 function lc_sendhealthstatsoff(L : Plua_State) : LongInt; Cdecl;
  1961 function lc_sendhealthstatsoff(L : Plua_State) : LongInt; Cdecl;
  1941 begin
  1962 begin
  1942     L:= L; // avoid compiler hint
  1963     L:= L; // avoid compiler hint
  1943     uStats.SendHealthStatsOn := false;
  1964     uStats.SendHealthStatsOn := false;
  1944     lc_sendhealthstatsoff:= 0
  1965     lc_sendhealthstatsoff:= 0
  3407 lua_register(luaState, _P'WriteLnToConsole', @lc_writelntoconsole);
  3428 lua_register(luaState, _P'WriteLnToConsole', @lc_writelntoconsole);
  3408 lua_register(luaState, _P'GetGearType', @lc_getgeartype);
  3429 lua_register(luaState, _P'GetGearType', @lc_getgeartype);
  3409 lua_register(luaState, _P'EndGame', @lc_endgame);
  3430 lua_register(luaState, _P'EndGame', @lc_endgame);
  3410 lua_register(luaState, _P'EndTurn', @lc_endturn);
  3431 lua_register(luaState, _P'EndTurn', @lc_endturn);
  3411 lua_register(luaState, _P'SendStat', @lc_sendstat);
  3432 lua_register(luaState, _P'SendStat', @lc_sendstat);
       
  3433 lua_register(luaState, _P'SendGameResultOff', @lc_sendgameresultoff);
       
  3434 lua_register(luaState, _P'SendRankingStatsOff', @lc_sendrankingstatsoff);
       
  3435 lua_register(luaState, _P'SendAchievementsStatsOff', @lc_sendachievementsstatsoff);
  3412 lua_register(luaState, _P'SendHealthStatsOff', @lc_sendhealthstatsoff);
  3436 lua_register(luaState, _P'SendHealthStatsOff', @lc_sendhealthstatsoff);
  3413 lua_register(luaState, _P'FindPlace', @lc_findplace);
  3437 lua_register(luaState, _P'FindPlace', @lc_findplace);
  3414 lua_register(luaState, _P'SetGearPosition', @lc_setgearposition);
  3438 lua_register(luaState, _P'SetGearPosition', @lc_setgearposition);
  3415 lua_register(luaState, _P'GetGearPosition', @lc_getgearposition);
  3439 lua_register(luaState, _P'GetGearPosition', @lc_getgearposition);
  3416 lua_register(luaState, _P'SetGearTarget', @lc_setgeartarget);
  3440 lua_register(luaState, _P'SetGearTarget', @lc_setgeartarget);