hedgewars/uScript.pas
changeset 13038 356995c8c48b
parent 13037 3718637c14be
child 13062 bcb87269867e
equal deleted inserted replaced
13037:3718637c14be 13038:356995c8c48b
   645             if cg >= 0 then
   645             if cg >= 0 then
   646                 AddCaption(lua_tostringA(L, 1), Trunc(lua_tonumber(L, 2)) shr 8, TCapGroup(cg));
   646                 AddCaption(lua_tostringA(L, 1), Trunc(lua_tonumber(L, 2)) shr 8, TCapGroup(cg));
   647             end
   647             end
   648         end;
   648         end;
   649     lc_addcaption:= 0;
   649     lc_addcaption:= 0;
   650 end;
       
   651 
       
   652 function lc_campaignlock(L : Plua_State) : LongInt; Cdecl;
       
   653 begin
       
   654     if CheckLuaParamCount(L, 1, 'CampaignLock', 'TODO') then
       
   655         begin
       
   656         // TODO
       
   657         end;
       
   658     lc_campaignlock:= 0;
       
   659 end;
       
   660 
       
   661 function lc_campaignunlock(L : Plua_State) : LongInt; Cdecl;
       
   662 begin
       
   663     if CheckLuaParamCount(L, 1, 'CampaignUnlock', 'TODO') then
       
   664         begin
       
   665         // TODO
       
   666         end;
       
   667     lc_campaignunlock:= 0;
       
   668 end;
   650 end;
   669 
   651 
   670 function lc_spawnfakehealthcrate(L: Plua_State) : LongInt; Cdecl;
   652 function lc_spawnfakehealthcrate(L: Plua_State) : LongInt; Cdecl;
   671 var gear: PGear;
   653 var gear: PGear;
   672 begin
   654 begin
  3843 lua_register(luaState, _P'SetZoom', @lc_setzoom);
  3825 lua_register(luaState, _P'SetZoom', @lc_setzoom);
  3844 lua_register(luaState, _P'GetZoom', @lc_getzoom);
  3826 lua_register(luaState, _P'GetZoom', @lc_getzoom);
  3845 lua_register(luaState, _P'HogSay', @lc_hogsay);
  3827 lua_register(luaState, _P'HogSay', @lc_hogsay);
  3846 lua_register(luaState, _P'SwitchHog', @lc_switchhog);
  3828 lua_register(luaState, _P'SwitchHog', @lc_switchhog);
  3847 lua_register(luaState, _P'HogTurnLeft', @lc_hogturnleft);
  3829 lua_register(luaState, _P'HogTurnLeft', @lc_hogturnleft);
  3848 lua_register(luaState, _P'CampaignLock', @lc_campaignlock);
       
  3849 lua_register(luaState, _P'CampaignUnlock', @lc_campaignunlock);
       
  3850 lua_register(luaState, _P'GetGearElasticity', @lc_getgearelasticity);
  3830 lua_register(luaState, _P'GetGearElasticity', @lc_getgearelasticity);
  3851 lua_register(luaState, _P'SetGearElasticity', @lc_setgearelasticity);
  3831 lua_register(luaState, _P'SetGearElasticity', @lc_setgearelasticity);
  3852 lua_register(luaState, _P'GetGearFriction', @lc_getgearfriction);
  3832 lua_register(luaState, _P'GetGearFriction', @lc_getgearfriction);
  3853 lua_register(luaState, _P'SetGearFriction', @lc_setgearfriction);
  3833 lua_register(luaState, _P'SetGearFriction', @lc_setgearfriction);
  3854 lua_register(luaState, _P'GetGearRadius', @lc_getgearradius);
  3834 lua_register(luaState, _P'GetGearRadius', @lc_getgearradius);