hedgewars/uScript.pas
changeset 10290 42efccba0711
parent 10289 c3a77ff02a23
child 10291 d9893b1b76a0
equal deleted inserted replaced
10289:c3a77ff02a23 10290:42efccba0711
  1519     //else
  1519     //else
  1520         //lua_pushnil(L)
  1520         //lua_pushnil(L)
  1521     lc_addteam:= 0;//1;
  1521     lc_addteam:= 0;//1;
  1522 end;
  1522 end;
  1523 
  1523 
       
  1524 function lc_dismissteam(L : Plua_State) : LongInt; Cdecl;
       
  1525 var np: LongInt;
       
  1526 begin
       
  1527     if CheckLuaParameterCount(L, 1, 'DismissTeam', 'teamname') then
       
  1528         ParseCommand('teamgone ' + lua_tostring(L, 1), true, true);
       
  1529     lc_dismissteam:= 0;;
       
  1530 end;
       
  1531 
  1524 function lc_addhog(L : Plua_State) : LongInt; Cdecl;
  1532 function lc_addhog(L : Plua_State) : LongInt; Cdecl;
  1525 var temp: ShortString;
  1533 var temp: ShortString;
  1526 begin
  1534 begin
  1527     if CheckLuaParameterCount(L, 4, 'AddHog', 'hogname, botlevel, health, hat') then
  1535     if CheckLuaParameterCount(L, 4, 'AddHog', 'hogname, botlevel, health, hat') then
  1528         begin
  1536         begin
  2645 lua_register(luaState, _P'bnot', @lc_bnot);
  2653 lua_register(luaState, _P'bnot', @lc_bnot);
  2646 lua_register(luaState, _P'div', @lc_div);
  2654 lua_register(luaState, _P'div', @lc_div);
  2647 lua_register(luaState, _P'GetInputMask', @lc_getinputmask);
  2655 lua_register(luaState, _P'GetInputMask', @lc_getinputmask);
  2648 lua_register(luaState, _P'SetInputMask', @lc_setinputmask);
  2656 lua_register(luaState, _P'SetInputMask', @lc_setinputmask);
  2649 lua_register(luaState, _P'AddGear', @lc_addgear);
  2657 lua_register(luaState, _P'AddGear', @lc_addgear);
       
  2658 lua_register(luaState, _P'DismissTeam', @lc_dismissteam);
  2650 lua_register(luaState, _P'EnableGameFlags', @lc_enablegameflags);
  2659 lua_register(luaState, _P'EnableGameFlags', @lc_enablegameflags);
  2651 lua_register(luaState, _P'DisableGameFlags', @lc_disablegameflags);
  2660 lua_register(luaState, _P'DisableGameFlags', @lc_disablegameflags);
  2652 lua_register(luaState, _P'ClearGameFlags', @lc_cleargameflags);
  2661 lua_register(luaState, _P'ClearGameFlags', @lc_cleargameflags);
  2653 lua_register(luaState, _P'GetGameFlag', @lc_getgameflag);
  2662 lua_register(luaState, _P'GetGameFlag', @lc_getgameflag);
  2654 lua_register(luaState, _P'DeleteGear', @lc_deletegear);
  2663 lua_register(luaState, _P'DeleteGear', @lc_deletegear);