public static int BattleCommandToPBBattleCommand_s(IntPtr l)
    {
        int result;

        try
        {
            BattleCommand battleCommand;
            LuaObject.checkType <BattleCommand>(l, 1, out battleCommand);
            ProBattleCommand o = BattleCommand.BattleCommandToPBBattleCommand(battleCommand);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }